2 Replies Latest reply on Jun 29, 2016 3:17 PM by user_497826660

    PUART interrupt control bits

    user_497826660

      Has any explanation been provided on the puart interrupt control bits besides P_UART_ISR_RX_AFF_MASK or is this the only mask I'm expected to use?

        • 1. Re: PUART interrupt control bits
          JacobT_81

          This is the Almost Full Flag. This is the only mask you'll need to use the interrupt. It is used to enable the hardware to throw an interrupt when the FIFO hits the watermark level.

           

          Enable:

          P_UART_INT_ENABLE |= P_UART_ISR_RX_AFF_MASK

           

          Clear the bit:

          P_UART_INT_CLEAR(P_UART_ISR_RX_AFF_MASK)

           

          Disable the interrupt:

          P_UART_INT_ENABLE &= ~(P_UART_ISR_RX_AFF_MASK)

           

          Set your watermark level to x:

          P_UART_WATER_MARK_RX_LEVEL(x)

           

          The other flags you see defined are either not necessary to use or their use case is covered by the almost full flag e.g. rx completely full, rx almost empty, rx completely empty, etc.

           

          Jacob

          3 of 3 people found this helpful
          • 2. Re: PUART interrupt control bits
            user_497826660

            Thank you, Jake!