Other Parts Discussed in Thread: MSP430F2132
I am having problems getting the Comparator working. I have the + terminal connected to P1.3 (pin 8) of the MSP430FR5739. I have selected the pin as an input and have SEL0/1 set to 0x08 to select comparator operation. In the comparator I have the registers set to
CDCTL0: 0x0083
CDCTL1: 0x1c85
CDCTL2: 0x0767
CDCTL3: 0xFFF7
I have an input on the + terminal that will vary from ~0Volts when passive and up to about 2volts when activated. In a previous design using a MSP430F2132 I used 0.25Vcc on the negative terminal. I wish to do a similar thing with this MCU. Are there any code examples I can look at (IAR Assembler)? If not can anyone suggest what I am doing wrong?
Thanks
Peter