char
pilot0315
Posts: 952
in Propeller 2
The old full duplexserial had a char value that can be displayed. I cannot find this in any of the P2 versions.
I do not know what I am missing.
I am simply taking gps data and prior to processing it wanting to send the ascii code to the display.
What am I missing.
Help please.
Thank you.

Comments
Most objects call it
tx()orout()That wasn't in FDS, it was in Parallax Serial Terminal. Here is
PUB Char(bytechr) {{Send single-byte character. Waits for room in transmit buffer if necessary. Parameter: bytechr - character (ASCII byte value) to send.}} repeat until (tx_tail <> ((tx_head + 1) & BUFFER_MASK)) tx_buffer[tx_head] := bytechr tx_head := (tx_head + 1) & BUFFER_MASK if rxtx_mode & %1000 CharInAs Andy points out, that was just another name for tx() -- this is from the original FDS.
PUB Tx(txByte) {{ Places a byte into the transmit buffer for transmission (may wait for room in buffer). Parameters: txByte = the byte to be transmitted return: none example usage: serial.Tx($0D) expected outcome of example usage call: Transmits the byte $0D serially on the txPin }} repeat until (tx_tail <> (tx_head + 1) & $F) 'wait until the buffer has room tx_buffer[tx_head] := txByte 'place the byte into the buffer tx_head := (tx_head + 1) & $F 'advance the buffer's pointer if rxtx_mode & %1000 'if ignoring rx echo Rx ' receive the echoed byte and discardThe original FDS has a 16-byte buffer, which is why $F is used as a mask.