BCD to 7 segment display
Looking for a bit of help...
·I have· a cd74hc4511·which is a BCD to 7 Segment display chip, and i was wondering what the code would look like to use it correctly.
I am using a Basic Stamp Homework Board and the BCD chip (http://www-s.ti.com/sc/ds/cd74hc4511.pdf) What pins should it be hooked to, does it matter?
Thank you
·I have· a cd74hc4511·which is a BCD to 7 Segment display chip, and i was wondering what the code would look like to use it correctly.
I am using a Basic Stamp Homework Board and the BCD chip (http://www-s.ti.com/sc/ds/cd74hc4511.pdf) What pins should it be hooked to, does it matter?
Thank you
Comments
You can connect the BCD inputs directly to a group of pins such as P0-P3. Then you could connect the /LE to P4. /LT is for Lamp Test so you don't need that and /BL is for blanking...Again, for a single unit you won't need it. Set DIRA to %1111 and use OUTA to send a valid BCD character to P0-P3, for example (OUTA = %0001 for 1) then pulse /LE low to latch the new value. I hope this helps. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
·I have set it up and written a short program to get the display counting, but I am not getting the results that I should be getting. ·I have my program count from 0-9. It flashes on to a solid 8 then flickers 4-8 and stops. I can’t figure out why it doesn’t start at 1. Any ideas? I played with the pause going from 2-2000 and it didn’t make any difference.
·
·
' {$STAMP BS2}
' {$PBASIC 2.5}
DIRA = %1111
Start:
LOW 4
OUTA = %0000
HIGH· 4
PAUSE 200
LOW 4
OUTA = %0001
HIGH 4
PAUSE 200
LOW 4
OUTA = %0010
HIGH· 4
PAUSE 200
LOW 4
OUTA = %0011
HIGH· 4
PAUSE 200
LOW 4
OUTA = %0100
HIGH· 4
PAUSE 200
LOW 4
OUTA = %0101
HIGH· 4
PAUSE 200
LOW 4
OUTA = %0110
HIGH· 4
PAUSE 200
LOW 4
OUTA = %0111
HIGH· 4
PAUSE 200
LOW 4
OUTA = %1000
HIGH· 4
PAUSE 200
LOW 4
OUTA = %1001
HIGH· 4
PAUSE 200
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
p0-d0
p1-d1
p2-d2
p3-d3
p4-le
the connections from the ic to my display are what the specs say. output a to input a... and so forth.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
low 4
OUTA = %XXXX
HIGH 4
PAUSE 200
for each of the numbers and pasted them at the end of the code instead of the start. I will attach it next time, forgot.
·
·
Thank you for all of your help.
also my latest test code for the 7-seg is attached. its not pretty but it does what was needed.