Serial comms on picomite


Author Message
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3696
Posted: 03:04pm 02 Feb 2024      

Hi Gbbickterton,'

When you open a serial port, it starts with a clean RX and TX buffer.
You program
Do
opens the serial port
Then it checks for data
Then closes it
Then waits 100ms
loop

There is very little chance a valid character is received in the microseconds.
I think your program should

open the port.

Do
check content of buffers
pause
Loop

close the port


Volhout
Edited 2024-02-03 01:07 by Volhout