plasmaninjaa
Member
Hi, I am using an 18m2 picaxe and i need to use it to control two 7 segment displays (so i can go to 0-99 instead of just 0-9).
I have read manual 3 pg.21 that explains the setup and code, but i am confused about the code.
I plan on using the same circuit and CMOS 4511B as the manual.
The code is:
main: for b1 = 0 to 9 ‘ Set up a for...next loop using variable b1
let pins=b1 ‘ Output b1 onto the four data lines
pause 1000 ‘ Pause 1 second
next b1 ‘ Next
goto main ‘ Loop back to start
the part that i dont understand is the "let pins = b1" part
how does it know which 4 pins to send the data too?
obviously i need 4 pins sending data to one CMOS 4511B and then to one display, and another four sending to another.
So how do i tell the program to send data out the pins i want?
Could someone write me code to count from 1-20 or something and tell me what 8 pins should the two displays be connected too to go with this code?
much appreciated!
-james
I have read manual 3 pg.21 that explains the setup and code, but i am confused about the code.
I plan on using the same circuit and CMOS 4511B as the manual.
The code is:
main: for b1 = 0 to 9 ‘ Set up a for...next loop using variable b1
let pins=b1 ‘ Output b1 onto the four data lines
pause 1000 ‘ Pause 1 second
next b1 ‘ Next
goto main ‘ Loop back to start
the part that i dont understand is the "let pins = b1" part
how does it know which 4 pins to send the data too?
obviously i need 4 pins sending data to one CMOS 4511B and then to one display, and another four sending to another.
So how do i tell the program to send data out the pins i want?
Could someone write me code to count from 1-20 or something and tell me what 8 pins should the two displays be connected too to go with this code?
much appreciated!
-james