Cypress CY7C67200 manual Register Summary

Page 73

CY7C67200

Register Summary

Table 42. Register Summary

R/W

Address

Register

Bit 15

Bit 14

Bit 13

Bit 12

Bit 11

Bit 10

Bit 9

Bit 8

Default High

 

 

 

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Default Low

R

0x0140

HPI Breakpoint

Address...

 

 

 

 

 

 

 

0000 0000

 

 

 

...Address

 

 

 

 

 

 

 

0000 0000

R

0x0142

Interrupt Routing

VBUS to HPI

ID to HPI

SOF/EOP2 to

SOF/EOP2 to

SOF/EOP1 to

SOF/EOP1 to

Reset2 to HPI

HPI Swap 1

0001 0100

 

 

 

Enable

Enable

HPI Enable

CPU Enable

HPI Enable

CPU Enable

Enable

Enable

 

 

 

 

Resume2 to

Resume1 to

Reserved

 

Done2 to HPI

Done1 to HPI

Reset1 to HPI

HPI Swap 0

0000 0000

 

 

 

HPI Enable

HPI Enable

 

 

Enable

Enable

Enable

Enable

 

W

1: 0x0144

SIEXmsg

Data...

 

 

 

 

 

 

 

xxxx xxxx

 

2: 0x0148

 

 

 

 

 

 

 

 

 

 

 

 

...Data

 

 

 

 

 

 

 

xxxx xxxx

 

 

 

 

 

 

 

 

 

 

R/W

0x02n0

Device n Endpoint n Control

Reserved

 

 

 

 

 

 

 

xxxx xxxx

 

 

 

IN/OUT

Sequence

Stall

ISO

NAK Interrupt

Direction

Enable

ARM

xxxx xxxx

 

 

 

Ignore Enable

Select

Enable

Enable

Enable

Select

 

Enable

 

R/W

0x02n2

Device n Endpoint n Address

Address...

 

 

 

 

 

 

 

xxxx xxxx

 

 

 

...Address

 

 

 

 

 

 

 

xxxx xxxx

R.W

0x02n4

Device n Endpoint n Count

Reserved

 

 

 

 

 

Count...

 

xxxx xxxx

 

 

 

...Count

 

 

 

 

 

 

 

xxxx xxxx

R/W

0x02n6

Device n Endpoint n Status

Reserved

 

 

 

Overflow

Underflow

OUT

IN

xxxx xxxx

 

 

 

 

 

 

 

Flag

Flag

Exception Flag

Exception Flag

 

 

 

 

Stall

NAK

Length

Set-up

Sequence

Timeout

Error

ACK

xxxx xxxx

 

 

 

Flag

Flag

Exception Flag

Flag

Status

Flag

Flag

Flag

 

R/W

0x02n8

Device n Endpoint n Count Re-

Result...

 

 

 

 

 

 

 

xxxx xxxx

 

 

sult

 

 

 

 

 

 

 

 

 

 

 

...Result

 

 

 

 

 

 

 

xxxx xxxx

 

 

 

 

 

 

 

 

 

 

R

0xC000

CPU Flags

Reserved...

 

 

 

 

 

 

 

0000 0000

 

 

 

...Reserved

 

 

Global Inter-

Negative

Overflow

Carry

Zero

000x xxxx

 

 

 

 

 

 

rupt Enable

Flag

Flag

Flag

Flag

 

R/W

0xC002

Bank

Address...

 

 

 

 

 

 

 

0000 0001

 

 

 

...Address

 

 

 

Reserved

 

 

 

000x xxxx

R

0xC004

Hardware Revision

Revision...

 

 

 

 

 

 

 

xxxx xxxx

 

 

 

...Revision

 

 

 

 

 

 

 

xxxx xxxx

R/W

0xC006

GPIO Control

Write Protect

UD

Reserved

 

SAS

Mode

 

 

0000 0000

 

 

 

Enable

 

 

 

Enable

Select

 

 

 

 

 

 

HSS

Reserved

SPI

Reserved

 

 

Interrupt 0

Interrupt 0

0000 0000

 

 

 

Enable

 

