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?
RS232 Receiving
Moderator: Benj
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel