How to use the internal 1.2v reference for ADC on K60 ?

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

How to use the internal 1.2v reference for ADC on K60 ?

ソリューションへジャンプ
1,426件の閲覧回数
danielchai
Senior Contributor I

Hi All,

I am using the MQX10.4 and MQX4.0.1.

I was trying to use the internal 1.2v reference for adc0.

I used ioctl(adc_dev0, ADC_IOCTL_SET_REFERENCE, ADC_REF_VREF), but when I check the register SC2 reference bits still shows 00.

I also tried to manually set the VREF_SC  and SC2 register.

VREF_SC |= 0xA0;

ADC0_BASE_PTR ->SC2 |= 0x01;

but the reading result still based on VREFH and VREFL not based on internal 1.2v.

Any suggestion about this?

Thanks.

0 件の賞賛
返信
1 解決策
1,137件の閲覧回数
danielchai
Senior Contributor I

The ADC_REF_VREF does not work. But change it to ASC_REF_VALT, IT WORKS.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,138件の閲覧回数
danielchai
Senior Contributor I

The ADC_REF_VREF does not work. But change it to ASC_REF_VALT, IT WORKS.

0 件の賞賛
返信
1,137件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Daniel,

Sorry for trouble but very glad you resolved it.  Good debugging on your part.

There is also Freescale AN4568 that uses internal voltage reference for Kinetis K series that might help others.

Regards,

David

0 件の賞賛
返信