ElectroPI Regular Member
 Joined: 27/04/2012 Location: AustraliaPosts: 42 |
| Posted: 10:18am 19 Jun 2024 |
|
|
|
I'm not sending cr/lf because in my original application using 4 PICOs I send ADC data as binary ie 2 bytes from each ADC. I use BIN2STR$(UINT16,1000*da0(0)) where da0(0) is the reading from ADC0, etc. This gives me values between 0 and 3300 which is comfortable as 2 bytes, little-edian format. I can't use cr or lf because I'm transferring binary values. 16 ADCs at 2 bytes each = 32 bytes.
So in my test programs as listed above I'm sending 32 bytes as 32 characters so I can see what's happening. In PICO#0 I'm reading everything from the buffer so there shouldn't be an over-run if it only received 32 bytes. Note that I'm not using the LINE INPUT command which would require cr/lf. |