Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: Interrupts don't work

$
0
0
Hi everyone I'm using R5F102AAA end e2 studio Kpit gnu compiler.  I want to use timer and ADC in my project. initialize the timer and adc in hardware setup function and set the interrupt flag TMIF00 =0 TMIF02=0 , ADIF=0 and mask flag TMMK00 =1 TMMK02 =1 ADMK=1. in the main function set mask flags to 0 and interrupt enable. but timer00 interrupt occurs only one time than TMIF00 set 1 and TMIF00 not set to 0 because of timer00 dosen't occur again. timer02 and ADC I-flgas and M-flags are 0 but so they don't occur interrupt. as a result, interrupt flags and masks are right in my opinion. but don't work Thank you  

Viewing all articles
Browse latest Browse all 59170

Trending Articles