AnsweredAssumed Answered

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

Question asked by Daniel Chai on Sep 30, 2013
Latest reply on Sep 30, 2013 by David E Seymour

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.

Outcomes