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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,018件の閲覧回数
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 返信

858件の閲覧回数
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 件の賞賛
返信