Cypress CY7C65113C manual Hub Downstream Ports Control Register Address 0x4B, Hub Ports Force Low

Page 31

CY7C65113C

The downstream USB ports are designed for connection of USB devices, but can also serve as output ports under firmware control. This allows unused USB ports to be used for functions such as driving LEDs or providing additional input signals. Pulling up these pins to voltages above VREF may cause current flow into the pin.

This register is not reset by USB bus reset. These bits must be cleared before going into suspend.

Hub Downstream Ports Control Register

 

 

 

 

Address 0x4B

Bit #

 

 

7

6

5

4

 

3

2

1

0

Bit Name

 

 

Port 4

Port 4

Port 3

Port 3

Port 2

Port 2

Port 1

Port 1

 

 

 

Control Bit 1

Control Bit 0

Control Bit 1

Control Bit 0

Control Bit 1

Control Bit 0

Control Bit 1

Control Bit 0

Read/Write

 

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Reset

 

 

0

0

0

0

 

0

0

0

0

 

 

 

 

 

Figure

16-4. Hub

Downstream Ports Control Register

 

 

Table 16-1. Control Bit Definition for Downstream Ports

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Control Bits

 

 

 

 

 

 

 

 

 

Bit1

 

Bit 0

 

Control Action

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

0

 

Not Forcing (Normal USB Function)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

1

 

Force Differential ‘1’ (D+ HIGH, D– LOW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

0

 

Force Differential ‘0’ (D+ LOW, D– HIGH)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

1

 

Force SE0 state

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

An alternate means of forcing the downstream ports is through the Hub Ports Force Low Register (Figure 16-5) Register. With this register the pins of the downstream ports can be individually forced LOW, or left unforced. Unlike the Hub Downstream Ports Control Register, above, the Force Low Register does not produce standard USB edge rate control on the forced pins. However, this register allows downstream port pins to be held LOW in suspend. This register can be used to drive SE0 on all downstream ports when unconfigured, as required in the USB 1.1 specification.

.

 

 

 

 

 

 

 

Address 0x51

Hub Ports Force Low

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit #

7

6

5

4

3

2

1

 

0

 

 

 

 

 

 

 

 

 

 

Bit Name

Force Low

Force Low

Force Low

Force Low

Force Low

Force Low

Force Low

 

Force Low

 

D+[4]

D–[4]

D+[3]

D–[3]

D+[2]

D–[2]

D+[1]

 

D–[1]

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

 

R/W

 

 

 

 

 

 

 

 

 

 

Reset

0

0

0

0

0

0

0

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 16-5. Hub Ports Force Low Register

 

 

 

The data state of downstream ports can be read through the HUB Ports SE0 Status Register (Figure 16-6) and the Hub Ports Data Register (Figure 16-7). The data read from the Hub Ports Data Register is the differential data only and is independent of the settings of the Hub Ports Speed Register (Figure 16-2). When the SE0 condition is sensed on a downstream port, the corresponding bits of the Hub Ports Data Register hold the last differential data state before the SE0. Hub Ports SE0 Status Register and Hub Ports Data Register are cleared upon reset or bus reset

.

Hub Ports SE0 Status

 

 

 

 

 

 

Address 0x4F

Bit #

7

6

 

5

4

3

2

1

0

Bit Name

Reserved

Reserved

 

Reserved

Reserved

Port 4

Port 3

Port 2

Port 1

 

 

 

 

 

 

SE0 Status

SE0 Status

SE0 Status

SE0 Status

Read/Write

R

R

 

R

R

R

R

R

R

Reset

0

0

 

0

0

0

0

0

0

 

 

 

Figure 16-6. Hub Ports SE0 Status Register

 

 

Bit [0..3]: Port x SE0 Status (where x = 1..4).

Set to 1 if a SE0 is output on the Port x bus; Set to 0 if a Non-SE0 is output on the Port x bus.

Bit [4..7]: Reserved.

Set to 0

Document #: 38-08002 Rev. *D

Page 31 of 49

[+] Feedback

Image 31
Contents Cypress Semiconductor Corporation USB Hub with MicrocontrollerCY7C65113C 19.0 16.017.0 18.0List of Tables Features USB Functional OverviewGpio I2CLogic Block Diagram Top View CY7C65113C 28-pin Soic Pin ConfigurationsProduct Summary Tables Pin AssignmentsI/O Register Summary Operand Opcode Cycles Instruction Set SummaryInstruction Set Summary Mnemonic14-bit Program Counter Programming ModelKB -32 Prom ends here CY7C65113C Program Memory begins here8-bit Temporary Register 8-bit Accumulator a8-bit Program Stack Pointer PSP Address Modes 8-bit Data Stack Pointer DSPMOV A, Dspinit Xtalin Power-on ResetClocking XtaloutWatchdog Reset Suspend ModePort 0,1 Low Isink General-purpose I/O PortsPort 0 Data Address Gpio Configuration Address Gpio Configuration PortGpio Interrupt Enable Ports 10.0 12-bit Free-Running TimerPort 0 Interrupt Enable 2C Configuration Address 11.0 I2C Configuration RegisterTimer LSB Address Timer MSB AddressACK 12.0 I2C-compatible ControllerI2C Data Address 2C Status and Control AddressContinue/Busy Write 1 to indicate ready for next transaction Processor Status and Control Address 0xFF Processor Status and Control RegisterIRQ USB Endpoint Interrupt Enable Address Global Interrupt Enable Register AddressInterrupts Interrupt Vectors Interrupt Controller Function DiagramTimer Interrupt USB Bus Reset InterruptInterrupt Latency 14.8 I2C Interrupt USB Endpoint InterruptsUSB Hub Interrupt Gpio InterruptACK/NAK/STALL USB OverviewUSB Serial Interface Engine SIE USB EnumerationUSB Hub Connecting/Disconnecting a USB DeviceHub Ports Connect Status Hub Downstream Ports Status and Control Hub Ports Enable Register AddressHub Ports Enable Register Enabling/Disabling a USB DeviceHub Ports Force Low Hub Downstream Ports Control Register Address 0x4BHub Ports SE0 Status Address 0x4F Hub Ports Suspend Address 0x4D Downstream Port Suspend and ResumeHub Ports Data Hub Ports Data RegisterHub Ports Resume Address 0x4E USB Upstream Port Status and ControlUSB Status and Control Address 0x1F USB Device Address Device A, B Addresses 0x10A and 0x40B USB Serial Interface Engine OperationUSB Device Addresses USB Device EndpointsUSB Device Endpoint Zero Mode A0, B0 USB Control Endpoint Mode RegistersSize Label Start Address Stall USB Non-control Endpoint Mode RegistersUSB Non-control Device Endpoint Mode USB Endpoint Counter RegistersSetup Endpoint Mode/Count Registers Update and Locking MechanismUpdate Data Set Update only if Fifo is WrittenData SetSetup OUT USB Mode TablesDtog Dval Count Dtog Dval Count Endpoint Ports Register SummaryLOW Absolute Maximum Ratings Sample SchematicUpstream/Downstream Port Electrical CharacteristicsParameter Description Conditions Min Max Unit General USB InterfaceParameter Description Min Max Unit Clock Source Switching Characteristics fOSC = 6.0 MHzUSB Full-speed Signaling10 Timer SignalsCY7C65113C-SXCT Package DiagramOrdering Information Ordering Code Prom Size Package Type Operating RangeDocument History Issue Date Orig. Description of ChangeREV ECN no