This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F2274 general purpose op-amp

Other Parts Discussed in Thread: MSP430F2274

Hi,

I'm trying to configure the general purpose op-amp inside the MSP430F2274. All pins should be connected externally.

I want to make this oscillator (3.1):

http://www.ti.com/lit/an/slaa363a/slaa363a.pdf

This is my code:

void main (void)
{
  /*
   P2.0 = non inverting in
   P2.1 = OA OUT
   P2.2 = Inverting in
    */
 
    P2SEL = 0;
    P2DIR = BIT0;  
                 
  // Set up Op Amp 0
 
    OA0CTL1 = OAFC_0;                                                          // OAFC0 = 0 General Purpose Op amp
    OA0CTL0 = OAN_1 | OAP_0 | OAPM_2 | OAADC0 ;   // Inverting pin connected to OA0I1; Non inverting  pin connected to OA0I0; Out connected to A1 A3 A5; Medium selw rate
    ADC10AE0 = BIT0 | BIT1 | BIT2;                         // P2.0-OAI0, P2.1-OAO, P2.2-OAI1  Analog settings
 
    //Main
        while (1)    
        {        
                  
        }        
}

I don't get why it doesn't work properly. Can you help me please?

**Attention** This is a public forum