I'm using Grace (the one that comes with CCSv4.2.5) and MSP420F2274 and I'm trying to do the following:
input voltage -> BOTH ADC10 input A0, AND OA0I0.
configure OA0 as comparator.
output of OA0 -> P2.1
P2.1 GPIO interrupt.
So basically, take a voltage in, interrupt when the voltage passes a threshold, then be able to measure with ADC.
Using Grace... it won't let me set this up. Maybe it's not possible? Seems like it ought to be, after studying the users guide and data sheet....
Basically, I go to the ADC page and uncheck A1 input enable, then go to the GPIO QFN view page and pulldown for pin 7 to GPIO input and it gives me the error:
Can't assign new function to P2.1 because of ADC_OA
Then I check the source, and I see:
ADC10.regs.ADC10AE0 = 23;
But according to what I checked it should be 21... if I set it to 21 and save, I get the wrong enable checkboxes in the ADC setup (A0, A1, A4 which should be 19)
I'll upload a project example (ignore the user code...)