Enable

 

 

 

Polarity Select

Enable

 

R/W

0xC008

CPU Speed

Reserved...

 

 

 

 

 

 

 

0000 0000

 

 

 

.Reserved

 

 

 

CPU Speed

 

 

 

0000 000F

R/W

0xC00A

Power Control

Reserved

Host/Device 2

Reserved

Host/Device 1

OTG

Reserved

HSS

SPI

0000 0000

 

 

 

 

Wake Enable

 

Wake Enable

Wake Enable

 

Wake Enable

Wake Enable

 

 

 

 

HPI

Reserved

 

GPI

Reserved

Boost 3V

Sleep

Halt

0000 0000

 

 

 

Wake Enable

 

 

Wake Enable

 

OK

Enable

Enable

 

R/W

0xC00C

Watchdog Timer

Reserved...

 

 

 

 

 

 

 

0000 0000

 

 

 

...Reserved

 

Timeout

Period

 

Lock

WDT

Reset

0000 0000

 

 

 

 

 

Flag

Select

 

Enable

Enable

Strobe

 

R/W

0xC00E

Interrupt Enable

Reserved

 

 

OTG

SPI

Reserved

Host/Device 2

Host/Device 1

0000 0000

 

 

 

 

 

 

Interrupt

Interrupt

 

Interrupt

Interrupt

 

 

 

 

 

 

 

Enable

Enable

 

Enable

Enable

 

 

 

 

HSS Interrupt

In Mailbox

Out Mailbox

Reserved

UART

GPIO

Timer 1

Timer 0

0001 0000

 

 

 

Enable

Interrupt

Interrupt

 

Interrupt

Interrupt

Interrupt

Interrupt

 

 

 

 

 

Enable

Enable

 

Enable

Enable

Enable

Enable

 

R/W

0xC098

OTG Control

Reserved

 

VBUS

Receive

Charge Pump

VBUS Dis-

D+

D–

0000 0000

 

 

 

 

 

Pull-up Enable

Disable

Enable

charge Enable

Pull-up Enable

Pull-up Enable

 

 

 

 

D+

D–

Reserved

 

 

OTG Data Sta-

ID

VBUS Valid

0000 0XXX

 

 

 

Pull-down

Pull-down

 

 

 

tus

Status

Flag

 

 

 

 

Enable

Enable

 

 

 

 

 

 

 

R/W

0: 0xC010

Timer n

Count...

 

 

 

 

 

 

 

1111 1111

 

1: 0xC012

 

 

 

 

 

 

 

 

 

 

 

 

...Count

 

 

 

 

 

 

 

1111 1111

 

 

 

 

 

 

 

 

 

 

R/W

0xC014

Breakpoint

Address...

 

 

 

 

 

 

 

0000 0000

 

 

 

...Address

 

 

 

 

 

 

 

0000 0000

R/W

1: 0xC018

Extended Page n Map

Address...

 

 

 

 

 

 

 

 

 

2: 0xC01A

 

 

 

 

 

 

 

 

 

 

 

 

...Address

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R/W

0xC01E

GPIO 0 Output Data

GPIO15

GPIO14

GPIO13

GPIO12

GPIO11

GPIO10

GPIO9

GPIO8

0000 0000

 

 

 

GPIO7

GPIO6

GPIO5

GPIO4

GPIO3

GPIO2

GPIO1

GPIO0

0000 0000

R

0xC020

GPIO 0 Input Data

GPIO15

GPIO14

GPIO13

GPIO12

GPIO11

GPIO10

GPIO9

GPIO8

0000 0000

 

 

 

GPIO7

GPIO6

GPIO5

GPIO4

GPIO3

GPIO2

GPIO1

GPIO0

0000 0000

R/W

0xC022

GPIO 0 Direction

GPIO15

GPIO14

GPIO13

GPIO12

GPIO11

GPIO10

GPIO9

GPIO8

0000 0000

 

 

 

GPIO7

GPIO6

GPIO5

GPIO4

GPIO3

GPIO2

GPIO1

GPIO0

0000 0000

Document #: 38-08014 Rev. *G

Page 73 of 78

[+] Feedback

