looking to make a 12 /16 bit binary counter that outputs across 2 ports , i have no idea on how to start if someone can point me in the write direction please
thinking of something like this but not sure how to implement it
n = 1 to 65535 or 4095
if n>255 then second port pin 1 =1
if n>512 then turn off pin 1 turn on pin 2
etc
but this then gets messy and involves a lot of decision boxes
Steve
12 / 16 bit binary counter across 2 ports
Moderator: Benj
- Steve001
- Valued Contributor
- Posts: 1189
- Joined: Wed Dec 31, 2008 3:37 pm
- Has thanked: 460 times
- Been thanked: 523 times
- Contact:
12 / 16 bit binary counter across 2 ports
Success always occurs in private and failure in full view.
- Steve001
- Valued Contributor
- Posts: 1189
- Joined: Wed Dec 31, 2008 3:37 pm
- Has thanked: 460 times
- Been thanked: 523 times
- Contact:
Re: 12 / 16 bit binary counter across 2 ports
had a eureka moment !!
Don't know if there is a better way to do it than this ?
Steve
Don't know if there is a better way to do it than this ?
Steve
- Attachments
-
- 16bit binary counter.fcf
- (8 KiB) Downloaded 249 times
Success always occurs in private and failure in full view.