SPRUJ17I March 2022 – August 2025 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
The following programming model explains how to program the module to receive an IrDA frame with no parity, baud rate = 1.152 Mpbs, and FIFOs disabled.
| 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 (1.152 bps) | UART_DLL[7-0] CLOCK_LSB | 0x01 |
| UART_DLH[5-0] CLOCK_MSB | 0x00 | |
| Set MIR mode | UART_MDR1[2-0] MODE_SELECT | 0x4 |
| Disable access to the UART_DLL and UART_DLH registers | UART_LCR[7-0] | 0x00 |
| Force outputs DTR and RTS to active | UART_MCR[1-0] | 0x3 |
| Enable the UART_RHR interrupt | UART_IER_IRDA[0] RHR_IT | 1 |