WICED smart ADC configuration

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I'm trying to evaluate the built in ADC on the BCM20732S and I'm having difficulty accessing the low level configuration of the ADC.

In the datasheet, the ADC section mentions:

"There is a built-in reference with supply- or bandgap-based reference modes. "

There isn't a function in Drivers/adc.h to set this, however.

In the absence of any documentation of the ADC registers or low level operation, I'm looking through adc.h and I see the following:

<code>

/// ADC bandgap reference.

enum

{

  /// P25 or ADC channel 15 is always the internal bandgap reference.

    ADC_INPUT_BG_REFERENCE = ADC_INPUT_P20,

};

</code>

Which I think just hard code the high level API functions to use the internal bandgap reference.

Does anyone know if it is possible to set the supply to use VCC as (ie supply based) reference?

Are there any ARM docs that describe the ADC in detail?

0 Likes
1 Solution
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

I think you'll find this post helpful: Re: BCM20732S ADC Configuration

View solution in original post

0 Likes
2 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

I think you'll find this post helpful: Re: BCM20732S ADC Configuration

0 Likes
Anonymous
Not applicable

ok so EXTERNAL_REFERENCE_ADC_CHANNEL in adc_adcCalibrate() sets the reference for subsequent reads?

I wouldn't presume this from the name of the function, no reference to it in documentation, no access to source code 😞

0 Likes