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.
我现在需要用MSP430FR2033的A7 A8 A9进行ADC采样,然后TI提供的示例代码是A0 A1 A2,我更改成A7 A8 A9后不能采集到ADC值,请问这个软件改怎么实现?
// Configure ADC A0~2 pins
//SYSCFG2 |= ADCPCTL0 | ADCPCTL1 | ADCPCTL2; //配置对应AD输入口
SYSCFG2 |= ADCPCTL7 | ADCPCTL8 | ADCPCTL9;
// Disable the GPIO power-on default high-impedance mode to activate
// previously configured port settings
PM5CTL0 &= ~LOCKLPM5;
// Configure ADC
ADCCTL0 |= ADCSHT_2 | ADCMSC | ADCON; // 16ADCclks, MSC, ADC ON
ADCCTL1 |= ADCSHP | ADCCONSEQ_1; // ADC clock MODCLK, sampling timer, s/w trig.,single sequence
ADCCTL2 &= ~ADCRES; // 8-bit conversion results
//ADCMCTL0 |= ADCINCH_2 | ADCSREF_1; // A0~2(EoS); Vref=1.5V
ADCMCTL0 |= ADCINCH_9 | ADCSREF_1;
ADCIE |= ADCIE0; // Enable ADC conv complete interrupt
这个配置上面的回复已经改了啊,而且现在只能进一次中断,然后就死在__bis_SR_register(LPM0_bits | GIE);这里了,不知道是怎么回事?
你好,按照你给的配置改了以后还是不能读到正确的ADC值,是不是还有其他地方需要更改,我的程序是参照TI给的demo code的msp430fr413x_adc10_10更改的,请问其他地方还有什么需要更改的才能正确取到A7 A8 A9的值?