Electronics > Microcontrollers

SAMD21 - Voltage on analog input trickles into 3.3V rail

(1/1)

Vulpecula:
Hey there!

I have observed a rather strange thing regarding a circuit, where the voltage of a 7.4V 2S LiPo battery gets divided down with a voltage divider (ratio: 1kOhm/3kOhm) and is then fed into an analog input pin of a SAMD21 microcontroller. The circuit is turned on and off by a pushbutton controller which is connected to the enable-pin of a buck converter. Also, the battery is always connected to that voltage divider and the connection does not get cut off in case the circuit is turned off.

Here's the strange thing: When turned off, I can measure a voltage between 0,8V and 1V on the 3.3V rail and a current of 2.5mA coming from the battery. Changing the resitor values (without changing the ratio) does lower the voltage and the current of course. For instance: 100kOhm/300kOhm lowers the voltage on the 3.3V rail to 0.4V and the current to 0,15mA.

Can someone explain why this happens? My best guess is, that when the 3.3V rail on the microcontroller is turned off, something inside the SAMD21 lets current seep through. But after all, I do not know enough about the internals of those microcontrollers so maybe some of you guys can tell me what is going on here.

Thanks and greetings
Vulpecula

Ian.M:
Your MCU is getting parasitic power via its input protection diodes.


EEVblog #831 - Power A Micro With No Power Pin!
Forum thread: https://www.eevblog.com/forum/blog/eevblog-831-power-a-micro-with-no-power-pin!/

ataradov:
Yes, all pins on SAM D21 have clamping diodes, and if there is no VDD voltage, but there is a voltage on the pin, then the VDD diode opens and powers the VDD rail.

Navigation

[0] Message Index

There was an error while thanking
Thanking...
Go to full version