AnsweredAssumed Answered

KL16 UART Interrupt with PE Setup

Question asked by MIKE WILLIAMS on Jan 5, 2017
Latest reply on Jan 10, 2017 by Robin_Shen

Hopefully this isn't a stupid question.

 

I'm trying to set up the UART to interrupt on each character.  I assume that the callback function is where I would pull that character out and put it in my own buffer.  My PE setup for the callback looks like this:

 

 

When I call UART_DRV_ReceiveData(), it requires a pointer to a buffer.  What is the difference between the buffer I set in PE and the one I have to pass to the UART_DRV_ReceiveData() call?  How do I set it up so that the UART interrupts on each character and calls the callback function so I can pull that character out into my own buffer?  Do I have to call UART_DRV_ReceiveData() for each character I want to receive?

 

Thanks.

Outcomes