- Name:
-
hserout
- Syntax:
-
HSEROUT break, ({#}data,{#}data...)
Break - is a variable/constant (0 or1) which indicates whether to send a 'break' (wake-up) signal before the data is sent.
Data - are variables/constants (0-255) which provide the data to be output. Optional #'s are for outputting ASCII decimal numbers, rather than raw characters. Text can be enclosed in speech marks ("Hello")
- Description:
-
Transmit serial data via the hardware serial output pin (8 data bits, no parity, 1 stop bit).
The hserout command is used to transmit serial data from the fixed hardware serial output pin of the microcontroller. It cannot be used with the serial download output pin - use the sertxd command in this case. Polarity and baud rate are defined by the hsersetup command, which must be issued before this command can be used.
The # symbol allows ASCII output. Therefore #b1, when b1 contains the data 126, will output the ASCII characters "1" "2" "6" rather than the raw data byte '126'.