cancel
Showing results for 
Search instead for 
Did you mean: 

Character match interrupt

federico.massimi
Associate III
Posted on March 17, 2017 at 13:29

Hello,    

   I'm going to use the 'Character match interrupt' to identify the end (\n) of the message received from an USART. (on an STM32L4 Series ).

Since I am quite new to this world, I did various tests, but I could not make it work.

Could someone tell me the necessary steps to use this interrupt, starting from the code generated by CUBEMX.

I want the USART receives in an oversized buffer, and when it receives the character '\n' is called an interrupt routine in which I read the contents of the buffer,  and so on in an infinite loop.

someone can help me?

thanks in advance

#usart-interrupt
0 REPLIES 0