Hardware needed to interface the adc for KL43z?

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

Hardware needed to interface the adc for KL43z?

460 Views
christopherira
Contributor III

Hello,

I'm using the KL43z, trying to do ad-conversion. I'm using processor expert. I've written this code:

pastedImage_0.png

Though, when I vary the voltage to ADC0_SE0/PTE20, it results in only three different values. I am varying the voltage between 0 and 5 V and I am only getting back three or four different values at various spots.

I'm wondering if I need to put in a capacitor or some sort of hardware circuit to interface the adc.

Thanks!

-Chris

0 Kudos
1 Reply

322 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

I would recommend customer to refer below potentiometer circuit:

2016-03-22_10-49-48.jpg

Wish it helps.

Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos