AnsweredAssumed Answered

GPIO Direction vs Output_Enable

Question asked by Denis Collis on Jan 17, 2020
Latest reply on Jan 18, 2020 by Robin_Shen

I just need some clarity here.  I am porting some code to a K8x from an ARM MCU from another manufacturer.  They have a GPIO Data Output Enable Register. There is no concept of 'direction', as the GPIO Data Input Register always reflects the state of the pins, whether output is enabled or not.


Does the Kinetis GPIO Data Direction Register work in the same way?  That is, does the Kinetis GPIO Data Input Register reliably reflect the state of the pin, without regard to the GPIO Data Direction Register setting? 


Background: The pin connects to an open drain bus control rail. Output register is normally high. Reading input register indicates that another device has grabbed the bus.