Image 73
Contents Typical Applications EZ-OTG FeaturesCY7C67200 CY16Processor Core Functional Overview IntroductionInterface Descriptions OTG Interface Pins Pin Name Pin Number USB Interface Pins Pin Name Pin NumberUSB Interface OTG InterfaceSPI Interface Pins Pin Name Pin Number I2C Eeprom Interface Pins Pin Name Pin NumberHSS Interface Pins Pin Name Pin Number Serial Peripheral InterfaceHost Port Interface HPI HPI Interface Pins 1 Pin Name Pin NumberHPI Addressing HPI A10 Charge Pump InterfaceBooster Interface Charge Pump Interface Pins Pin Name Pin NumberCrystal Interface Boot Configuration Interface Crystal Pins Pin Name Pin NumberBoot Mode PinPower Savings Mode Description Power Savings and Reset DescriptionSleep Memory Map Registers Bank Register Example Hex Value Binary Value Bank Register 0xC002 R/WReserved Hardware Revision Register 0xC004 RCPU Speed Definition Processor Speed CPU Speed Register 0xC008 R/WHost/Device 1 Wake Enable Bit Host/Device 2 Wake Enable BitOTG Wake Enable Bit HSS Wake Enable BitOTG Interrupt Enable Bit Halt Enable BitSPI Interrupt Enable Bit Host/Device 2 Interrupt Enable BitGpio Interrupt Enable Bit Uart Interrupt Enable BitTimer 1 Interrupt Enable Bit Timer 0 Interrupt Enable BitPort 1A Diagnostic Enable Bit Port 2A Diagnostic Enable BitPull-down Enable Bit LS Pull-up Enable BitLock Enable Bit Timeout Flag BitWDT Enable Bit Reset Strobe BitGeneral USB Registers Timer n Register R/WUSB Registers Register Name Address SIE1/SIE2 0xC08A/0xC0AAPort a Resistors Enable Bit Mode Select BitUSB Data Line Pull-up and Pull-down Resistors Mode Port n Resistors Function Select EnableSync Enable Bit Preamble Enable BitISO Enable Bit Arm Enable BitHost n Count Register R/W Host n Address Register R/WHost 1 Count Register 0xC084 Host 2 Count Register 0xC0A4 Underflow Flag Bit Error Flag BitStall Flag Bit NAK Flag BitHost n PID Register W ACK Flag BitPID Select Definition PID SelectHost n Device Address Register W Host n Count Result Register RID Interrupt Enable Bit Vbus Interrupt Enable BitSOF/EOP Interrupt Enable Bit Port a Wake Interrupt Enable BitID Interrupt Flag Bit Vbus Interrupt Flag BitSOF/EOP Interrupt Flag Bit Port a Wake Interrupt Flag BitCount Bits Count field sets the SOF/EOP counter duration Host n SOF/EOP Count Register R/WHost n SOF/EOP Counter Register R USB Device Only Registers Reserved Host n Frame Register RUSB Device Only Registers Register Name Address Device 1/DeviceStall Enable Bit IN/OUT Ignore Enable BitNAK Interrupt Enable Bit Enable BitDevice n Endpoint n Count Register R/W Device n Endpoint n Address Register R/WOUT Exception Flag Bit Device n Endpoint n Status Register R/WTimeout occurred Timeout condition did not occur Setup Flag BitError occurred Error did not occur Exception Flag BitDevice n Endpoint n Count Result Register Device n Endpoint n Count Result Register R/WSOF/EOP Timeout Interrupt Enable Bit Device n Interrupt Enable Register R/WReset Interrupt Enable Bit EP7 Interrupt Enable BitEP4 Interrupt Enable Bit EP5 Interrupt Enable Bit EP2 Interrupt Enable BitEP3 Interrupt Enable Bit EP1 Interrupt Enable BitDevice n Status Register R/W Device n Address Register WEP7 Interrupt Flag Bit Reset Interrupt Flag BitEP6 Interrupt Flag Bit EP5 Interrupt Flag BitSOF/EOP Timeout Interrupt Counter Bits SOF/EOP Timeout Flag BitDevice n Frame Number Register R Device n SOF/EOP Count Register WReceive Disable Bit Vbus Pull-up Enable BitCharge Pump Enable Bit Vbus Discharge Enable BitSAS Enable Bit Write Protect Enable BitMode Select Definition Gpio Configuration 108 111 Reserved Vbus Valid Flag BitSPI Enable Bit HSS Enable BitInterrupt 0 Enable Bit Interrupt 0 Polarity Select BitGpio 1 Input Data Register 0xC026 R Gpio 0 Input Data Register 0xC020 RGpio 0 Direction Register 0xC022 R/W HSS Registers Gpio 1 Direction Register 0xC028 R/WHSS Registers Register Name Address CTS Enable Bit Xoff Enable BitReceive Interrupt Enable Bit RTS Polarity Select BitTransmit Ready Bit Packet Mode Select BitReceive Overflow Flag Bit Receive Packet Ready Flag BitTransmit Gap Select Bits HSS Transmit Gap Register 0xC074 R/WHSS Data Register 0xC076 R/W HSS Receive Counter Register 0xC07A R/W HSS Receive Address Register 0xC078 R/WHSS Transmit Counter Register 0xC07E R/W HSS Transmit Address Register 0xC07C R/WHPI Registers HPI Registers Register Name AddressID to HPI Enable Bit Vbus to HPI Enable BitSOF/EOP2 to HPI Enable Bit HPI Breakpoint Register 0x0140 RSOF/EOP1 to HPI Enable Bit SOF/EOP2 to CPU Enable BitSOF/EOP1 to CPU Enable Bit Reset2 to HPI Enable BitSIE1msg Register SIE2msg Register SIEXmsg Register WData Bits HPI Mailbox Register 0xC0C6 R/WVbus Flag Bit Reset2 Flag BitID Flag Bit SOF/EOP2 Flag BitDone1 Flag Bit SPI Registers Reset1 Flag BitMailbox Out Flag Bit SPI Registers Register Name AddressPhase Select Bit 3Wire Enable BitMaster Active Enable Bit Master Enable BitRead Enable Bit Byte Mode BitSCK Strobe Bit Fifo Init BitTransfer Interrupt Enable Bit Transmit Interrupt Enable BitFifo Error Flag Bit Receive Bit Length BitsTransmit Interrupt Flag Bit CRC Mode Definition CRCMode CRC PolynomialTransfer Interrupt Flag Bit Transmit Interrupt Clear BitCRC Clear Bit CRC Enable BitReceive CRC Bit One in CRC BitSPI Transmit Count Register 0xC0DA R/W SPI Transmit Address Register 0xC0D8 R/WSPI Receive Count Register 0xC0DE R/W SPI Receive Address Register 0xC0DC R/WUart Registers Uart Registers Register Name AddressScale Select Bit Uart Enable BitBaud Select Bits Uart Baud Select Definition Baud Rate DIV8 =Uart Data Register 0xC0E4 R/W Transmit Full BitPin Descriptions Pin DiagramPin Descriptions Name Type A1 HPI A1 GPIO20 General Purpose IOGPIO19 General Purpose IO A0 HPI A0Absolute Maximum Ratings Booster Power Input 2.7V toOperating Conditions Crystal Requirements XTALIN, XtaloutDC Characteristics Reset Timing AC Timing CharacteristicsI2C Eeprom Timing Clock TimingParameter Description Min Typical Max Unit HPI Host Port Interface Write Cycle Timing HPI Host Port Interface Read Cycle Timing Data Access Time, from HPInRD fallingRead Pulse Width Read Cycle Time Document # 38-08014 Rev. *GHSS Block Mode Transmit HSS Byte Mode TransmitHSS Byte and Block Mode Receive Hssrts Hsscts Hardware CTS/RTS HandshakeRegister Summary Register SummaryGPIO31 GPIO30 GPIO29 SE0 SOF/EOP2 Ordering Information Package DiagramOrdering Information Ordering Code Package Type PB-Free Ball 7.00 mm x 7.00 mm x 1.2 mm Fbga BA48Document History Issue Orig. Description of Change Date