Cypress CY7C65113C manual I/O Register Summary

Page 9

CY7C65113C

4.2I/O Register Summary

I/O registers are accessed via the I/O Read (IORD) and I/O Write (IOWR, IOWX) instructions. IORD reads data from the selected port into the accumulator. IOWR performs the reverse; it writes data from the accumulator to the selected port. Indexed I/O Write (IOWX) adds the contents of X to the address in the instruction to form the port address and writes data from the accumulator to the specified port. Specifying address 0 (e.g., IOWX 0h) means the I/O register is selected solely by the contents of X.

All undefined registers are reserved. Do not write to reserved registers as this may cause an undefined operation or increased current consumption during operation. When writing to registers with reserved bits, the reserved bits must be written with ‘0.’

Table 4-2. I/O Register Summary

 

Register Name

I/O Address

Read/Write

Function

Page

 

 

 

 

 

 

 

Port 0 Data

0x00

R/W

GPIO Port 0 Data

17

 

 

 

 

 

 

 

Port 1 Data

0x01

R/W

GPIO Port 1 Data

17

 

 

 

 

 

 

 

Port 0 Interrupt Enable

0x04

W

Interrupt Enable for Pins in Port 0

19

 

 

 

 

 

 

 

Port 1 Interrupt Enable

0x05

W

Interrupt Enable for Pins in Port 1

19

 

 

 

 

 

 

 

GPIO Configuration

0x08

R/W

GPIO Port Configurations

18

 

 

 

 

 

 

 

I2C Configuration

0x09

R/W

I2C Position Configuration

20

 

USB Device Address A

0x10

R/W

USB Device Address A

34

 

 

 

 

 

 

 

EP A0 Counter Register

0x11

R/W

USB Address A, Endpoint 0 Counter

36

 

 

 

 

 

 

 

EP A0 Mode Register

0x12

R/W

USB Address A, Endpoint 0 Configuration

35

 

 

 

 

 

 

 

EP A1 Counter Register

0x13

R/W

USB Address A, Endpoint 1 Counter

36

 

 

 

 

 

 

 

EP A1 Mode Register

0x14

R/W

USB Address A, Endpoint 1 Configuration

36

 

 

 

 

 

 

 

EP A2 Counter Register

0x15

R/W

USB Address A, Endpoint 2 Counter

36

 

 

 

 

 

 

 

EP A2 Mode Register

0x16

R/W

USB Address A, Endpoint 2 Configuration

36

 

 

 

 

 

 

 

USB Status & Control

0x1F

R/W

USB Upstream Port Traffic Status and Control

33

 

 

 

 

 

 

 

Global Interrupt Enable

0x20

R/W

Global Interrupt Enable

24

 

 

 

 

 

 

 

Endpoint Interrupt Enable

0x21

R/W

USB Endpoint Interrupt Enables

24

 

 

 

 

 

 

 

Interrupt Vector

0x23

R

Pending Interrupt Vector Read/Clear

26

 

 

 

 

 

 

 

Timer (LSB)

0x24

R

Lower Eight Bits of Free-running Timer (1 MHz)

20

 

 

 

 

 

 

 

Timer (MSB)

0x25

R

Upper Four Bits of Free-running Timer

20

 

 

 

 

 

 

 

WDR Clear

0x26

W

Watchdog Reset Clear

16

 

 

 

 

 

 

 

I2C Control & Status

0x28

R/W

I2C Status and Control

21

 

I2C Data

0x29

R/W

I2C Data

21

 

Reserved

0x30

 

Reserved

 

 

 

 

 

 

 

 

Reserved

0x31

 

Reserved

 

 

 

 

 

 

 

 

Reserved

0x32

 

Reserved

 

 

 

 

 

 

 

 

Reserved

0x38-0x3F

 

Reserved

 

 

 

 

 

 

 

 

USB Device Address B

0x40

R/W

USB Device Address B (not used in 5-endpoint mode)

34

 

 

 

 

 

 

 

EP B0 Counter Register

0x41

R/W

USB Address B, Endpoint 0 Counter

36

 

 

 

 

 

 

 

EP B0 Mode Register

0x42

R/W

USB Address B, Endpoint 0 Configuration, or

35

 

 

 

 

USB Address A, Endpoint 3 in 5-endpoint mode

 

 

