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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,027 次查看
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.

标签 (1)
0 项奖励
回复
1 回复

867 次查看
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 项奖励
回复