Cypress CY7C65113C manual General-purpose I/O Ports, Port 0,1 Low Isink, Port 0 Data Address

Page 17

CY7C65113C

9.0General-purpose I/O Ports

GPIO

 

CFG

 

OE

 

Internal

Data

Data Bus

Out

 

Latch

Port Write

 

Port Read

Data

In

 

 

Latch

Reg_Bit

 

STRB

 

(Latch is Transparent)

 

 

Data

 

Interrupt

 

Latch

Interrupt

 

Enable

 

Interrupt

Controller

VCC

mode 2-bits

 

Q1

Q2

Control

14 k

GPIO

 

 

 

 

PIN

 

Q3*

 

Control

*Port 0,1: Low Isink

Figure 9-1. Block Diagram of a GPIO Pin

There are 11 GPIO pins (P0[7:0] and P1[2:0]) for the hardware interface. Each port can be configured as inputs with internal pull-ups, open drain outputs, or traditional CMOS outputs. The data for each GPIO port is accessible through the data registers. Port data registers are shown in Figure 9-2through Figure 9-3, and are set to 1 on reset.

.

 

 

 

 

 

 

 

 

 

 

Port 0 Data

 

 

 

 

 

 

 

Address 0x00

Bit #

7

6

5

4

3

2

1

 

0

 

Bit Name

P0.7

P0.6

P0.5

P0.4

P0.3

P0.2

P0.1

 

P0.0

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

 

R/W

Reset

1

1

1

1

1

1

1

 

1

 

 

 

 

Figure 9-2. Port 0 Data

 

 

 

 

 

Port 1 Data

 

 

 

 

 

 

 

Address 0x01

 

 

 

 

 

 

 

 

 

 

 

Bit #

-

-

-

-

-

2

1

 

0

 

Bit Name

-

-

-

-

-

P1.2

P1.1

 

P1.0

 

Read/Write

-

-

-

-

-

R/W

R/W

 

R/W

 

Reset

-

-

-

-

-

1

1

 

1

 

Figure 9-3. Port1 Data

Special care should be taken with any unused GPIO data bits. An unused GPIO data bit, either a pin on the chip or a port bit that is not bonded on a particular package, must not be left floating when the device enters the suspend state. If a GPIO data bit is left floating, the leakage current caused by the floating bit may violate the suspend current limitation specified by the USB Specifications. If a ‘1’ is written to the unused data bit and the port is configured with open drain outputs, the unused data bit remains in an indeterminate state. Therefore, if an unused port bit is programmed in open-drain mode, it must be written with a ‘0.’

A read from a GPIO port always returns the present state of the voltage at the pin, independent of the settings in the Port Data Registers. During reset, all of the GPIO pins are set to a high-impedance input state. Writing a ‘0’ to a GPIO pin drives the pin LOW. In this state, a ‘0’ is always read on that GPIO pin unless an external source overdrives the internal pull-down device.

Document #: 38-08002 Rev. *D

Page 17 of 49

[+] Feedback

Image 17
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 Program Stack Pointer PSP 8-bit Accumulator a8-bit Temporary Register MOV A, Dspinit 8-bit Data Stack Pointer DSPAddress Modes Clocking Power-on ResetXtalout XtalinWatchdog Reset Suspend ModePort 0 Data Address General-purpose I/O PortsPort 0,1 Low Isink Gpio Configuration Address Gpio Configuration PortPort 0 Interrupt Enable 10.0 12-bit Free-Running TimerGpio Interrupt Enable Ports 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 IRQ Processor Status and Control RegisterProcessor Status and Control Address 0xFF Interrupts Global Interrupt Enable Register AddressUSB Endpoint Interrupt Enable Address Interrupt Vectors Interrupt Controller Function DiagramInterrupt Latency USB Bus Reset InterruptTimer Interrupt USB Hub Interrupt USB Endpoint InterruptsGpio Interrupt 14.8 I2C InterruptUSB Serial Interface Engine SIE USB OverviewUSB Enumeration ACK/NAK/STALLHub Ports Connect Status Connecting/Disconnecting a USB DeviceUSB Hub Hub Ports Enable Register Hub Ports Enable Register AddressEnabling/Disabling a USB Device Hub Downstream Ports Status and ControlHub Ports SE0 Status Address 0x4F Hub Downstream Ports Control Register Address 0x4BHub Ports Force Low Hub Ports Data Downstream Port Suspend and ResumeHub Ports Data Register Hub Ports Suspend Address 0x4DUSB Status and Control Address 0x1F USB Upstream Port Status and ControlHub Ports Resume Address 0x4E USB Device Addresses USB Serial Interface Engine OperationUSB Device Endpoints USB Device Address Device A, B Addresses 0x10A and 0x40BSize Label Start Address USB Control Endpoint Mode RegistersUSB Device Endpoint Zero Mode A0, B0 USB Non-control Device Endpoint Mode USB Non-control Endpoint Mode RegistersUSB Endpoint Counter Registers StallUpdate Endpoint Mode/Count Registers Update and Locking MechanismSetup 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-SXCTREV ECN no Issue Date Orig. Description of ChangeDocument History