Page 1 of 1

Comms again

Posted: Mon Oct 08, 2007 3:46 pm
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

Posted: Mon Oct 08, 2007 5:32 pm
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.