Syntax
SUB TXD1 (
char
)
Description -- added in version 7.13
The data is transmitted on the IO(1) pin on the
ARMmite.
On the ARMexpress LITE data is transmited on pin labeled IO6
Data is positive true.
The hardware UART1 port is used, so the CPU is not tied up.
So when a byte is sent it is placed into the FIFO, but if the 16 byte FIFO is
full then the CPU will wait until space is available.
Example
DIM A$(10)
...
BAUD1 = 19200 '
set baud rate and enable channel
...
A$ =
"Hello World"
GOSUB PRINTSTR1
' Send a string of characters serially out UART0
PRINTSTR1:
I=0
WHILE A$(I)
TXD1 ( A$(I) )
I=I+1
LOOP
RETURN
Differences from other BASICs
- no equivalent in Visual BASIC
- preferred alternate to SEROUT of PBASIC
See also