Introduction:
These routines allow the microcontroller to send and receive RS232 data.
All functions are implemented using software, so no special hardware is required on the microcontroller. However, if the microcontroller has a hardware serial module (usually referred to as UART or USART), and the serial data lines are connected to the appropriate pins, the hardware routines should be used for smaller code, improved reliability and higher baud rates.
Relevant Constants:
These constants are used to control settings for the RS232 serial
communication routines. To set them, place a line in the main program
file that uses #define
to assign a value to the particular constant.
Constant Name/s | Controls | Default Value |
---|---|---|
|
These are used to define the commands used to send a low (0) bit on serial channels A, B and C respectively. |
No Default |
|
These are used to define the commands used to send a high (1) bit on serial channels A, B and C respectively. |
No Default |
|
The condition that is true when a low bit is being received |
|
|
The condition that is true when a high bit is being received |
|