cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Smart Bluetooth

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
Reply
1 Solution
Moderator
Moderator

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

View solution in original post

0 Likes
Reply
2 Replies
Moderator
Moderator

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

View solution in original post

0 Likes
Reply
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
Reply