The Intrpt_en_reg0 register has bits to enable the interrupt mask and Intrpt_dis_reg0 has bits to forcefully disable the interrupts. Each pair of bits should be set mutually exclusive (that is, one register has a 1 for the bit and the other register has a 0):
- Intrpt_en_reg0: Write-only. Enable interrupt bit(s).
- Intrpt_dis_reg0: Write-only. Force disable of interrupt bit(s).
- Program the Trigger Level. Write to the 6-bit field, uart.Rcvr_FIFO_trigger_level0[RTRIG].
- Enable the RTRIG interrupt. Set the enable bit, clear the disable bit, and
verify the mask value:
- Set uart.Intrpt_en_reg0[RTRIG] = 1.
- Clear uart.Intrpt_dis_reg0[RTRIG] = 0.
- The uart.intrpt_mask_reg0[RTRIG] read back = 1 (enabled interrupt).
- Disable the RTRIG interrupt. Set the disable bit, clear the enable bit, and
verify the mask value:
- Set uart.Intrpt_dis_reg0[RTRIG] =1.
- Clear uart.Intrp_en_reg0[RTRIG] = 0.
- The uart.intrpt_mask_reg0[RTRIG] read back = 0 (disabled interrupt).
- Clear the RTRIG interrupt. Write a one to the uart.Intrpt_dis_reg0[RTRIG] bit field.
When both the enable and disable bits are set for an interrupt, the interrupt is disabled.
The state of the interrupt enable/disable mechanism can be determined by reading the uart.Intrpt_mask_reg0 register. If the mask bit = 1, then the interrupt is enabled.