Configuring the same pin as input and output

Is it possible using the ARM9 to configure a pin as both input and output? I need to be able to write to it and then read from it. This would be done as an open collector configuration.
I have tried changing the DDR and the GPIOOUTPUT registers on the fly, but this did not work.

Thanks,
Joe

More questions in this forum