Adc16 reading full value with 0 volts input (MK02FN128xxx10)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
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.
-------------------------------------------------------------------------------
