Cypress CY7C65113C manual Register Summary, Ports

Page 43

CY7C65113C

19.0Register Summary

 

Address

Register Name

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Read/Write/B

Default/

 

 

 

 

 

 

 

 

 

 

 

oth/–[7]

Reset

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0x00

Port 0 Data

P0.7

P0.6

P0.5

P0.4

P0.3

P0.2

P0.1

P0.0

BBBBBBBB

11111111

0 AND

 

 

 

 

 

 

 

 

 

 

 

 

0x01

Port 1 Data

P1.7

P1.6

P1.5

P1.4

P1.3

P1.2

P1.1

P1.0

BBBBBBBB

11111111

 

 

 

 

 

 

 

 

 

 

 

 

0x02

Port 2 Data

P2.7

P2.6

P2.5

P2.4

P2.3

P2.2

P2.1

P2.0

BBBBBBBB

11111111

PORTS

 

 

 

 

 

 

 

 

 

 

 

 

0x03

Port 3 Data

P3.7

P3.6

P3.5

P3.4

P3.3

P3.2

P3.1

P3.0

BBBBBBBB

11111111

 

 

 

 

 

 

 

 

 

 

 

 

0x04

Port 0 Interrupt Enable

P0.7 Intr

P0.6 Intr

P0.5 Intr

P0.4 Intr

P0.3 Intr

P0.2 Intr

P0.1 Intr

P0.0 Intr

WWWWWWWW

00000000

 

 

Enable

Enable

Enable

Enable

Enable

Enable

Enable

Enable

 

 

GPIO CONFIGURATION

 

 

 

 

0x05

Port 1 Interrupt Enable

P1.7 Intr

P1.6 Intr

P1.5 Intr

P1.4 Intr

Reserved

P1.2 Intr

P1.1 Intr

P1.0 Intr

WWWWWWWW

00000000

 

 

Enable

Enable

Enable

Enable

 

Enable

Enable

Enable

 

 

0x08

GPIO Configuration

Reserved

Reserved

Reserved

Reserved

Port 1

Port 1

Port 0

Port 0

BBBBBBBB

00000000

 

 

 

 

 

 

Config Bit 1

Config Bit 0

Config Bit 1

Config Bit 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C

0x09

HAPI/I2C Configuration

I2C Position

Reserved

Reserved

Reserved

Reserved

Reserved

I2C Port

Reserved

BBBBBBBB

00000000

 

 

 

 

 

 

 

 

Width

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

HAPI I

 

 

 

 

 

 

 

 

 

 

 

 

CONFIGURATION

0x10

USB Device Address A

Device

Device

Device

Device

Device

Device

Device

Device

BBBBBBBB

00000000

 

 

Address A

Address A

Address A

Address A

Address A

Address A

Address A

Address A

 

 

 

 

Enable

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

 

 

0x11

EP A0 Counter

Data 0/1

Data Valid

Byte Count

Byte Count

Byte Count

Byte Count

Byte Count

Byte Count

BBBBBBBB

00000000

 

Register

Toggle

 

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

 

 

0x12

EP A0 Mode Register

Endpoint0

Endpoint0

Endpoint0

ACK

Mode Bit 3

Mode Bit 2

Mode Bit 1

Mode Bit 0

BBBBBBBB

00000000

 

 

SETUP

IN

OUT

 

 

 

 

 

 

 

 

 

Received

Received

Received

 

 

 

 

 

 

 

A2

 

 

 

 

 

 

 

 

 

0x13

EP A1 Counter

Data 0/1

Data Valid

Byte Count

Byte Count

Byte Count

Byte Count

Byte Count

Byte Count

BBBBBBBB

00000000

AND

 

Register

Toggle

 

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AI

0x14

EP A1 Mode Register

STALL

-

-

ACK

Mode Bit 3

Mode Bit 2

Mode Bit 1

Mode Bit 0

BBBBBBBB

00000000

A0,

0x15

EP A2 Counter

Data 0/1

Data Valid

Byte Count

Byte Count

Byte Count

Byte Count

Byte Count

Byte Count

BBBBBBBB

00000000

 

