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基准输出不工作

Guru**** 657930 points
Other Parts Discussed in Thread: MSP430FR2311
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1266316/msp430fr2311-msp430fr2311-reference-output-not-working

器件型号:MSP430FR2311

我正在尝试在 MSP430FR2311上使用1.2V 的外部基准输出。  即使我启用 外部基准、但在运行程序时、EXTREFEN 保持为0、P1.7上的基准输出保持为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