SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
The following programming model explains how to program the module to receive an IrDA frame with parity forced to 1, baud rate = 115.2 kbps, FIFOs disabled, 2 stop-bits, and 8-bit word length:
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| Disable UART mode | UART_MDR1[2:0] MODE_SELECT | 0x7 |
| Grant access to the UART_DLL and UART_DLH registers | UART_LCR[7:0] | 0x80 |
| Load the baud rate(115.2 Kbps) | UART_DLL[7:0] CLOCK_LSB | 0x1A |
| UART_DLH[5:0] CLOCK_MSB | 0x00 | |
| Set SIR mode | UART_MDR1[2:0] MODE_SELECT | 0x1 |
| Disable access to the UART_DLL and UART_DLH registers | UART_LCR[7:0] | 0x00 |
| Enable the UART_RHR interrupt | UART_IER_IRDA[0] RHR_IT | 1 |