Kinets MKL05Z32 DAC and ADC Config

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

Kinets MKL05Z32 DAC and ADC Config

491 Views
rodrigovernini
Contributor I

Hi, i'm trying to maximize the sensitivity of the ADC using a  specific range of reading, between Vrefl and Vrefh, and make this range output full VSS-VDD in the DAC, for example:

Signal Range = 1V — 1.5V

Vrefl = 1V

Vrefh = 1.5V

Reading expected:

(Input) = (Reading)

0V  — 1V = 0x0 (Saturated Region)

1V — 1.5V = 0x0 — 0xFFF (Usefull Region)

1.5V — 3.3V = 0xFFF (Saturated Region)

Output Expected

(Input) = (Output)

0V  — 1V = 0V (Saturated Region)

1V — 1.5V = 0V — 3.3V (Usefull Region)

1.5V — 3.3V = 3.3V (Saturated Region)

Vrefl and Vrefh should be standard references for ADC, for full output i made DACx_C0[DACRFS] = 1.

What i got was:

Reading:

0V — 0.5V =  0x0 — 0xFFF (Usefull Region)

0.5V — 3.3V = 0XFFF (Saturated Region)

Output

0V — 0.5V =  0V — 3.3V (Usefull Region)

0.5V — 3.3V = 3.3V (Saturated Region)

So, the ouput was ok, could make full range, but couldn't make the reading in the range expected, the range was like VSS — (Vrefh-Vrefl) = 0V — 0.5V = 0x0 — 0XFFF

Maybe the low reference for ADC will be Always VSS , can someone confirm this?

Why the high reference for conversion seens to be (Vrefh - Vrefl)?

Labels (1)
Tags (3)
0 Kudos
1 Reply

436 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

The KL05 datasheet ADC module operating conditions with below requirements of VREFL and VREFH:

pastedImage_1.png

VREFL is fixed to VSSA.

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