SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
The CIR function generates interrupts that can be enabled and disabled by writing to the appropriate bit in the interrupt enable register (UART3.UART_IER_CIR). The interrupt status of the device can be checked by reading the interrupt identification register (UART3.UART_IIR_CIR).
UART, IrDA, and CIR modes have different interrupts in the UART/IrDA/CIR module and, therefore, different UART3.UART_IER_CIR and UART3.UART_IIR_CIR mappings, depending on the selected mode.
Table 24-98 lists the interrupt modes to be maintained. In CIR mode, the sole purpose of the UART3.UART_IIR_CIR[5] bit is to indicate that the last bit of infrared data was passed to the uart3_rctx pin.
IIR_CIR Bit Number | Interrupt Type | Interrupt Source | Interrupt Reset Method |
---|---|---|---|
0 | N/A for CIR mode | N/A for CIR mode | N/A for CIR mode |
1 | THR interrupt | TFE (THR empty) (FIFO disabled) TX FIFO below trigger level (FIFO enabled) | Write to the THR register until the interrupt condition disappears |
2 | N/A for CIR mode | N/A for CIR mode | N/A for CIR mode |
3 | N/A for CIR mode | N/A for CIR mode | N/A for CIR mode |
4 | N/A for CIR mode | N/A for CIR mode | N/A for CIR mode |
5 | TX status | Transmission of the last bit of the frame is complete successfully | Read the IIR_CIR register |
6 | N/A for CIR mode | N/A for CIR mode | N/A for CIR mode |
7 | N/A for CIR mode | N/A for CIR mode | N/A for CIR mode |