Example: Set the RxFIFO Trigger Level and Enable the Interrupt - Example: Set the RxFIFO Trigger Level and Enable the Interrupt - 1.15 English - UG585

Zynq 7000 SoC Technical Reference Manual (UG585)

Document_ID
UG585
Release_Date
2026-02-06
Version
1.15 English

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).
  1. Program the Trigger Level. Write to the 6-bit field, uart.Rcvr_FIFO_trigger_level0[RTRIG].
  2. Enable the RTRIG interrupt. Set the enable bit, clear the disable bit, and verify the mask value:
    1. Set uart.Intrpt_en_reg0[RTRIG] = 1.
    2. Clear uart.Intrpt_dis_reg0[RTRIG] = 0.
    3. The uart.intrpt_mask_reg0[RTRIG] read back = 1 (enabled interrupt).
  3. Disable the RTRIG interrupt. Set the disable bit, clear the enable bit, and verify the mask value:
    1. Set uart.Intrpt_dis_reg0[RTRIG] =1.
    2. Clear uart.Intrp_en_reg0[RTRIG] = 0.
    3. The uart.intrpt_mask_reg0[RTRIG] read back = 0 (disabled interrupt).
  4. 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.