12 / 16 bit binary counter across 2 ports

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
Steve001
Valued Contributor
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

Post by Steve001 »

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
Success always occurs in private and failure in full view.

User avatar
Steve001
Valued Contributor
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

Post by Steve001 »

had a eureka moment !! :D

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.

Post Reply