Hello Joseph Gray:
The Digital I/O pins of K22FX512VMC12 are 5V tolerant only when configured as inputs, not outputs. So you are right that you cannot have an output voltage higher than VDD. The workaround is to disable the pin so it has high impedance. Unfortunately Processor Expert does not provide an API for this, but you could add your own macros:
#define ENABLE_PIN (PORT_PCR16 |= PORT_PCR_MUX(1))
#define DISABLE_PIN (PORT_PCR16 &= !PORT_PCR_MUX_MASK)
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------