PUART interrupt control bits

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JaJo_1331951
Level 1
Level 1
First like received

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?

0 Likes
1 Solution
JacobT_81
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

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

View solution in original post

2 Replies
JacobT_81
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

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

Thank you, Jake!

0 Likes