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.
16位 MSP430FR2353 芯片P1.7引脚配置成VREF+输出2.5V 如何配置?
下面是我的配置
我想直接通过这个引脚直接输出2.5V ,作为外部的参考电压
PMMCTL2 = INTREFEN | REFVSEL_2 | EXTREFEN_1; // Enable internal 2.5V reference 选择了2.5V 但是输出是2.5V也对这个寄存器操作了
下面的操作配置还是输出1.2V
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; // Enable internal 2.5V reference
while(!(PMMCTL2 & REFGENRDY)); // Poll till internal reference settles
ADCMCTL0 = ADCINCH_7 | ADCSREF_0; // A1 ADC input select = OA0 output
// Vref = DVCC
如果配置ADC/DAC的内部参考电压是可以的,我仅仅是将1.7引脚配置输出2.5V是失败的,也通过ADC通道的选择
非常感谢你的回答