16位 MSP430FR2353 芯片P1.7引脚配置成VREF+输出2.5V 如何配置?
下面是我的配置
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
PM5CTL0 &= ~LOCKLPM5; // Disable the GPIO power-on default high-impedance mode
// to activate previously configured port settings
P1SEL0 |= BIT7;
P1SEL1 |= BIT7;
// Configure reference module
PMMCTL0_H = PMMPW_H; // Unlock the PMM registers
PMMCTL2 = INTREFEN | REFVSEL_2 | EXTREFEN_1; // Enable internal 2.5V reference
// to activate previously configured port settings
P1SEL0 |= BIT7;
P1SEL1 |= BIT7;
// Configure reference module
PMMCTL0_H = PMMPW_H; // Unlock the PMM registers
PMMCTL2 = INTREFEN | REFVSEL_2 | EXTREFEN_1; // Enable internal 2.5V reference
while(!(PMMCTL2 & REFGENRDY)); // Poll till internal reference settles
,但是测量时仅仅测量出来1.2V 我想输出2.5V 不知道怎么配置下 能否提供下例程
Susan Yang:
回复 user5707170:
是的 1.2 V for external reference (VREF pin)
灰小子:
msp430内部的2.5v基准电压,可以在内部使用,但不能输出。