Post Reply 
Performing arbitrary I/O with the 41CL serial port
06-08-2017, 01:37 AM
Post: #2
RE: Performing arbitrary I/O with the 41CL serial port
To my knowledge there is no function that do something like send-string or receive-string.

You can YPOKE/YPEEK directly to/from the serial port one byte at the time.
Ref.: NEWT CPU Tech. Manual, newt-v4.pdf, I/O Ports Section, Page: 151 to 154, I/O Port 0xF = UART/SDIO Data Register

Like send the letter 'A' (0x41 ASCII) to the serial output buffer
Code:
"F---0041"
YPOKE

or read the pending character from the serial input buffer
Code:
"F---0000"
YPEEK
"F---00??"  // ?? will be replaced by the hex value of the byte read

If I had to do string line exchange, I would probably use a text file in X-Memory, then transfer the file through the transmit buffer functions.
Unfortunately, I do not have the time to experiment this idea right now, maybe Monte or Angel has a better solution.

Sylvain
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Performing arbitrary I/O with the 41CL serial port - Sylvain Cote - 06-08-2017 01:37 AM



User(s) browsing this thread: 1 Guest(s)