Datasheet

Chapter 18 Multiplexed External Bus Interface (MEBIV3)
MC9S12E256 Data Sheet, Rev. 1.10
528 Freescale Semiconductor
NOTE
To ensure that you read the value present on the PORTB pins, always wait
at least one cycle after writing to the DDRB register before reading from the
PORTB register.