I have an external 3-state bus driver, The Enable pin is pulled up by an external resistor and controlled by my GPIO.
The pull-up ensures the buffer is disabled at power up.
Now, I want the buffer to stay in 3-state until I at some later time turn it on. But that requires the GPIO to go '1', when I turn it to be output.
So can it be done like this?
GPIOPinWrite(GPIO_PortF_Base, GPIO_Pin_1,2); //Set Pin 1 before it is programmed as output GPIOPinTypeGPIOOutput(GPIO_PortF_Base, 6); //Pins 1 and 2 as output. Pin 1 should start up in the '1' state?
I.e. writing the state of the output pin before it is set to be output?
Apparently not!
So what can be done about it?