PICO high speed serial problem


Author Message
ElectroPI
Regular Member

Joined: 27/04/2012
Location: Australia
Posts: 42
Posted: 04:07am 20 Jun 2024      

Thanks Jim and Phil. I was wondering if there was a simple way to add a slight delay after sending each character in case it was a timing issue in the INPUT$ command and using 2 stop bits is a brilliant idea. So far it seems to be working but I'll let it run longer to see how it goes.

BTW I tried something else - I upped the cpu speed of PICO#0 to 378000000 and this seems to solve the problem when using 1 stop bit. I can even send the 32 byte string from PICO#1 to PICO#0 at 400 strings per second and it seems to be very stable with no lost bytes. Once again I need to let this run for quite a while to be absolutely sure.

Unfortunately both solutions are work-arounds to what seems to be a timing problem in the INPUT$ command when using high baud rates.

all the best and thanks everyone for all the suggestions
Peter