Shop OBEX P1 Docs P2 Docs Learn Events
7 Segment display issue, just looking for some pointers — Parallax Forums

7 Segment display issue, just looking for some pointers

flylikechrisflylikechris Posts: 3
edited 2012-07-15 16:55 in BASIC Stamp
Hi everybody. I have a segment seven display that I am trying to count from 0 to 9 with.
I was able to do this using 7 bits, but now I am supposed to do this using a 74xx47 ic decoder.
I am having real issues getting this to work.

For example,

' ($STAMP BS2)
' ($PBASIC 2.5)
' ($PORT COM5)

'Define output, set to low
DIRC = (percent sign)1111
OUTC =(percent sign) 0000

'Start looping procedure
Loop1 VAR Word

FOR Loop1 = 1 TO 20
OUTC = (percent sign) 0000
PAUSE 1000
OUTC = (percent sign) 0001
PAUSE 1000
OUTC = (percent sign) 0010
PAUSE 1000
NEXT


END


This code above will cause a "0" to display on my 7 segment display, and it pulses quickly on and off.

If you look at my attachment, that code will get my LED to cylce really fast through numbers "0" "1" "2" then repeats. It never manages to display 3 through 9


Is there something I'm overlooking?

Any help would be much appreciated :P
Thanks!CMG Issue.bs2

Comments

Sign In or Register to comment.