flowcode pulse generated and read the bits in the AC (14.25V

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
tech
Posts: 353
Joined: Tue Sep 23, 2008 9:39 am
Been thanked: 9 times

flowcode pulse generated and read the bits in the AC (14.25V

Post by tech »

I am a modeler railway that operates in DCC (Digital Command Control) and I would like to know how I can with flowcode pulsed generated and read the bits in the AC (14.25V)

Thank for Help!

Chris :|

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: flowcode pulse generated and read the bits in the AC (14.25V

Post by Steve »

See here for the electrical and protocol standards of DCC:
http://www.nmra.org/standards/sandrp/consist.html

To receive, you would need to convert the signals from +14V/-14V to 0V/5V (and to transmit, you would need to convert the other way).

As for the signals, you will need to look at the specs in those documents. Others on the forum may have had some experience with these types of signals...

tech
Posts: 353
Joined: Tue Sep 23, 2008 9:39 am
Been thanked: 9 times

Re: flowcode pulse generated and read the bits in the AC (14.25V

Post by tech »

Steve,

You have an example (Flowcode) to generate send and receive signale ??

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: flowcode pulse generated and read the bits in the AC (14.25V

Post by Steve »

We don't have any examples, but you should be able to work it out.

Sending is relatively easy. To send a "1", do the following:

Code: Select all

output pin low
wait 58us
output pin high
wait 58us
And to send a "0":

Code: Select all

output pin low
wait 100us
output pin high
wait 100us
Receiving will be a bit more tricky. You will need to monitor the pin and work out the length of the pulses to determine if you have received a "1" or a "0".

tech
Posts: 353
Joined: Tue Sep 23, 2008 9:39 am
Been thanked: 9 times

Re: flowcode pulse generated and read the bits in the AC (14.25V

Post by tech »

could help me on this subject ??

I really need an example flowcode !
:cry:

Post Reply