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.

MSP430F6720: how to use A0 pin of ADC10 when in Sequence-of-Channels Mode (Autoscan Mode)?

Part Number: MSP430F6720


I am trying to use P1.2 pin as UART RXD pin while connecting P1.0 and P1.1 to two voltage signal input. The plan is to use Sequence-of-Channels Mode (Autoscan Mode) and DMA to sample P1.0/A2 and P1.1/A1. The problem is, as specified in user manual, in autoscan mode, ADC sampling will start with A2 and stop at A0.

My question is, will sampling A0 affect P1.2 pin function as UART RXD? 

Thanks in advance.

  • It seems as long as P1.2 is defined as UART RXD pin not ADC10 input, A0 channel being sampled or not, it works just fine.

    The following code tested working with continuous sampling of all 3 channels of A0, A1, A2 going on in the background with ISR.

    Hope this will help someone.

    P1SEL |= BIT0 | BIT1 | BIT2 | BIT3;     // Set P1.2, P1.3 to non-IO
    P1DIR |= BIT2 | BIT3;                   // Enable UCA0RXD, UCA0TXD
    // Inside ADC10 setuo block
    //P1MAP2 = PM_ANALOG;                   // Don't enable A0