Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Tivaware weak pull down and ADC?

$
0
0

Is it possible to configure a weak Down up on an adc? 

 

I have tried this but it doesn't seem to work..(based on the single ended adc example, comments removed for clarity.. 

 

 
SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0);
 
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE);
 
GPIOPinTypeADC(GPIO_PORTE_BASE, GPIO_PIN_3);
 
 //Configure Weak pull down
 GPIOPadConfigSet(GPIO_PORTE_BASE,GPIO_PIN_3,GPIO_STRENGTH_2MA,GPIO_PIN_TYPE_STD_WPD);
 
 ADCSequenceConfigure(ADC0_BASE, 3, ADC_TRIGGER_PROCESSOR, 0);
 
ADCSequenceStepConfigure(ADC0_BASE, 3, 0, ADC_CTL_CH0 | ADC_CTL_IE | ADC_CTL_END);
 
ADCSequenceEnable(ADC0_BASE, 3);
 
ADCIntClear(ADC0_BASE, 3);
 
Thanks
 

 


Viewing all articles
Browse latest Browse all 2077

Trending Articles