Register

Toggle

 

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

 

 

ENDPOINT

 

 

 

 

0x16

EP A2 Mode Register

STALL

-

-

ACK

Mode Bit 3

Mode Bit 2

Mode Bit 1

Mode Bit 0

BBBBBBBB

00000000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

USB- CS

0x1F

USB Status and Control

Endpoint

Endpoint

D+

D–

Bus Activity

Control

Control

Control

BBRRBBBB

-0xx0000

 

 

Size

Mode

Upstream

Upstream

 

Bit 2

Bit 1

Bit 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INTERRUPT

0x20

Global Interrupt Enable

Reserved

I2C

GPIO

Reserved

USB Hub

1.024-ms

128-s

USB Bus

-BBBBBBB

-0000000

 

 

 

Interrupt

Interrupt

 

Interrupt

Interrupt

Interrupt

RESET

 

 

 

 

 

Enable

Enable

 

Enable

Enable

Enable

Interrupt

 

 

 

 

 

 

 

 

 

 

 

Enable

 

 

0x21

Endpoint Interrupt

Reserved

Reserved

Reserved

EPB1

EPB0

EPA2

EPA1

EPA0

---BBBBB

---00000

 

Enable

 

 

 

Interrupt

Interrupt

Interrupt

Interrupt

Interrupt

 

 

 

 

 

 

 

 

Enable

Enable

Enable

Enable

Enable

 

 

TIMER

0x24

Timer (LSB)

Timer Bit 7

Timer Bit 6

Timer Bit 5

Timer Bit 4

Timer Bit 3

Timer Bit 2

Timer Bit 1

Timer Bit 0

RRRRRRRR

00000000

 

 

 

 

 

 

 

 

 

 

 

 

0x25

Timer (MSB)

Reserved

Reserved

Reserved

Reserved

Timer Bit 11

Timer Bit 10

Time Bit 9

Timer Bit 8

----rrrr

----0000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x28

I2C Control and Status

MSTR

Continue/

Xmit

ACK

Addr

ARB Lost/

Received

I2C

BBBBBBBB

00000000

C

 

 

Mode

Busy

Mode

 

 

Restart

Stop

Enable

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

I

 

 

 

 

 

 

 

 

 

 

 

 

 

0x29

I2C Data

I2C Data 7

I2C Data 6

I2C Data 5

I2C Data 4

I2C Data 3

I2C Data 2

I2C Data 1

I2C Data 0

BBBBBBBB

XXXXXXXX

CONFIGURATION

0x40

USB Device Address B

Device

Device

Device

Device

Device

Device

Device

Device

BBBBBBBB

00000000

 

 

Address B

Address B

Address B

Address B

Address B

Address B

Address B

Address B

 

 

 

 

Enable

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

 

 

0x41

EP B0 Counter Register

Data 0/1

Data Valid

Byte Count

Byte Count

Byte Count

Byte Count

Byte Count

Byte Count

BBBBBBBB

00000000

 

 

Toggle

 

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

 

 

0x42

EP B0 Mode Register

Endpoint 0

Endpoint 0

Endpoint 0

ACK

Mode Bit 3

Mode Bit 2

Mode Bit 1

Mode Bit 0

BBBBBBBB

00000000

 

 

SETUP

IN

OUT

 

 

 

 

 

 

 

 

 

Received

Received

Received

 

 

 

 

 

 

 

B1

 

 

 

 

 

 

 

 

 

0x43

EP B1 Counter Register

Data 0/1

Data Valid

Byte Count

Byte Count

Byte Count

Byte Count

Byte Count

Byte Count

BBBBBBBB

00000000

B0,

 

 

Toggle

 

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

 

 

ENDPOINT

 

 

 

 

 

 

 

 

 

 

 

 

0x44

EP B1 Mode Register

STALL

-

-

ACK

Mode Bit 3

Mode Bit 2

Mode Bit 1

Mode Bit 0

BBBBBBBB

00000000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note:

7.B: Read and Write; W: Write; R: Read.

Document #: 38-08002 Rev. *D

Page 43 of 49

[+] Feedback

Image 43
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