0

Analog prescale question

frank26080115 gravatar image

asked 2013-09-17 23:56:57 +0100

I'm using a nRF51844

I'm writing my own ADC reading routines because I can't find any examples, but I know how to code so that's not a problem. I just want to confirm something:

If the analog reference is selected to be ADC_CONFIG_REFSEL_SupplyOneThirdPrescaling , then does that mean to get a one-to-one reading, I should be using ADC_CONFIG_INPSEL_SupplyOneThirdPrescaling as well? If I do this, I assume that if my VDD is 3.3V and input is 3.3V, I get a 10 bit reading of 1023, correct?

What are the tolerances on the two prescalers?

edit retag flag offensive close delete report spam

2 answers

Sort by ยป oldest newest most voted
0
stefanbirnir gravatar image

answered 2013-09-18 07:37:11 +0100

If you have VDD (supply voltage) as reference by choosing e.g. ADC_CONFIG_REFSEL_SupplyOneThirdPrescaling, the ADC will compare the input voltage to the supply voltage. If you choose ADC_CONFIG_INPSEL_AnalogInputOneThirdPrescaling then that would mean the ADC will output 1023 when the input voltage is equal to the supply voltage when sampling with 10 bit resolution. However, it would make no sense to choose Supply voltage for both reference and input, as you have suggested.

For ADC saturation points and maximum voltages on the analog input pins, please look at: http://devzone.nordicsemi.com/index.p...

edit flag offensive delete publish link more

my mistake, i think i did mean to write ADC_CONFIG_INPSEL_AnalogInputOneThirdPrescaling but copied the wrong line thanks for the reply is there any error specifications on each individual prescaler?

Frank Zhao ( 2013-09-19 06:50:55 +0100 )editconvert to answer
0
stefanbirnir gravatar image

answered 2013-09-19 12:54:54 +0100

updated 2016-09-14 23:54:06 +0100

The error specification for the ADC is given in table 38 in the nRF51822 PS v1.2.

The impedance of the input voltage source, i.e. the device that generates the voltage to be measured by the ADC input pin, must be low, preferably within 1 kohm. If the impedance of the source is below 1 kohm the error specification in table 38 is valid and choosing different prescale settings for the ADC input will have little effect. On the other hand, when applying voltage source to the ADC input pin with high impedance, additional gain and offset error is introduced which is different for different prescalers.

The attached documents show the ADC model when the ADC is sampling and the value of R_AIN for different prescale settings. The internal VBG reference voltage is 1.2V so the ADC internal voltage source is VBG/2=0.6V. When the ADC is not sampling the AIN input pin has very high impedance and can be regarded as open circuit.

image description

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

Question Tools

Stats

Asked: 2013-09-17 23:56:57 +0100

Seen: 4,184 times

Last updated: sep. 14 '16