RS232 Test

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

Moderators: Benj, Mods

Post Reply
Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times

RS232 Test

Post by Ron »

Hi,

Is there an easy way to test a program that is simply reading the COM port?

Can Hyperterminal be used?

I want to send a single ASCII character from hyperterminal, receive it as a BYTE in flowcode

if BYTE = 50 (R) turn on RB1, then go back and monitor comm port again.
If BYTE = 51 (S) turn off RB1, then go back and monitor comm port again.

Should I be able to do this?

Thanks

Ron

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:

Re: RS232 Test

Post by Benj »

Hello Ron

I have attached a very basic example that will update the LEDs on PortA with a byte value if a byte is received.
Attachments
RS232Test.fcf
(4 KiB) Downloaded 369 times

Post Reply