RS232 Receiving

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

Moderator: Benj

Post Reply
Beertree
Posts: 24
Joined: Wed Apr 29, 2015 4:49 pm
Has thanked: 5 times
Been thanked: 5 times
Contact:

RS232 Receiving

Post by Beertree »

Good day,
i am struggeling bringing RS232 to work. I am using a PIC18F46K22 at 19,6608 MHz. Sending to HTerm works fine at 57600 Baud. When I want to receive chars one by one (eg 0x11)it works fine. When i try to receive "0x11 0x22 0x33 0x44 0x55" i get only "0x11 0xff 0x22 0x33". I tried to reduce my Programm to find the failure, but the error is still there. What else can i try?
Attachments
rs232test.fcfx
(12.88 KiB) Downloaded 232 times

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 Receiving

Post by Benj »

Hello,

The LCD has some significant millisecond delays which coupled with the low byte count UART RX buffer is probably the cause for you missing data.

Here is a version using a circular buffer component to allow the incoming data to be stored until we can get around to displaying the values.
rs232test.fcfx
(14.37 KiB) Downloaded 272 times

Post Reply