4 Replies Latest reply on Jul 1, 2015 4:36 PM by MichaelF_56

    Questions related to the ADC implementation on the BCM2073XS...

    MichaelF_56

      This came in via email from userc_13960, but I thought it may make sense to post here since the documentation for the ADC functionality is very limited:

       

      ===================Begin

       

      We’re confused about the situation with reference voltage for the ADC, so I was hoping you could point me in the right direction.

       

      Three things I’m confused about:

       

      1. The API for SetReferenceVoltage(pin, voltage).
        • I believe (but am not sure) that, when called, the API takes a measurement of the pin specified, then computes the ratio between the raw ADC value and the number of millivolts specified to create a conversion factor between the raw ADC value and the millivolts value.  And then saves that conversion factor for future use when adcRead() is called.
        • In other words, it is purely a software thing, and that it does not actually use that pin as the external hardware reference voltage for the ADC operation.
      2. Reference Voltage(s):
        • I believe (but am not sure) that there is at least one internal voltage reference inside the chip.  But from the limited docs I can’t be sure.  And there may be more than one.
        • If for example, I wanted to use the 1.2V core voltage as the reference, is that possible?  Is there an API to select this?  There are three bullets that talk about different impedances based on different voltage ranges. So that implies that there are three different references that I can use: VDD, 2.4 and Vcore.
        • If I call the SetReferenceVoltage API (for example with P15), does that make P15 an external reference for the ADC in a hardware sense?  I’m thinking no, but not sure.
      3. The different ADC Modes (table 1).  Are these really just different sample and hold rates?  So if I go to low-frequency sampling, I get better precision.  Or is there more to these modes.  There isn’t really any description of what the modes mean.

       

      Thanks very much for any light that you can shed on this.  I have a customer that wants to use 1.2V as the reference. Hence my curiosity.