Freescale Semiconductor MPC5200B User Manual

Page 432

Advertising
background image

Host Control (HC) Operational Registers

MPC5200B Users Guide, Rev. 1

Freescale Semiconductor

12-29

29

PSS

PortSuspendStatus (read)—bit indicates port is suspended or in resume sequence. It is set
by a SetSuspendState write and cleared when PortSuspendStatusChange is set at the end
of the resume interval.

This bit cannot be set if CCS. This bit is cleared when:

PortResetStatusChange is set at the end of the port reset, or

when HC is placed in the USBRESUME state.

If an upstream resume is in progress, it should propagate to the HC.

0 = Port is not suspended

1 = Port is suspended

SetPortSuspend (write)

Writing 1 causes HCD to set PSS bit.

Writing 0 has no effect.

If CurrentConnectStatus is cleared, this write does not set PSS. Instead it sets
ConnectStatusChange. This notifies the driver an attempt was made to suspend a
disconnected port.

30

PES

PortEnableStatus (read)—indicates whether the port is enabled or disabled.

The Root Hub may clear this bit when the following conditions are detected:

an overcurrent condition

disconnect event

switched-off power

operational bus error (such as babble)

This change causes PESC to be set. HCD sets this bit by writing SetPortEnable and clears it
by writing ClearPortEnable.

PES cannot be set when CurrentConnectStatus is cleared. If not already set, PES is set at the
completion of a port reset when ResetStatusChange is set or port suspend when
SuspendStatusChange is set.

0 = port is disabled

1 = port is enabled

SetPortEnable (write)—HCD sets PES by writing 1. Writing 0 has no effect.

If CCS is cleared, this write does not set PES, but instead sets CSC. This notifies the driver
that an attempt was made to enable a disconnected port.

31

CCS

CurrentConnectStatus (read)—reflects current state of downstream port.

0 = No device connected

1 = Device connected

ClearPortEnable (write)—HCD writes 1 to this bit to clear PortEnableStatus bit. Writing 0 has
no effect. CCS is not affected by any write.

Note: This bit is always read ‘1b’ when the attached device is non-removable
(DeviceRemoveable[NDP]).

Bits

Name

Description

Advertising