MK20 digital input impedance

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

MK20 digital input impedance

1,296 Views
lah
Contributor I

Hello, I'm coming on Kinetis forum, because I got an issue I couldn't explain an MK20DX256, here are messages I've posted about this issue :

I'm coming here, because I did not get any precise anwswers about issue described below.

To sum up, I'm using MK20DX256. Recently I got a input impedance problem. When trying to read jack status using this circuit

using a GPIO configured as digital input I read 3.3V and ~1.4V, when jack is connected / disconnected, it should be 3.3V ~ 0.3V. I solved it using a voltage follower.

But from datasheet p 15/16 , I cannot understand why do I have some such leakage current. So, here are my questions :

  • when jack is not connected, voltage output on jack detector (when MK20 not connected) circuit is ~0.3V with an impedance of 60k. If I get 1.4V on input of mk20 when I connect this circuit, that means on MK20 a 100k input impedance is present. Why such an impedance, when in datasheet when Vss <= Vin <= Vil, typical leakage current is 0.002µA?
  • leakage is because of input protection leakage (also refer datasheet p41), but my question is why at Vdd, leakage decreases so much, when in theory it increases with voltage for a diode. Leakage current in this zone is 1µA (max 50µA) << leakage in Vil < Vin < Vdd zone. It must ne because of 5V input protection, but could you detail precisely how it is done internally?

Thanks

Labels (1)
0 Kudos
3 Replies

978 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

There is a document about Kinetis hardware design Tip & Tricks, please check below link for detailed info:

Kinetis Hardware Design Tip &amp; Tricks 

On pins wiTh 5V ToleranT inpuTs, Too large oF a pull-down resisTor can end up wiTh >10ua leakage currenT.
Please see The datasheet for maximum resistance value allowed.

pastedImage_2.png

If R1 is too high, the pin level will not drop below VIL which is needed to turn off the p-channel keeper.

R1 must be low enough such that the PFET current will make this IR less than VIL when signal is grounded
Use 20uA to calculate initial R1 value & pick lower value

VDD(V)

Spec VIL(V)

R1(kΩ) max

1.7

0.51

25.5

2.7

0.81

40.5

2.7

0.95

47.3

3.0

1.05

52.5

3.3

1.16

57.8

3.6

1.26

63.0

If using the internal Pull-up resistor (20kΩ to 50kΩ), Use min Rpu value to calculate initial R1 value & pick lower value:

pastedImage_4.png

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

978 Views
lah
Contributor I

Thanks for your precise response. Just a last thing, I did not find in datasheet given values, can you give me the good datasheet link?

0 Kudos

978 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

That's a pity.

I checked the MK20 latest datasheet without related info. Sorry for the inconvenience may cause.


Have a great day,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos