Other Parts Discussed in Thread: Z-STACK, Z-STACK-ARCHIVE
Hi,
I am trying to activate the analog comparator in the CC2530. For some reason I can't get it to work. Any suggestions?
- I'm using inputs P0_4 and P0_5.
- I have set both as ADC input (APCFG bits 4 and 5).
- I have enabled the comparator (set CMPCTL.EN to 1).
- I have moved all other possible output from other peripherals to "alternative 2" positions.
- I removed pullups/downs (P0INP = 0xFF)
- Though it should not be needed, I also have set P0_4 and P0_5 as inputs
Just applying 2 voltage levels to the inputs, I can not get the output (CMPCTL.OUTPUT) to change.
What am I missing?