|
STC15W408AS library 0.12.0
|
Enumerations | |
| enum | uart1_mode0_baudrate_t { baudrate_921600 = 921600U , baudrate_5529600 = 5529600U } |
| UART1 baud rate enumeration. | |
init | |
UART1 initialization functions | |
| #define | uart1_mode0_init(baudRate) |
| Initializes UART1 in Mode 0. | |
Functions and data structures for UART1 communication in Mode 0.
Mode 0 provides synchronous communication with fixed baud rate.
Serial data enters and exits through RxD. TxD outputs the shift clock. Eight data bits are transmitted/received with the least-significant (LSB) first. The baud rate is fixed at 1/12 (or 1/2) the System clock cycle.
| #define uart1_mode0_init | ( | baudRate | ) |
Initializes UART1 in Mode 0.
Must be called before any UART communication is initiated.
| baudRate | uart1_mode0_baudrate_t The desired baud rate. |