picaxester
Senior Member
Heres an idea for driving 10 seven segment displays or 80 LEDs with a 4017 and a PICAXE 18X.
It uses the the serial output pin to clock the 4017 which drives the vertical LED columns
while the 8 outputs on the PICAXE drive the horizontal LED rows.
Q1 and the diodes are there to turn off the LEDs when the 18X clocks the 4017 so it doesn't
light the next column with previous data. To bad the 4017 doesn't have an output enable.
ps. I hope that pic isn't to big for everyone.
eric
It uses the the serial output pin to clock the 4017 which drives the vertical LED columns
while the 8 outputs on the PICAXE drive the horizontal LED rows.
Q1 and the diodes are there to turn off the LEDs when the 18X clocks the 4017 so it doesn't
light the next column with previous data. To bad the 4017 doesn't have an output enable.
Code:
do until pin0 = 1 'MAKE SURE THE 4017 STARTS AT THE FIRST OUTPUT
poke $05, %00001000 'CLOCK THE 4017
poke $05, %00000000
loop
b11 = 32 'PUT SOME VALUES INTO THE VARIABLES
b12 = 64
b13 = 128
do 'OUTPUT THE VALUES
poke $05, %00001000 'CLOCK THE 4017 AND TURN LEDS OFF
pins = b11 'PUT VALUES ONTO THE PINS
poke $05, %00000000 'TURN ON LEDS
poke $05, %00001000
pins = b12
poke $05, %00000000
poke $05, %00001000
pins = b13
poke $05, %00000000
loop
eric