AnsweredAssumed Answered

Interrupt handling on a MKV10Z32VLC7 and MK22FN512VLH12

Question asked by Denis Matt on May 2, 2017
Latest reply on May 10, 2017 by Denis Matt

Hi all, i own a MKV10Z32VLC7 and a MK22FN512VLH12. I would like to program in C, so close as possible to the hardware. Now i made run the UART0, sending and receiving works fine, but receive with polling only. I want to use the Interrupt, so i set the Bit Nr 6 for the TCIE in the Uart0_C2 Register. How can i handle the Interrupt now ? I tried it with

 

static void UART0_IRQHandler(void)

{IRQ_Counter++;}   //test

 

but this function never been called yet, the counter stays at zero.

Can everyone explaine the principle ? And also wich of the commands in the startup file ist necessary, because i intend to keep only the minimum of commands and functions in the startup routine.

Outcomes