cancel
Showing results for 
Search instead for 
Did you mean: 

Question on USART interrupt and when it occurs

Vu.Andy
Associate III
Posted on July 01, 2016 at 20:26

For example, if I call the function HAL_UART_Receive_IT() with a buffer size of 16.

When will the interrupt be triggered?

Is it when all 16 bytes are filled up?  Or when the Usart finished received all the data?

Will the interrupt get triggered in the middle of receiving a message?

Also when the interrupt is finished, how do I clear the buffer?

Thanks.

1 REPLY 1
Posted on July 01, 2016 at 21:02

The architecture will INTERRUPT for each byte, the library CALLBACK will occur when it has the 16 you asked for, right?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..