Cypress CY7C65113C Manuel D’Utilisation

Page de 49
 
CY7C65113C
Document #: 38-08002  Rev. *D
Page 9 of 49
4.2
I/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 
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
I
2
C Configuration
0x09
R/W
I
2
C Position Configuration
20
USB Device Address A
0x10
R/W
USB Device Address A
EP A0 Counter Register
0x11
R/W
USB Address A, Endpoint 0 Counter 
EP A0 Mode Register
0x12
R/W
USB Address A, Endpoint 0 Configuration 
EP A1 Counter Register
0x13
R/W
USB Address A, Endpoint 1 Counter 
EP A1 Mode Register
0x14
R/W
USB Address A, Endpoint 1 Configuration 
EP A2 Counter Register
0x15
R/W
USB Address A, Endpoint 2 Counter 
EP A2 Mode Register
0x16
R/W
USB Address A, Endpoint 2 Configuration 
USB Status & Control
0x1F
R/W
USB Upstream Port Traffic Status and Control
Global Interrupt Enable
0x20
R/W
Global Interrupt Enable 
Endpoint Interrupt Enable
0x21
R/W
USB Endpoint Interrupt Enables
Interrupt Vector
0x23
R
Pending Interrupt Vector Read/Clear
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
I
2
C Control & Status
0x28
R/W
I
2
C Status and Control
21
I
2
C Data
0x29
R/W
I
2
C Data
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
EP B0 Mode Register
0x42
R/W
USB Address B, Endpoint 0 Configuration, or 
USB Address A, Endpoint 3 in 5-endpoint mode
EP B1 Counter Register
0x43
R/W
USB Address B, Endpoint 1 Counter
EP B1 Mode Register
0x44
R/W
USB Address B, Endpoint 1 Configuration, or 
USB Address A, Endpoint 4 in 5-endpoint mode
Hub Port Connect Status
0x48
R/W
Hub Downstream Port Connect Status
Hub Port Enable
0x49
R/W
Hub Downstream Ports Enable
Hub Port Speed
0x4A
R/W
Hub Downstream Ports Speed