Page 1 of 1

RS232 Receiving

Posted: Thu Mar 17, 2016 4:46 pm
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?

Re: RS232 Receiving

Posted: Thu Mar 17, 2016 4:56 pm
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 306 times