Hi Rajiv,
all GPIO pins are protected by ESD diodes to power supply rails.
So, this 5.8V presents 5V at VDDA plus 0.8V drop at internal ESD diode. In this case, you injected current into pin, ESD diode to VDDA/VDDX rail.
The maximum allowed continuous injection current per single pin is 2.5mA (Total device limit, a sum of all injected currents is 25mA).
Regarding your resistor divider values, the injected current will be small ((20V-5.8V)/56k=0.25mA). However, we have to be carefully especially in power save modes. If the sum of injected currents will be bigger than VDDX/VDDA power consumption, the regulator may be not able to keep stable 5V output voltage level.
See chapter A.1.2 Current Injection in RM. Optionally you may look also on our application notes:
AN4731 Understanding Injection Current on Freescale Automotive Microcontrollers
http://www.nxp.com/files/32bit/doc/app_note/AN4731.pdf
or older AN2434 Input-Output Pin Drivers on HCS12 Family MCUs
http://www.nxp.com/files/microcontrollers/doc/app_note/AN2434.pdf
Note: If you use PAD pins as digital inputs, please do not forget to enable appropriate digital input buffers by DIENADx registers.
What is supposed voltage range of these additional high voltage inputs? Maybe, the choosing of different voltage divider values may partially prevent against injection current effects…
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------