Adc16 reading full value with 0 volts input (MK02FN128xxx10)

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

Adc16 reading full value with 0 volts input (MK02FN128xxx10)

584 Views
GustavoRicci
Contributor I

I followed all the steps of fsl_adc16.c and fsl_adc16.h but I am not able to read the correct adc value.
When I read the adc and the input value is 0 volts, my reading reference appears as 65536(full)

0 Kudos
1 Reply

555 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi GustavoRicci,

Have you refer the ADC examples in MCUXpresso SDK
Check:
Whether VREFH and VREFL are powered(refer: 3.7.1.5 ADC Reference Options)
Whether correct ADC Channel (SC1n[ADCH]) is select(refer: 3.7.1.3 ADCx Connections/Channel Assignment)

my reading reference appears as 65536(full)

Do you mean when ADC Channel (SC1n[ADCH])=11101, the ADCx_Rn show you full value? If so, please check if the ADC pin are well connect to external signal(refer: 10.3.1 K02F Signal Multiplexing and Pin Assignments).

Table 3-35. ADC0 Assignments (continued).png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 Kudos