Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 224311

Forum Post: RE: MSPM0G3507: Interrupt fires instantly when enabled

$
0
0
>TIMA1->CPU_INT.IIDX; >TIMA1->CPU_INT.IMASK = DL_TIMER_EVENT_CC1_DN_EVENT; Reading the IIDX will only clear the interrupt if it's (currently) enabled; based on your other fragment I suspect it usually isn't. I suggest instead: >TIMA1->CPU_INT. ICLR = DL_TIMER_EVENT_CC1_DN_EVENT; >TIMA1->CPU_INT.IMASK = DL_TIMER_EVENT_CC1_DN_EVENT;

Viewing all articles
Browse latest Browse all 224311

Trending Articles