EP B1 Counter Register

0x43

R/W

USB Address B, Endpoint 1 Counter

36

 

 

 

 

 

 

 

EP B1 Mode Register

0x44

R/W

USB Address B, Endpoint 1 Configuration, or

36

 

 

 

 

USB Address A, Endpoint 4 in 5-endpoint mode

 

 

Hub Port Connect Status

0x48

R/W

Hub Downstream Port Connect Status

29

 

 

 

 

 

 

 

Hub Port Enable

0x49

R/W

Hub Downstream Ports Enable

30

 

 

 

 

 

 

 

Hub Port Speed

0x4A

R/W

Hub Downstream Ports Speed

30

 

 

 

 

 

 

Document #: 38-08002 Rev. *D

 

 

Page 9 of 49

[+] Feedback

Image 9
Contents Cypress Semiconductor Corporation USB Hub with MicrocontrollerCY7C65113C 17.0 16.018.0 19.0List of Tables Features Gpio Functional OverviewI2C USBLogic Block Diagram Product Summary Tables Pin ConfigurationsPin Assignments Top View CY7C65113C 28-pin SoicI/O Register Summary Instruction Set Summary Instruction Set SummaryMnemonic Operand Opcode Cycles14-bit Program Counter Programming ModelKB -32 Prom ends here CY7C65113C Program Memory begins here8-bit Accumulator a 8-bit Temporary Register8-bit Program Stack Pointer PSP 8-bit Data Stack Pointer DSP Address ModesMOV A, Dspinit Clocking Power-on ResetXtalout XtalinWatchdog Reset Suspend ModeGeneral-purpose I/O Ports Port 0,1 Low IsinkPort 0 Data Address Gpio Configuration Address Gpio Configuration Port10.0 12-bit Free-Running Timer Gpio Interrupt Enable PortsPort 0 Interrupt Enable Timer LSB Address 11.0 I2C Configuration RegisterTimer MSB Address 2C Configuration AddressI2C Data Address 12.0 I2C-compatible Controller2C Status and Control Address ACKContinue/Busy Write 1 to indicate ready for next transaction Processor Status and Control Register Processor Status and Control Address 0xFFIRQ Global Interrupt Enable Register Address USB Endpoint Interrupt Enable AddressInterrupts Interrupt Vectors Interrupt Controller Function DiagramUSB Bus Reset Interrupt Timer InterruptInterrupt Latency USB Hub Interrupt USB Endpoint InterruptsGpio Interrupt 14.8 I2C InterruptUSB Serial Interface Engine SIE USB OverviewUSB Enumeration ACK/NAK/STALLConnecting/Disconnecting a USB Device USB HubHub Ports Connect Status Hub Ports Enable Register Hub Ports Enable Register AddressEnabling/Disabling a USB Device Hub Downstream Ports Status and ControlHub Downstream Ports Control Register Address 0x4B Hub Ports Force LowHub Ports SE0 Status Address 0x4F Hub Ports Data Downstream Port Suspend and ResumeHub Ports Data Register Hub Ports Suspend Address 0x4DUSB Upstream Port Status and Control Hub Ports Resume Address 0x4EUSB Status and Control Address 0x1F USB Device Addresses USB Serial Interface Engine OperationUSB Device Endpoints USB Device Address Device A, B Addresses 0x10A and 0x40BUSB Control Endpoint Mode Registers USB Device Endpoint Zero Mode A0, B0Size Label Start Address USB Non-control Device Endpoint Mode USB Non-control Endpoint Mode RegistersUSB Endpoint Counter Registers StallEndpoint Mode/Count Registers Update and Locking Mechanism SetupUpdate Data Update only if Fifo is WrittenSet Data SetSetup OUT USB Mode TablesDtog Dval Count Dtog Dval Count Endpoint Ports Register SummaryLOW Absolute Maximum Ratings Sample SchematicParameter Description Conditions Min Max Unit General Electrical CharacteristicsUSB Interface Upstream/Downstream PortUSB Full-speed Signaling10 Switching Characteristics fOSC = 6.0 MHzTimer Signals Parameter Description Min Max Unit Clock SourceOrdering Information Package DiagramOrdering Code Prom Size Package Type Operating Range CY7C65113C-SXCTIssue Date Orig. Description of Change Document HistoryREV ECN no