I need a small help
jamelo
Posts: 2
Heey all .. Iv already created this program
' {$STAMP BS2}
' {$PBASIC 2.5}
pinCounter· VAR·· Nib
PAUSE 1000
DEBUG "I/O pin", CR,
····· "
", CR
DEBUG "program running!"
OUTH = %00000000
DIRH = %11111111
'0
OUTH = %11100111
PAUSE 1000
'1
OUTH = %10000100
PAUSE 1000
'2
OUTH = %11010011
PAUSE 1000
'3
OUTH = %11010110
PAUSE 1000
'4
OUTH = %10110100
PAUSE 1000
'5
OUTH = %01110110
PAUSE 1000
'6
OUTH = %01110111
PAUSE 1000
'7
OUTH = %11000100
PAUSE 1000
'8
OUTH = %11110111
PAUSE 1000
'9
DIRH = %11110110
PAUSE· 1000
DIRH = %00000000
END
I can get numbers from 0 to 9 with this program ..
I need to get an out put of A B C D E F G H I J
can any one help me as soon as possible please .?
thanks
' {$STAMP BS2}
' {$PBASIC 2.5}
pinCounter· VAR·· Nib
PAUSE 1000
DEBUG "I/O pin", CR,
····· "
", CR
DEBUG "program running!"
OUTH = %00000000
DIRH = %11111111
'0
OUTH = %11100111
PAUSE 1000
'1
OUTH = %10000100
PAUSE 1000
'2
OUTH = %11010011
PAUSE 1000
'3
OUTH = %11010110
PAUSE 1000
'4
OUTH = %10110100
PAUSE 1000
'5
OUTH = %01110110
PAUSE 1000
'6
OUTH = %01110111
PAUSE 1000
'7
OUTH = %11000100
PAUSE 1000
'8
OUTH = %11110111
PAUSE 1000
'9
DIRH = %11110110
PAUSE· 1000
DIRH = %00000000
END
I can get numbers from 0 to 9 with this program ..
I need to get an out put of A B C D E F G H I J
can any one help me as soon as possible please .?
thanks
Comments
It looks like to me you are having fun with a 7-segment display. You must remember that you only have seven segments lined up like a box on the bottom and three more sections that make a box on the top. Each segment is written only as a complete line. If you make a G it would look like a 6 because the center line would go the whole way across. The nice thing about these displays is you can write in hexadecimals. Hexidecimals go between·0 and f. Like 1, 2, 3, 4, 5, 6, 7, 8, 9, A, b, C, d, E, and f. These are more compact than decimals and use all the numbers between 0 and 15 using binary so you do not have to waste space like decimal binary. There are several other digits you can use but not all the alphabet. Later on I'll betcha you get a lcd screen and I know you will have fun with it also. All you have to do is read and reread. Also come back here with any questions you may come up with. There are a lot of people here smarter than myself and they are very gracious about giving their advice.
Casey
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I fish, therefore I lie!
but listen, .. I already googled the 10 = a , 11 = b and so on ..
when I post their codes in the program .. the device am connecting to my laptop via a usb cable to usually display the numbers doesn't display the letters in this way ..
when I recreated the program .. I reached to it like that
' {$STAMP BS2}
' {$PBASIC 2.5}
pinCounter VAR Nib
PAUSE 1000
DEBUG "I/O pin", CR,
"
", CR
DEBUG "program running!"
OUTH = %00000000
DIRH = %11111111
OUTH = %01000011
PAUSE 1000
OUTH = %01001000
PAUSE 1000
OUTH = %01000001
PAUSE 1000
OUTH = %01000011
PAUSE 1000
OUTH = %01001000
PAUSE 1000
OUTH = %01000001
PAUSE 1000
DIRH = %00000000
END
so .. it`s still not appearing as letters :S .. what can I do .? [noparse]:([/noparse]