AnsweredAssumed Answered

FRDM:KL03Z: When to use GPIO vs PORT Commands?

Question asked by Sara Stout-Grandy on Mar 8, 2017
Latest reply on Mar 8, 2017 by Mark Butcher



I am confused by GPIO and PORT. It sounds from reading the documentation that to set up port pins as input or output that you need to do it through GPIO, but this would mean that you can't use the ALT functionality since GPIO is a separate multiplexing function. it safe to assume that you only use GPIO when you are not working with one of the specific ALT functionality (like TPM0-CH0)? If so, then how do you set the port pins as input/output using PORT commands only?