Syntax
#include <SERIAL.bas>
DIM bbBAUD( pin
)
' declared inside SERIAL.bas
Description
bbBAUD (
pin)
will set the baudrate for the
pin that
will be later used by either bbRXD or bbTXD functions.
Baudrates can be up to 115.2 Kbaud for transmit, 57Kbaud for
receive.
Example
#include <SERIAL.bas>
bbBAUD(2) = 19200 ' set the baud rate for
serial I/O on pin 2
bbBAUD(1) = bbBAUD(2) ' set the baud rate for
pin 1 the same as that for pin 2
Differences from other BASICs
- no equivalent in Visual BASIC
- no equivalent in PBASIC
See also