Other Parts Discussed in Thread: CC2541
Hi,
We are working on CC2541 based project. For waking up CC2541 from PM3, we are trying to use internal comparator (P0.4 and P0.5). The comparator got enabled but the output is not getting toggle with different inputs. i.e always gives same output. Note: In PM3 mode, customized ISR got triggered.
The following registers are set with corresponding values:
APCFG |= 0x30;
IEN1 |= 0x20;
P0IEN = 0x00;
P0DIR &= ~(0x30);
CMPCTL |= 0x02;
Did I miss any configurations?
My question is how to toggle comparator for waking up CC2541 from PM3 as an external trigger?
Thanks,
Vipin.