Comms again

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

Moderators: Benj, Mods

Post Reply
User avatar
goldwingers
Posts: 118
Joined: Wed Sep 06, 2006 1:22 pm
Location: London
Been thanked: 1 time
Contact:

Comms again

Post by goldwingers »

I am trying to write a simple comms do dah into a program I wrote a long time ago, I am using a USB to TTL cable (3rd party supplied) .. Can someone please point me in a direction of transmitting a series of letters from A to P. from the PIC chip at say every 0.5 seconds. The outputs are depending on the state of 20 input switches.

Cheers

Ian

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hello Ian

Sounds like you need to get a single character sorted and then the rest will be easy. Eg if you can get one character sent out then you know it will work correctly.

To do the rest you would just have to do a matrix of descision icons or you could use a C code switch statement.

The logic above would assign a certain letter to a variable eg 'A' through 'P' and then all you have left to do is to send out the contents of that variable.

Post Reply