Hello,
I want to test the CMP0 on a FRDM-KL25Z board, but when I try to assign a value to CMP0_CR0 = 0x00 the MCU enter the default_isr on vector 3.
Any idea?
Regards
Lars Magne Endresen
You can read "12.2.8 System Clock Gating Control Register 4 (SIM_SCGC4) " of "KL25P80M48SF0RM".
Hope my reply can help you.
Best Regards
Binbin
Enable the CMP module clock first, probably:
SIM_SCGC4 |= SIM_SCGC4_CMP_MASK;