PicoMite serial Input


Author Message
Mark
Regular Member

Joined: 26/11/2022
Location: United States
Posts: 99
Posted: 07:11pm 06 Jan 2025      

I broke out the scope.  I'm using COM1 on GP0 (tx) and GP1 (rx). I monitored the data on GP1. When I type a character on the COM terminal, I see that character on the scope.  For example, when I type ENTER, I see CR, but the INPUT command doesn't complete.

If I switch to the version of the program using X$ = Input(20,_fileno%), I still see data on GP1 when I type, but the program does respond.

So it seems that the COM serial terminal is sending data, it's just that the program is ignoring it when its during an INPUT.  I believe MMBasic doesn't process interrupts until the command completes. Could it be that the COM port interrupts are being ignored during the INPUT command and thus it's missing characters?

Mark
Edited 2025-01-07 05:17 by Mark