Skip to content

Conversation

@polarbearing
Copy link

Pico datasheet, 4.3. Using the ADC: "The ADC draws current (about 150μA if the temperature sense diode is disabled, but it varies from chip to chip) and therefore there will be an inherent offset of about 150μA200 = ~30mV. There is a small difference in current draw when the ADC is sampling (about +20μA)"
Thus when sampling Vref is nominal (150+20)μA
200 = ~34mV

Splitting the variable in two lines makes the change for the clamped situation more intuitive.

The value range of a 12 bit resolution is 0-4095, i.e. 2^12 minus one.

Pico datasheet, 4.3. Using the ADC: "The ADC draws current (about 150μA if the temperature sense diode is disabled, but it varies from chip to chip) and therefore there will be an inherent offset of about 150μA*200 = ~30mV. There is a small difference in current draw when the ADC is sampling (about +20μA)"
Thus when sampling Vref is nominal (150+20)μA*200 = ~34mV

Splitting the variable in two lines makes the change for the clamped situation more intuitive. 

The value range of a 12 bit resolution is 0-4095, i.e. 2^12 minus one.
@matiasilva
Copy link

I suspect the best branch for this to be merged into should probably be develop?

@aallan
Copy link

aallan commented Jul 9, 2021

I suspect the best branch for this to be merged into should probably be develop?

Yes. It'll need to be rebased onto develop. We don't accept PRs to master.

@kilograham kilograham changed the base branch from master to develop May 17, 2022 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants