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.

MSP430FR2311: MSP430FR2311 Reference Output Not Working

Part Number: MSP430FR2311


I am trying to use the external reference output of 1.2V on the MSP430FR2311.  Even though I enable the external reference, when I run the program, the EXTREFEN remains at 0 and the reference output on P1.7 remains at 0V.

#include  "msp430fr2311.h"
;-------------------------------------------------------------------------------

;-------------------------------------------------------------------------------
            ORG     0F100h                  ; Program Reset
;-------------------------------------------------------------------------------
RESET       mov     #02400h,SP               ; Initialize stackpointer
            mov     #WDTPW+WDTHOLD,&WDTCTL  ; Stop watchdog timer

            mov     #80h,&SYSCFG2 ; Enable A7 for A/D
            mov.b   #80h,&P1DIR   ; Make P1.7 an output
            mov.b   #80h,&P1SEL0  ; P1SEL0=P1SEL=1 chooses A7/VREF
            mov.b   #80h,&P1SEL1
            bic.w   #LOCKLPM5,PM5CTL0
            bis     #7h,&ADCMCTL0  ; Not sure I need this
            mov     #EXTREFEN,&PMMCTL2  ; Enable external reference output
Loop
            jmp     Loop
            ret

;-------------------------------------------------------------------------------
            ORG     0FFFEh
            DW      RESET
            END

**Attention** This is a public forum