Jump to content
Sign in to follow this  
Davidwallis

Tivaware weak pull down and ADC?

Recommended Posts

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
 

 

Share this post


Link to post
Share on other sites

My guess is that it would only apply to the pin when configured as digital I/O.  Given these aren't likely laser trimmed resistors with low temperature coefficients, they would likely add error to the A/D result.

 

Just an educated guess. Perhaps someone more knowledgeable can jump in to confirm. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...