MKW22D512 - How to use the internal 1.2V reference for ADC?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MKW22D512 - How to use the internal 1.2V reference for ADC?

1,025 Views
glaucioguia
Contributor I


Is the 1.2V internal reference always enabled?

I'm using the ADC16_DRV_Init() function (Kinetis SDK) for ADC module initialization. In the parameter refVoltSrc I'm using the value kAdc16RefVoltSrcOfValt. Is it enough to use the internal 1.2V as ADC reference?

adcUserConfig.refVoltSrc = kAdc16RefVoltSrcOfValt;

Thank you

Glaucio Guia.

Labels (1)
0 Kudos
Reply
1 Reply

865 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi GLAUCIO GUIA

VREF is a module that has to be enable, hence, it is not always enable, if you want to do this in KSDK you can do it with CLOCK_SYS_EnableVrefClock(0); before you initialize your ADC: NOTE: PMC_REGSC[BGEN] bit must be set if the VREF regulator is required to remain operating in VLPx modes

Since VREF is not related with VREFH and VREFL pins, so yes, there is not problem if you use it as ADC reference.

Hope this help!
Have a great day,
Jorge Alcala

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply