As I was reviewing the datasheets/reference manuals of the MK21FX512VMD12 and MK22FN1M0AVMD12, I noticed that there was the comment that all GPIO pins are 5V tolerant.
Going through the questions about this previously, it seems that only the input functionality of the pins are 5V tolerant, the outputs (even if they are in open drain mode) engage the anti-static diodes to the chip's Vdd and are only tolerant to what Vdd which is a maximum of 3.6V.
In my application, I have a number of pins that are driving NPN transistors as open collectors drivers to 5V circuitry and I was wondering:
Could I use the pins as 5V open drain outputs if, when the driver is disabled the pin is in input mode (and is 5V tolerant) and when I want to pull the line low (which the NPN transistor was doing) change to output mode with a low output?
It's certainly no less kludgy than using the NPN transistor, and it saves me $0.05 in each instance.
Thanx!