An apparatus comprises at least one port for coupling signals to the
apparatus, a mode selector for setting the apparatus to a normal mode or
a debug mode, and a port control for controlling access to secure
information in the apparatus through the port in accordance with the
selected mode. A method for controlling access to the port is also
provided.