Changing port direction; pull-up control registers start again?

Question:

When I change the port direction register (Input → Output → Input), do the pull-up control registers have to be initialized again?

Answer:

No. Although the pull-up resistor is disconnected when the port direction register is set to output mode, the setting of the pull-up control registers becomes valid again when you re-set the port direction register to input mode.