Cy7c67200 48baxi
Cy7c67200 48baxi
EZ-OTG Features ■ Fast serial port supports from 9600 baud to 2.0M baud
■ SPI supports both master and slave
■ Single-chip programmable USB dual-role (Host/Peripheral)
controller with two configurable Serial Interface Engines (SIEs) ■ Supports 12 MHz external crystal or clock
and two USB ports
■ 2.7 V to 3.6 V power supply voltage
■ Supports USB OTG protocol
■ Package option: 48-pin FBGA
■ On-chip 48-MHz 16-bit processor with dynamically switchable
clock speed Typical Applications
■ Configurable IO block supports a variety of IO options or up to EZ-OTG is a very powerful and flexible dual-role USB controller
25 bits of General Purpose IO (GPIO) that supports a wide variety of applications. It is primarily
■ 4K × 16 internal mask ROM contains built-in BIOS that supports intended to enable USB OTG capability in applications such as:
a communication-ready state with access to I2C™ EEPROM ■ Cellular phones
interface, external ROM, UART, or USB
■ PDAs and pocket PCs
■ 8K x 16 internal RAM for code and data buffering
■ Video and digital still cameras
■ 16-bit parallel host port interface (HPI) with DMA/Mailbox data
path for an external processor to directly access all on-chip ■ MP3 players
memory and control on-chip SIEs
■ Mass storage devices
CY7C67200
Timer 0 Timer 1
nRESET Control
Vbus, ID
OTG
EEPROM I/F
D+,D- USB-A
Mobile GPIO
X1
X2 PLL Power
Booster
Errata: For information on silicon errata, see “Errata” on page 84. Details include trigger conditions, devices affected, and proposed workaround.
Cypress Semiconductor Corporation • 198 Champion Court • San Jose, CA 95134-1709 • 408-943-2600
Document Number: 38-08014 Rev. *K Revised November 8, 2016
CY7C67200
Contents
Introduction ....................................................................... 3 HSS Registers ........................................................... 47
Processor Core Functional Overview ............................. 3 HPI Registers ............................................................ 53
Processor .................................................................... 3 SPI Registers ............................................................ 57
Clocking ....................................................................... 3 UART Registers ........................................................ 65
Memory ....................................................................... 3 Pin Diagram ..................................................................... 67
Interrupts ..................................................................... 3 Pin Descriptions ............................................................. 67
General Timers and Watchdog Timer ......................... 3 Absolute Maximum Ratings .......................................... 69
Power Management .................................................... 3 Operating Conditions ..................................................... 69
Interface Descriptions ...................................................... 3 Crystal Requirements (XTALIN, XTALOUT) ................. 69
USB Interface .............................................................. 4 DC Characteristics ........................................................ 70
OTG Interface .............................................................. 4 USB Transceiver ....................................................... 71
General Purpose IO Interface ..................................... 4 AC Timing Characteristics ............................................. 71
UART Interface ............................................................ 4 Reset Timing ............................................................. 71
I2C EEPROM Interface ............................................... 5 Clock Timing ............................................................. 72
Serial Peripheral Interface ........................................... 5 I2C EEPROM Timing ............................................... 72
High-Speed Serial Interface ........................................ 5 HPI (Host Port Interface) Read Cycle Timing ............ 74
Host Port Interface (HPI) ............................................. 6 HSS BYTE Mode Transmit ........................................ 75
Charge Pump Interface ............................................... 6 HSS Block Mode Transmit ........................................ 75
Booster Interface ......................................................... 7 HSS BYTE and BLOCK Mode Receive .................... 75
Crystal Interface .......................................................... 8 Hardware CTS/RTS Handshake ............................... 76
Boot Configuration Interface ........................................ 8 Register Summary .......................................................... 77
Operational Modes ...................................................... 9 Ordering Information ...................................................... 81
Power Savings and Reset Description ......................... 10 Ordering Code Definitions ......................................... 81
Power Savings Mode Description ............................. 10 Package Diagram ............................................................ 82
Sleep ......................................................................... 10 Acronyms ........................................................................ 83
External (Remote) Wakeup Source ........................... 10 Document Conventions ................................................. 83
Power-On Reset (POR) Description .......................... 10 Units of Measure ....................................................... 83
Reset Pin ................................................................... 10 Errata ............................................................................... 84
USB Reset ................................................................. 10 Part Numbers Affected .............................................. 84
Memory Map .................................................................... 10 CY7C67200 Qualification Status ............................... 84
Mapping ..................................................................... 10 CY7C67200 Errata Summary .................................... 84
Internal Memory ........................................................ 11 Document History Page ................................................. 91
Registers ......................................................................... 11 Sales, Solutions, and Legal Information ...................... 93
Processor Control Registers ..................................... 11 Worldwide Sales and Design Support ....................... 93
Timer Registers ......................................................... 18 Products .................................................................... 93
General USB Registers ............................................. 20 PSoC®Solutions ....................................................... 93
USB Host Only Registers .......................................... 22 Cypress Developer Community ................................. 93
USB Device Only Registers ...................................... 30 Technical Support ..................................................... 93
OTG Control Registers .............................................. 42
GPIO Registers ......................................................... 43
Introduction Memory
EZ-OTG™ (CY7C67200) is Cypress Semiconductor’s first USB EZ-OTG has a built-in 4K × 16 masked ROM and an 8K × 16
On-The-Go (OTG) host/peripheral controller. EZ-OTG is internal RAM. The masked ROM contains the EZ-OTG BIOS.
designed to easily interface to most high-performance CPUs to The internal RAM can be used for program code or data.
add USB host functionality. EZ-OTG has its own 16-bit RISC
Interrupts
processor to act as a coprocessor or operate in standalone
mode. EZ-OTG also has a programmable IO interface block EZ-OTG provides 128 interrupt vectors. The first 48 vectors are
allowing a wide range of interface options. hardware interrupts and the following 80 vectors are software
interrupts.
Processor Core Functional Overview
General Timers and Watchdog Timer
An overview of the processor core components are presented in
EZ-OTG has two built-in programmable timers and a watchdog
this section.
timer. All three timers can generate an interrupt to the EZ-OTG.
Processor
Power Management
EZ-OTG has a general purpose 16-bit embedded RISC
EZ-OTG has one main power-saving mode, Sleep. Sleep mode
processor that runs at 48 MHz.
pauses all operations and provides the lowest power state.
Clocking
Interface Descriptions
EZ-OTG requires a 12 MHz source for clocking. Either an
external crystal or TTL-level oscillator may be used. EZ-OTG has EZ-OTG has a variety of interface options for connectivity, with
an internal PLL that produces a 48 MHz internal clock from the several interface options available. See Table 1 to understand
12 MHz source. how the interfaces share pins and can coexist. Below are some
general guidelines:
■ I2C EEPROM and OTG do not conflict with any interfaces
■ HPI is mutually exclusive to HSS, SPI, and UART
Note
1. Errata: The UART is not designed to recognize framing errors. For more information, see the Errata on page 84.
UART Pins ■ Individual bit transfer for non-byte aligned serial communi-
cation in PIO mode
Table 5. UART Interface Pins
■ Programmable delay timing for the active/inactive master SPI
Pin Name Pin Number clock
TX B5 ■ Auto or manual control for master mode slave select signal
RX B4
■ Complete access to internal memory
Serial Peripheral Interface ■ Programmable baud rate from 9600 baud to 2M baud
EZ-OTG provides an SPI interface for added connectivity. ■ Selectable 1- or 2-stop bit on transmit
EZ-OTG may be configured as either an SPI master or SPI slave. ■ Programmable intercharacter gap timing for Block Transmit
The SPI interface can be exposed through GPIO pins or the Ex-
ternal Memory port. ■ 8-byte receive FIFO
SPI Features ■ Glitch filter on receive
■ Master or slave mode operation ■ Block mode transfer directly to/from EZ-OTG internal memory
(DMA transfer)
■ DMA block transfer and PIO byte transfer modes
■ Selectable CTS/RTS hardware signal handshake protocol
■ Full duplex or half duplex data communication
■ Selectable XON/XOFF software handshake protocol
■ 8-byte receive FIFO and 8-byte transmit FIFO
■ Programmable Receive interrupt, Block Transfer Done inter-
■ Selectable master SPI clock rates from 250 kHz to 12 MHz rupts
■ Selectable master SPI clock phase and polarity ■ Complete access to internal memory
Note
2. Errata: If, while the BIOS is loading fi rmware, the part is reset and at that time the EEPROM is drivi ng the SDA line low, the BIOS will configure the part for co-processor
mode instead of standalone mode. For more information, see the Errata on page 84.
■ Auto-increment of address pointer for fast block mode transfers HPI Address 1 0
HPI Status 1 1
■ Direct memory access (DMA) to internal memory
■ Bidirectional Mailbox register Charge Pump Interface
■ Byte Swapping VBUS for the USB On-The-Go (OTG) port can be produced by
EZ-OTG using its built-in charge pump and some external
■ Complete access to internal memory components. The circuit connections should look similar to
Figure 1 below.
■ Complete control of SIEs through HPI
Figure 1. Charge Pump
■ Dedicated HPI Status register
D2
HPI Pins D1
CY7C67200
Pin Name Pin Number
CSWITCHB
INT H4 C1
VBUS
nRD G4 OTGVBUS
nWR H5 C2
nCS G5
A1 H6
A0 F5
Notes
3. HPI_INT is for the Outgoing Mailbox Interrupt.
4. HPI strobes are negative logic sampled on rising edge.
Booster Interface
EZ-OTG has an on-chip power booster circuit for use with power
supplies that range between 2.7 V and 3.6 V. The booster circuit Booster Pins
boosts the power to 3.3 V nominal to supply power for the entire
chip. The booster circuit requires an external inductor, diode, and Table 12. Charge Pump Interface Pins
capacitor. During power down mode, the circuit is disabled to Pin Name Pin Number
save power. Figure 2 shows how to connect the booster circuit.
BOOSTVcc F1
Figure 2. Power Supply Connection With Booster VSWITCH E2
BOOSTVcc
2.7V to 3.6V
L1 Power Supply
VSWITCH
D1
3.3V
VCC C1
AVCC
CY7C67200 Y1
0 1 High Speed Serial (HSS)
12MHz
Parallel Resonant 1 0 Serial Peripheral Interface (SPI, slave
Fundamental Mode mode)
500uW
20-33pf ±5% 1 1 I2C EEPROM (Standalone Mode)
XTALOUT
GPIO[31:30] must be pulled high or low, as needed, using
C1 = 22 pF C2 = 22 pF
resistors tied to VCC or GND with resistor values between 5K
ohm and 15K ohm. GPIO[31:30] must not be tied directly to VCC
or GND. Note that in Standalone mode, the pull ups on those two
pins are used for the serial I2C EEPROM (if implemented). The
resistors used for these pull ups must conform to the serial
EEPROM manufacturer's requirements.
Crystal Pins
If any mode other then standalone is chosen, EZ-OTG will be in
Table 13. Crystal Pins coprocessor mode. The device will power up with the appropriate
communication interface enabled according to its boot pins and
Pin Name Pin Number
wait idle until a coprocessor communicates with it. See the BIOS
XTALIN G3 documentation for greater detail on the boot process.
XTALOUT G2
■ HPI mode, a 16-bit parallel interface with up to 16 MBytes ■ GPIO[28:27] are enabled for debug UART mode.
transfer rate ■ GPIO[29] is configured as OTGID for OTG applications on
■ HSS mode, a serial interface with up to 2M baud transfer rate PORT1A.
❐ If OTGID is logic 1 then PORT1A (OTG) is configured as a
■ SPI mode, a serial interface with up to 2 Mbits/s transfer rate. USB peripheral.
At bootup GPIO[31:30] determine which of these three interfaces ❐ If OTGID is logic 0 then PORT1A (OTG) is configured as a
are used for coprocessor mode. Refer to Table 14 for details. USB host.
Bootloading begins from the selected interface after POR + 3 ms ■ Ports 1B, 2A, and 2B default as USB peripheral ports.
of BIOS bootup.
■ All other pins remain INPUT pins.
EZ-OTG
CY7C67200
Reset
VReg VCC, AVCC, nRESET
Logic
BoostVCC
VBus
D+ DPlus
Standard-B
or Mini-B D- DMinus
GND
SHIELD
Bootstrap Options
Vcc Vcc
10k 10k
GPIO[30] SCL*
GPIO[31] SDA*
Int. 16k x8
Code / Data
Bootloading Firmware
VCC
A0 Up to 64k x8 VCC
A1 EEPROM WP
A2 SCL
Reserved
GND SDA 22pf
XIN
GND, AGND, 12MHz
BoostGND
XOUT
22pf
*Bootloading begins after POR + 3ms BIOS bootup * Parallel Resonant
Fundamental Mode
*GPIO[31:30] 31 30
500uW
Up to 2k x8 SCL SDA
20-33pf ±5%
>2k x8 to 64k x8 SDA SCL
Power Savings and Reset Description Upon wakeup, code begins executing within 200 ms, the time it
takes the PLL to stabilize.
The EZ-OTG modes and reset conditions are described in this
section. Table 15. wakeup Sources[5, 6]
Wakeup Source (if enabled) Event
Power Savings Mode Description
USB Resume D+/D– Signaling
EZ-OTG has one main power savings mode, Sleep. For detailed
information on Sleep mode; See section “Sleep”. OTGVBUS Level
Sleep mode is used for USB applications to support USB OTGID Any Edge
suspend and non USB applications as the main chip power down HPI Read
mode. HSS Read
In addition, EZ-OTG is capable of slowing down the CPU clock SPI Read
speed through the CPU Speed register [0xC008] without
affecting other peripheral timing. Reducing the CPU clock speed IRQ0 (GPIO 24) Any Edge
from 48 MHz to 24 MHz reduces the overall current draw by
around 8 mA while reducing it from 48 MHz to 3 MHz reduces Power-On Reset (POR) Description
the overall current draw by approximately 15 mA. The length of the power-on-reset event can be defined by (VCC
ramp to valid) + (Crystal start up). A typical application might
Sleep utilize a 12-ms power-on-reset event = ~7 ms + ~5 ms, respec-
Sleep mode is the main chip power down mode and is also used tively.
for USB suspend. Sleep mode is entered by setting the Sleep
Enable (bit 1) of the Power Control register [0xC00A]. During Reset Pin
Sleep mode (USB Suspend) the following events and states are The Reset pin is active low and requires a minimum pulse dura-
true: tion of sixteen 12-MHz clock cycles (1.3 ms). A reset event re-
stores all registers to their default POR settings. Code execution
■ GPIO pins maintain their configuration during sleep (in then begins 200 ms later at 0xFF00 with an immediate jump to
suspend). 0xE000, the start of BIOS.
■ External Memory Address pins are driven low. Note It should be noted that for up to 3 ms after BIOS starts
■ XTALOUT is turned off. executing, GPIO[24:19] and GPIO[15:8] will be driven as outputs
for a test mode. If these pins need to be used as inputs, a series
■ Internal PLL is turned off. resistor is required (10 ohm to 48 ohm is recommended). Refer
to BIOS documentation for addition details.
■ Firmware must disable the charge pump (OTG Control register
[0xC098]) causing OTGVBUS to drop below 0.2 V. Otherwise USB Reset
OTGVBUS will only drop to VCC – (2 schottky diode drops).
A USB Reset affects registers 0xC090 and 0xC0B0, all other
■ Booster circuit is turned off. registers remain unchanged.
■ USB transceivers is turned off.
Memory Map
■ CPU suspends until a programmable wakeup event.
Memory map information is presented in this section.
External (Remote) Wakeup Source
Mapping
There are several possible events available to wake EZ-OTG
The EZ-OTG has just over 24 KB of addressable memory
from Sleep mode as shown in Table 15. These may also be used
mapped from 0x0000 to 0xFFFF. This 24 KB contains both
as remote wakeup options for USB applications. See section
program and data space and is byte addressable. Figure 6.
“Power Control Register [0xC00A] [R/W]” on page 15.
shows the various memory region address locations.
Notes
5. Read data will be discarded (dummy data).
6. HPI_INT will assert on a USB Resume.registers
Bit # 7 6 5 4 3 2 1 0
...Reserved Global Negative Overflow Carry Zero
Interrupt Flag Flag Flag Flag
Field Enable
Read/Write – – – R R R R R
Default 0 0 0 X X X X X
Register Description was either larger than the destination operand size (for addition)
The CPU Flags register is a read only register that gives or smaller than the destination operand should allow for
processor flags status. subtraction.
1: Overflow occurred
Global Interrupt Enable (Bit 4)
0: Overflow did not occur
The Global Interrupt Enable bit indicates if the Global Interrupts
are enabled. Carry Flag (Bit 1)
1: Enabled The Carry Flag bit indicates if an arithmetic operation resulted in
0: Disabled a carry for addition, or borrow for subtraction.
1: Carry/Borrow occurred
Negative Flag (Bit 3)
0: Carry/Borrow did not occur
The Negative Flag bit indicates if an arithmetic operation results
in a negative answer. Zero Flag (Bit 0)
1: MS result bit is ‘1’ The Zero Flag bit indicates if an instruction execution resulted in
0: MS result bit is not ‘1’ a ‘0’.
1: Zero occurred
Overflow Flag (Bit 2)
0: Zero did not occur
The Overflow Flag bit indicates if an overflow condition has
occurred. An overflow condition can occur if an arithmetic result
Bit # 7 6 5 4 3 2 1 0
Field ...Address Reserved
Read/Write R/W R/W R/W – – – – –
Default 0 0 0 X X X X X
Register Description
.
Bit # 15 14 13 12 11 10 9 8
Field Revision...
Read/Write R R R R R R R R
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
Field ...Revision
Read/Write R R R R R R R R
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
Field ...Reserved CPU Speed
Read/Write - - - - R/W R/W R/W R/W
Default 0 0 0 0 1 1 1 1
Register Description
The CPU Speed register allows the processor to operate at a user selected speed. This register only affects the CPU; all other
peripheral timing is still based on the 48-MHz system clock (unless otherwise noted).
Reserved
All reserved bits must be written as ‘0’.
Bit # 15 14 13 12 11 10 9 8
Reserved Host/Device 2 Reserved Host/Device 1 OTG Reserved HSS SPI
Field Wake Enable Wake Enable Wake Enable Wake Enable Wake Enable
Read/Write – R/W – R/W R/W – R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
HPI Reserved GPI Reserved Boost 3V Sleep Halt
Field Wake Enable Wake Enable OK Enable Enable
Read/Write R/W – – R/W – R R/W R/W
Default 0 0 0 0 0 0 0 0
1: Enable wakeup on Host/Device 2 transition. The HPI Wake Enable bit enables or disables a wakeup
condition to occur on an HPI interface read.
0: Disable wakeup on Host/Device 2 transition.
1: Enable wakeup on HPI interface read
Host/Device 1 Wake Enable (Bit 12) 0: Disable wakeup on HPI interface read
The Host/Device 1 Wake Enable bit enables or disables a
wakeup condition to occur on an Host/Device 1 transition. This GPI Wake Enable (Bit 4)
wakeup from the SIE port does not cause an interrupt to the The GPI Wake Enable bit enables or disables a wakeup
on-chip CPU. condition to occur on a GPIO(25:24) transition.
1: Enable wakeup on Host/Device 1 transition 1: Enable wakeup on GPIO(25:24) transition
0: Disable wakeup on Host/Device 1 transition 0: Disable wakeup on GPIO(25:24) transition
The OTG Wake Enable bit enables or disables a wakeup The Boost 3V OK bit is a read only bit that returns the status of
condition to occur on either an OTG VBUS_Valid or OTG ID the OTG Boost circuit.
transition (IRQ20). 1: Boost circuit not ok and internal voltage rails are below 3.0 V
1: Enable wakeup on OTG VBUS valid or OTG ID transition 0: Boost circuit ok and internal voltage rails are at or above 3.0 V
0: Disable wakeup on OTG VBUS valid or OTG ID transition Sleep Enable (Bit 1)
HSS Wake Enable (Bit 9) Setting this bit to ‘1’ immediately initiates SLEEP mode. While in
The HSS Wake Enable bit enables or disables a wakeup SLEEP mode, the entire chip is paused achieving the lowest
condition to occur on an HSS Rx serial input transition. The standby power state. All operations are paused, the internal
processor may take several hundreds of microseconds before clock is stopped, the booster circuit and OTG VBUS charge
being operational after wakeup. Therefore, the incoming data pump are all powered down, and the USB transceivers are
byte that causes the wakeup will be discarded. powered down. All counters and timers are paused but will retain
their values. SLEEP mode exits by any activity selected in this
1: Enable wakeup on HSS Rx serial input transition register. When SLEEP mode ends, instruction execution
0: Disable wakeup on HSS Rx serial input transition resumes within 0.5 ms.
1: Enable Sleep Mode
0: No Function
Setting this bit to ‘1’ immediately initiates HALT mode. While in waking interrupt is serviced (you may want to follow the HALT
HALT mode, only the CPU is stopped. The internal clock still runs instruction with two NOPs).
and all peripherals still operate, including the USB engines. The 1: Enable Halt Mode
power savings using HALT in most cases will be minimal, but in
applications that are very CPU intensive the incremental savings 0: No Function
may provide some benefit.
Reserved
The HALT state is exited when any enabled interrupt is triggered.
Upon exiting the HALT state, one or two instructions immediately All reserved bits must be written as ‘0’.
following the HALT instruction may be executed before the
Bit # 15 14 13 12 11 10 9 8
Reserved OTG SPI Reserved Host/Device 2 Host/Device 1
Interrupt Interrupt Interrupt Interrupt
Field Enable Enable Enable Enable
Read/Write – – – R/W R/W – R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
HSS In Mailbox Out Mailbox Reserved UART GPIO Timer 1 Timer 0
Interrupt Interrupt Interrupt Interrupt Interrupt Interrupt Interrupt
Field Enable Enable Enable Enable Enable Enable Enable
Read/Write R/W R/W R/W – R/W R/W R/W R/W
Default 0 0 0 1 0 0 0 0
Reserved
All reserved bits must be written as ‘0’.
Bit # 15 14 13 12 11 10 9 8
Field Address...
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Address
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The Breakpoint Register holds the breakpoint address. When the program counter match this address, the INT127 interrupt occurs.
To clear this interrupt, a zero value must be written to this register.
Bit # 15 14 13 12 11 10 9 8
Reserved Port 2A Reserved Port 1A Reserved...
Diagnostic Diagnostic
Field Enable Enable
Read/Write - R/W - R/W - - - -
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
...Reserved Pull-down LS Pull-up FS Pull-up Reserved Force Select
Field Enable Enable Enable
Read/Write - R/W R/W R/W - R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 15 14 13 12 11 10 9 8
Field Reserved...
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
...Reserved Timeout Period Lock WDT Reset
Field Flag Select Enable Enable Strobe
Read/Write R/W R/W R/W R/W R/W R/W R/W W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Count
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 1 1 1 1 1 1 1 1
Register Description
The Timer n Register sets the Timer n count. Both Timer 0 and Timer 1 decrement by one every 1-µs clock tick. Each can provide an
interrupt to the CPU when the timer reaches zero.
Bit # 15 14 13 12 11 10 9 8
Reserved Port A Port A Reserved LOA Mode Reserved
Field D+ Status D– Status Select
Read/Write - - R R - R/W R/W -
Default X X X X 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Port A Reserved Port A Suspend Reserved Port A
Field Resistors Enable Force D± State Enable SOF/EOP Enable
Read/Write R/W - - R/W R/W R/W - R/W
Default 0 0 0 0 0 0 0 0
Note
8. Errata: Writing to the SIE2 Control register via HPI can corrupt the SIE1 control register. Writing to the SIE1 Control register via HPI can corrupt the SIE2 control
register. For more information, see the Errata on page 84.
Register Description
The USB n Control register is used in both host and device mode. It monitors and controls the SIE and the data lines of the USB ports.
This register can be accessed by the HPI interface.
Bit # 7 6 5 4 3 2 1 0
Preamble Sequence Sync ISO Reserved Arm
Field Enable Select Enable Enable Enable
Read/Write R/W R/W R/W R/W - - - R/W
Default 0 0 0 0 0 0 0 0
Register Description 1: The next enabled packet will be transferred after the SOF or
The Host n Control register allows high-level USB transaction EOP packet is transmitted
control. 0: The next enabled packet will be transferred as soon as the SIE
is free
Preamble Enable (Bit 7)
The Preamble Enable bit enables or disables the transmission of ISO Enable (Bit 4)
a preamble packet before all low-speed packets. This bit should The ISO Enable bit enables or disables an Isochronous trans-
only be set when communicating with a low-speed device. action.
1: Enable Preamble packet 1: Enable Isochronous transaction
0: Disable Preamble packet 0: Disable Isochronous transaction
Bit # 7 6 5 4 3 2 1 0
Field ...Address
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 15 14 13 12 11 10 9 8
Field Reserved Count...
Read/Write - - - - - - R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Count
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 15 14 13 12 11 10 9 8
Reserved Overflow Underflow Reserved
Field Flag Flag
Read/Write - - - - R R - -
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Stall NAK Length Reserved Sequence Timeout Error ACK
Flag Flag Exception Status Flag Flag Flag
Field Flag
Read/Write R R R - R R R R
Default 0 0 0 0 0 0 0 0
1: Device returned NAK The Error Flag bit indicates a transaction failed for any reason
other than the following: Timeout, receiving a NAK, or receiving
0: Device did not return NAK a STALL. Overflow and Underflow are not considered errors and
do not affect this bit. CRC5 and CRC16 errors will result in an
Length Exception Flag (Bit 5) Error flag along with receiving incorrect packet types.
The Length Exception Flag bit indicates the received data in the 1: Error detected
data stage of the last transaction does not equal the maximum
Host Count specified in the Host n Count register. A Length 0: No error detected
Exception can either mean an overflow or underflow and the
Overflow and Underflow flags (bits 11 and 10, respectively) ACK Flag (Bit 0)
should be checked to determine which event occurred. The ACK Flag bit indicates two different conditions depending on
1: An overflow or underflow condition occurred the transfer type. For non-Isochronous transfers, this bit repre-
sents a transaction ending by receiving or sending an ACK
0: An overflow or underflow condition did not occur packet. For Isochronous transfers, this bit represents a
successful transaction that will not be represented by an ACK
Sequence Status (Bit 3) packet.
The Sequence Status bit indicates the state of the last received 1: For non-Isochronous transfers, the transaction was ACKed.
data toggle from the device. Firmware is responsible for For Isochronous transfers, the transaction was completed
monitoring and handling the sequence status. The Sequence bit successfully.
is only valid if the ACK bit is set to ‘1’. The Sequence bit is set to
‘0’ when an error is detected in the transaction and the Error bit 0: For non-Isochronous transfers, the transaction was not
will be set. ACKed. For Isochronous transfers, the transaction was not
completed successfully.
1: DATA1
0: DATA0
Bit # 15 14 13 12 11 10 9 8
Field Reserved
Read/Write - - - - - - - -
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field PID Select Endpoint Select
Read/Write W W W W W W W W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Result
Read/Write R R R R R R R R
Default 0 0 0 0 0 0 0 0
Bit # 15 14 13 12 11 10 9 8
Field Reserved...
Read/Write - - - - - - - -
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Reserved Address
Read/Write - W W W W W W W
Default 0 0 0 0 0 0 0 0
Reserved
All reserved bits must be written as ‘0’.
Bit # 7 6 5 4 3 2 1 0
Reserved Port A Reserved Port A Connect Reserved Done
Wake Interrupt Enable Change Interrupt Enable
Field Interrupt Enable
Read/Write - R/W - R/W - - - R/W
Default 0 0 0 0 0 0 0 0
The VBUS Interrupt Enable bit enables or disables the OTG 1: Enable ID interrupt
VBUS interrupt. When enabled this interrupt triggers on both the 0: Disable ID interrupt
rising and falling edge of VBUS at the 4.4 V status (only
supported in Port 1A). This bit is only available for Host 1 and is SOF/EOP Interrupt Enable (Bit 9)
a reserved bit in Host 2. The SOF/EOP Interrupt Enable bit enables or disables the
1: Enable VBUS interrupt SOF/EOP timer interrupt.
Bit # 7 6 5 4 3 2 1 0
Reserved Port A Reserved Port A Connect Reserved Port A Reserved Done
Wake Interrupt Change SE0 Interrupt Flag
Field Flag Interrupt Flag Status
Read/Write - R/W - R/W - R/W - R/W
Default X X X X X X X X
Register Description The ID Interrupt Flag bit indicates the status of the OTG ID
The Host n Status register provides status information for host interrupt (only for Port 1A). When enabled this interrupt triggers
operation. Pending interrupts can be cleared by writing a ‘1’ to on both the rising and falling edge of the OTG ID pin. This bit is
the corresponding bit. This register can be accessed by the HPI only available for Host 1 and is a reserved bit in Host 2.
interface. 1: Interrupt triggered
The VBUS Interrupt Flag bit indicates the status of the OTG SOF/EOP Interrupt Flag (Bit 9)
VBUS interrupt (only for Port 1A). When enabled this interrupt The SOF/EOP Interrupt Flag bit indicates the status of the
triggers on both the rising and falling edge of VBUS at 4.4 V. This SOF/EOP Timer interrupt. This bit triggers ‘1’ when the
bit is only available for Host 1 and is a reserved bit in Host 2. SOF/EOP timer expires.
1: Interrupt triggered 1: Interrupt triggered
0: Interrupt did not trigger 0: Interrupt did not trigger
ID Interrupt Flag (Bit 14)
Bit # 7 6 5 4 3 2 1 0
Field ...Count
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 1 1 1 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Counter
Read/Write R R R R R R R R
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
Field ...Frame
Read/Write R R R R R R R R
Default 0 0 0 0 0 0 0 0
Bit # 15 14 13 12 11 10 9 8
Field Reserved
Read/Write - - - - - - - -
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
IN/OUT Sequence Stall ISO NAK Direction Enable Arm
Ignore Select Enable Enable Interrupt Select Enable
Field Enable Enable
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default X X X X X X X X
The IN/OUT Ignore Enable bit forces endpoint 0 (EP0) to ignore 0: Send a DATA0
all IN and OUT requests. This bit must be set so that EP0 only Stall Enable (Bit 5)
excepts Setup packets at the start of each transfer. This bit must
be cleared to except IN/OUT transactions. This bit only applies The Stall Enable bit sends a Stall in response to the next request
to EP0. (unless it is a setup request, which are always ACKed). This is a
sticky bit and continues to respond with Stalls until cleared by
1: Ignore IN/OUT requests firmware.
0: Do not ignore IN/OUT requests 1: Send Stall
0: Do not send Stall is set incorrectly, the setup will be ACKed and the Set-up Status
Flag will be set (refer to the setup bit of the Device n Endpoint n
ISO Enable (Bit 4) Status register for details).
The ISO Enable bit enables and disables an Isochronous trans- 1: OUT transfer (host to device)
action. This bit is only valid for EPs 1–7 and has no function for
EP0. 0: IN transfer (device to host)
The Direction Select bit needs to be set according to the 0: Endpoint disarmed
expected direction of the next data stage in the next transaction. Reserved
If the data stage direction is different from what is set in this bit,
it will get NAKed and either the IN Exception Flag or the OUT All reserved bits must be written as ‘0’.
Exception Flag will be set in the Device n Endpoint n Status
register. If a setup packet is received and the Direction Select bit Device n Endpoint n Address Register [R/W]
Bit # 15 14 13 12 11 10 9 8
Field Address...
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
Field ...Address
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default X X X X X X X X
Register Description
The Device n Endpoint n Address register is used as the base pointer into memory space for the current Endpoint transaction. There
are a total of eight endpoints for each of the two ports. All endpoints have the same definition for their Device n Endpoint n Address
register.
Bit # 15 14 13 12 11 10 9 8
Field Reserved Count...
Read/Write - - - - - - R/W R/W
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
Field ...Count
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default X X X X X X X X
Register Description
The Device n Endpoint n Count register designates the maximum packet size that can be received from the host for OUT transfers
for a single endpoint. This register also designates the packet size to be sent to the host in response to the next IN token for a single
endpoint. The maximum packet length is 1023 bytes in ISO mode. There are a total of eight endpoints for each of the two ports. All
endpoints have the same definition for their Device n Endpoint n Count register.
Reserved
All reserved bits must be written as ‘0’.
Bit # 15 14 13 12 11 10 9 8
Reserved Overflow Underflow OUT IN
Field Flag Flag Exception Flag Exception Flag
Read/Write - - - - R/W R/W R/W R/W
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
Stall NAK Length Setup Sequence Timeout Error ACK
Field Flag Flag Exception Flag Flag Flag Flag Flag Flag
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default X X X X X X X X
IN Exception Flag (Bit 8) Enable bit settings as long as the Device n EP n Control register
The IN Exception Flag bit indicates when the device received an Enable bit is set.
IN packet when armed for an OUT. 1: Setup packet was received
1: Received IN when armed for OUT 0: Setup packet was not received
0: Received OUT when armed for OUT Sequence Flag (Bit 3)
Stall Flag (Bit 7) The Sequence Flag bit indicates whether the last data toggle
The Stall Flag bit indicates that a Stall packet was sent to the received was a DATA1 or a DATA0. This bit has no effect on
host. receiving data packets; sequence checking must be handled in
firmware.
1: Stall packet was sent to the host
1: DATA1 was received
0: Stall packet was not sent
0: DATA0 was received
NAK Flag (Bit 6)
Timeout Flag (Bit 2)
The NAK Flag bit indicates that a NAK packet was sent to the
host. The Timeout Flag bit indicates whether a timeout condition
occurred on the last transaction. On the device side, a timeout
1: NAK packet was sent to the host can occur if the device sends a data packet in response to an IN
0: NAK packet was not sent request but then does not receive a handshake packet in a
predetermined time. It can also occur if the device does not
Length Exception Flag (Bit 5) receive the data stage of an OUT transfer in time.
The Length Exception Flag bit indicates the received data in the 1: Timeout occurred
data stage of the last transaction does not equal the maximum 0: Timeout condition did not occur
Endpoint Count specified in the Device n Endpoint n Count
register. A Length Exception can either mean an overflow or Error Flag (Bit 2)
underflow and the Overflow and Underflow flags (bits 11 and 10,
respectively) should be checked to determine which event The Error Flag bit is set if a CRC5 and CRC16 error occurs, or if
occurred. an incorrect packet type is received. Overflow and Underflow are
not considered errors and do not affect this bit.
1: An overflow or underflow condition occurred
1: Error occurred
0: An overflow or underflow condition did not occur
0: Error did not occur
Setup Flag (Bit 4)
ACK Flag (Bit 0)
The Setup Flag bit indicates that a setup packet was received.
In device mode setup packets are stored at memory location The ACK Flag bit indicates whether the last transaction was
0x0300 for Device 1 and 0x0308 for Device 2. Setup packets are ACKed.
always accepted regardless of the Direction Select and Arm 1: ACK occurred
0: ACK did not occur
Bit # 15 14 13 12 11 10 9 8
Field Result...
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
Field ...Result
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
EP7 Interrupt EP6 Interrupt EP5 Interrupt EP4 Interrupt EP3 Interrupt EP2 Interrupt EP1 Interrupt EP0 Interrupt
Field Enable Enable Enable Enable Enable Enable Enable Enable
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Reserved
All reserved bits must be written as ‘0’.
Bit # 7 6 5 4 3 2 1 0
Field ...Reserved Address
Read/Write - W W W W W W W
Default 0 0 0 0 0 0 0 0
Register Description
The Device n Address register holds the device address assigned by the host. This register initializes to the default address 0 at reset
but must be updated by firmware when the host assigns a new address. Only USB data sent to the address contained in this register
will be responded to, all others are ignored.
Address (Bits [6:0])
The Address field contains the USB address of the device assigned by the host.
Reserved
All reserved bits must be written as ‘0’.
Device n Status Register [R/W]
■ Device 1 Status Register 0xC090
■ Device 2 Status Register 0xC0B0
Figure 37. Device n Status Register
Bit # 15 14 13 12 11 10 9 8
VBUS ID Interrupt Reserved SOF/EOP Reset
Field Interrupt Flag Flag Interrupt Flag Interrupt Flag
Read/Write R/W R/W - - - - R/W R/W
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
EP7 Interrupt EP6 Interrupt EP5 Interrupt EP4 Interrupt EP3 Interrupt EP2 Interrupt EP1 Interrupt EP0 Interrupt
Field Flag Flag Flag Flag Flag Flag Flag Flag
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default X X X X X X X X
Bit # 15 14 13 12 11 10 9 8
SOF/EOP SOF/EOP Reserved Frame...
Field Timeout Flag Timeout Interrupt Counter
Read/Write R R R R - R R R
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Frame
Read/Write R R R R R R R R
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Count
Read/Write R R R R R R R R
Default 1 1 1 0 0 0 0 0
Register Description The Count field contains the current value of the SOF/EOP down
The Device n SOF/EOP Count register must be written with the counter. At power-up and reset, this value is set to 0x2EE0 and
time expected between receiving a SOF/EOPs. If the SOF/EOP for expected 1-ms SOF/EOP intervals, this SOF/EOP count
counter expires before an SOF/EOP is received, an SOF/EOP should be increased slightly.
Timeout Interrupt can be generated. The SOF/EOP Timeout Reserved
Interrupt Enable and SOF/EOP Timeout Interrupt Flag are
located in the Device n Interrupt Enable and Status registers, All reserved bits must be written as ‘0’.
respectively.
OTG Control Registers
The SOF/EOP count must be set slightly greater than the
expected SOF/EOP interval. The SOF/EOP counter decrements There is one register dedicated for OTG operation. This register
at a 12-MHz rate. Therefore in the case of an expected 1-ms is covered in this section and summarized in Table 28.
SOF/EOP interval, the SOF/EOP count must be set slightly Table 28. OTG Registers
greater then 0x2EE0.
Register Name [9] Address R/W
Count (Bits [13:0]) OTG Control Register C098H R/W
Bit # 15 14 13 12 11 10 9 8
Field Reserved VBUS Receive Charge Pump VBUS D+ D–
Pull-up Disable Enable Discharge Pull-up Pull-up
Enable Enable Enable Enable
Read/Write - - R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field D+ D– Reserved OTG Data ID VBUS Valid
Pull-down Pull-down Status Status Flag
Enable Enable
Read/Write R/W R/W - - - R R R
Default 0 0 0 0 0 X X X
Bit # 15 14 13 12 11 10 9 8
Write Protect Reserved Reserved SAS Mode
Field Enable Enable Select
Read/Write R/W - R - R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
HSS Reserved SPI Reserved Interrupt 0 Interrupt 0
Field Enable Enable Polarity Select Enable
Read/Write R/W - R/W - - - R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 15 14 13 12 11 10 9 8
Field GPIO15 GPIO14 GPIO13 GPIO12 GPIO11 GPIO10 GPIO9 GPIO8
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field GPIO7 GPIO6 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1 GPIO0
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The GPIO 0 Output Data register controls the output data of the GPIO pins. The GPIO 0 Output Data register controls GPIO15 to
GPIO0 while the GPIO 1 Output Data register controls GPIO31 to GPIO19. When read, this register reads back the last data written,
not the data on pins configured as inputs (see Input Data Register).
Writing a 1 to any bit will output a high voltage on the corresponding GPIO pin.
Reserved
All reserved bits must be written as ‘0’.
Bit # 15 14 13 12 11 10 9 8
Field GPIO31 GPIO30 GPIO29 Reserved GPIO24
Read/Write R/W R/W R/W - - - - R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field GPIO23 GPIO22 GPIO21 GPIO20 GPIO19 Reserved
Read/Write R/W R/W R/W R/W R/W - - -
Default 0 0 0 0 0 0 0 0
Register Description
The GPIO 1 Output Data register controls the output data of the GPIO pins. The GPIO 0 Output Data register controls GPIO15 to
GPIO0 while the GPIO 1 Output Data register controls GPIO31 to GPIO19. When read, this register reads back the last data written,
not the data on pins configured as inputs (see Input Data Register).
Writing a 1 to any bit will output a high voltage on the corresponding GPIO pin.
Reserved
All reserved bits must be written as ‘0’.
Bit # 15 14 13 12 11 10 9 8
Field GPIO15 GPIO14 GPIO13 GPIO12 GPIO11 GPIO10 GPIO9 GPIO8
Read/Write R R R R R R R R
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field GPIO7 GPIO6 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1 GPIO0
Read/Write R R R R R R R R
Default 0 0 0 0 0 0 0 0
Register Description
The GPIO 0 Input Data register reads the input data of the GPIO pins. The GPIO 0 Input Data register reads from GPIO15 to GPIO0
while the GPIO 1 Input Data register reads from GPIO31 to GPIO19.
Every bit represents the voltage of that GPIO pin.
Bit # 15 14 13 12 11 10 9 8
Field GPIO31 GPIO30 GPIO29 Reserved GPIO24
Read/Write R R R - - - - R
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field GPIO23 GPIO22 GPIO21 GPIO20 GPIO19 Reserved
Read/Write R R R R R - - -
Default 0 0 0 0 0 0 0 0
Register Description
The GPIO 1 Input Data register reads the input data of the GPIO pins. The GPIO 0 Input Data register reads from GPIO15 to GPIO0
while the GPIO 1 Input Data register reads from GPIO31 to GPIO19.
Every bit represents the voltage of that GPIO pin.
Bit # 15 14 13 12 11 10 9 8
Field GPIO15 GPIO14 GPIO13 GPIO12 GPIO11 GPIO10 GPIO9 GPIO8
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field GPIO7 GPIO6 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1 GPIO0
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The GPIO 0 Direction register controls the direction of the GPIO data pins (input/output). The GPIO 0 Direction register controls
GPIO15 to GPIO0 while the GPIO 1 Direction register controls GPIO31 to GPIO19.
When any bit of this register is set to ‘1’, the corresponding GPIO data pin becomes an output. When any bit of this register is set to
‘0’, the corresponding GPIO data pin becomes an input.
Reserved
All reserved bits must be written as ‘0’.
Bit # 15 14 13 12 11 10 9 8
Field GPIO31 GPIO30 GPIO29 Reserved GPIO24
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field GPIO23 GPIO22 GPIO21 GPIO20 GPIO19 Reserved
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The GPIO 1 Direction register controls the direction of the GPIO data pins (input/output). The GPIO 0 Direction register controls
GPIO15 to GPIO0 while the GPIO 1 Direction register controls GPIO31 to GPIO19.
When any bit of this register is set to ‘1’, the corresponding GPIO data pin becomes an output. When any bit of this register is set to
‘0’, the corresponding GPIO data pin becomes an input.
Reserved
All reserved bits must be written as ‘0’.
HSS Registers
There are eight registers dedicated to HSS operation. Each of these registers are covered in this section and summarized in Table 31.
Table 31. HSS Registers
Register Name Address R/W
HSS Control Register 0xC070 R/W
HSS Baud Rate Register 0xC072 R/W
HSS Transmit Gap Register 0xC074 R/W
HSS Data Register 0xC076 R/W
HSS Receive Address Register 0xC078 R/W
HSS Receive Length Register 0xC07A R/W
HSS Transmit Address Register 0xC07C R/W
HSS Transmit Length Register 0xC07E R/W
Bit # 15 14 13 12 11 10 9 8
HSS RTS CTS XOFF XOFF CTS Receive Done
Enable Polarity Select Polarity Select Enable Enable Interrupt Interrupt
Field Enable Enable
Read/Write R/W R/W R/W R R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Transmit Receive One Transmit Packet Receive Receive Receive
Done Interrupt Done Interrupt Stop Bit Ready Mode Overflow Packet Ready Ready
Field Enable Enable Select Flag Flag Flag
Read/Write R/W R/W R/W R R/W R/W R R
Default 0 0 0 0 0 0 0 0
HSS Enable (Bit 15) 1: Enable the Receive Ready and Receive Packet Ready inter-
rupts
The HSS Enable bit enables or disables HSS operation.
0: Disable the Receive Ready and Receive Packet Ready inter-
1: Enables HSS operation rupts
0: Disables HSS operation
Done Interrupt Enable (Bit 8)
RTS Polarity Select (Bit 14) The Done Interrupt Enable bit enables or disables the Transmit
The RTS Polarity Select bit selects the polarity of RTS. Done and Receive Done interrupts.
1: RTS is true when LOW 1: Enable the Transmit Done and Receive Done interrupts
0: RTS is true when HIGH 0: Disable the Transmit Done and Receive Done interrupts
CTS Polarity Select (Bit 13) Transmit Done Interrupt Flag (Bit 7)
The CTS Polarity Select bit selects the polarity of CTS. The Transmit Done Interrupt Flag bit indicates the status of the
Transmit Done Interrupt. It will set when a block transmit is
1: CTS is true when LOW finished. To clear the interrupt, a ‘1’ must be written to this bit.
0: CTS is true when HIGH 1: Interrupt triggered
XOFF (Bit 12) 0: Interrupt did not trigger
The XOFF bit is a read-only bit that indicates if an XOFF has Receive Done Interrupt Flag (Bit 6)
been received. This bit is automatically cleared when an XON is
received. The Receive Done Interrupt Flag bit indicates the status of the
Receive Done Interrupt. It will set when a block transmit is
1: XOFF received finished. To clear the interrupt, a ‘1’ must be written to this bit.
0: XON received 1: Interrupt triggered
XOFF Enable (Bit 11) 0: Interrupt did not trigger
The XOFF Enable bit enables or disables XON/XOFF software
handshaking. One Stop Bit (Bit 5)
1: Enable XON/XOFF software handshaking The One Stop Bit bit selects between one and two stop bits for
transmit byte mode. In receive mode, the number of stop bits
0: Disable XON/XOFF software handshaking may vary and does not need to be fixed.
CTS Enable (Bit 10) 1: One stop bit
The CTS Enable bit enables or disables CTS/RTS hardware 0: Two stop bits
handshaking.
1: Enable CTS/RTS hardware handshaking
0: Disable CTS/RTS hardware handshaking
Bit # 7 6 5 4 3 2 1 0
Field ...Baud
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 1 0 1 1 1
Register Description
The HSS Baud Rate register sets the HSS Baud Rate. At reset, the default value is 0x0017 which sets the baud rate to 2.0 MHz.
Reserved
All reserved bits must bit written as ‘0’.
Bit # 7 6 5 4 3 2 1 0
Field Transmit Gap Select
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 1 0 0 1
Register Description
The HSS Transmit Gap register is only valid in block transmit mode. It allows for a programmable number of stop bits to be inserted
thus overwriting the One Stop Bit in the HSS Control register. The default reset value of this register is 0x0009, equivalent to two stop
bits.
Reserved
All reserved bits must be written as ‘0’.
Bit # 15 14 13 12 11 10 9 8
Field Reserved
Read/Write - - - - - - - -
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
Field Data
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default X X X X X X X X
Register Description
The HSS Data register contains data received on the HSS port (not for block receive mode) when read. This receive data is valid
when the Receive Ready bit of the HSS Control register is set to ‘1’. Writing to this register initiates a single byte transfer of data. The
Transmit Ready Flag in the HSS Control register must read ‘1’ before writing to this register (this avoids disrupting the previous/current
transmission).
Data (Bits [7:0])
The Data field contains the data received or to be transmitted on the HSS port.
Reserved
All reserved bits must be written as ‘0’.
Bit # 7 6 5 4 3 2 1 0
Field ...Address
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The HSS Receive Address register is used as the base pointer address for the next HSS block receive transfer.
Address (Bits [15:0])
The Address field sets the base pointer address for the next HSS block receive transfer.
Bit # 15 14 13 12 11 10 9 8
Field Reserved Counter...
Read/Write - - - - - - R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Counter
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The HSS Receive Counter register designates the block byte length for the next HSS receive transfer. This register must be loaded
with the word count minus one to start the block receive transfer. As each byte is received this register value is decremented. When
read, this register indicates the remaining length of the transfer.
Reserved
All reserved bits must be written as ‘0’.
Bit # 15 14 13 12 11 10 9 8
Field Address...
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Address
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The HSS Transmit Address register is used as the base pointer address for the next HSS block transmit transfer.
Bit # 15 14 13 12 11 10 9 8
Field Reserved Counter...
Read/Write - - - - - - R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Counter
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 15 14 13 12 11 10 9 8
Field Address...
Read/Write R R R R R R R R
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Address
Read/Write R R R R R R R R
Default 0 0 0 0 0 0 0 0
Register Description
The HPI Breakpoint register is a special on-chip memory location, which the external processor can access using normal HPI memory
read/write cycles. This register is read-only by the CPU but is read/write by the HPI port. The contents of this register have the same
effect as the Breakpoint register [0xC014]. This special Breakpoint register is used by software debuggers which interface through
the HPI port instead of the serial port.
When the program counter matches the Breakpoint Address, the INT127 interrupt triggers. To clear this interrupt, a zero value must
be written to this register.
Bit # 7 6 5 4 3 2 1 0
Resume2 to Resume1 to Reserved Done2 to HPI Done1 to HPI Reset1 to HPI HPI Swap 0
Field HPI Enable HPI Enable Enable Enable Enable Enable
Read/Write - - - - - - - -
Default 0 0 0 0 0 0 0 0
Bit # 15 14 13 12 11 10 9 8
Field Data...
Read/Write W W W W W W W W
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
Field ...Data
Read/Write W W W W W W W W
Default X X X X X X X X
Register Description
The SIEXmsg register allows an interrupt to be generated on the HPI port. Any write to this register causes the SIEXmsg flag in the
HPI Status Port to go high and also causes an interrupt on the HPI_INTR pin. The SIEXmsg flag is automatically cleared when the
HPI port reads from this register.
Bit # 7 6 5 4 3 2 1 0
Field ...Message
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The HPI Mailbox register provides a common mailbox between the CY7C67200 and the external host processor.
If enabled, the HPI Mailbox RX Full interrupt triggers when the external host processor writes to this register. When the CY7C67200
reads this register the HPI Mailbox RX Full interrupt automatically gets cleared.
If enabled, the HPI Mailbox TX Empty interrupt triggers when the external host processor reads from this register. The HPI Mailbox
TX Empty interrupt is automatically cleared when the CY7C67200 writes to this register.
In addition, when the CY7C67200 writes to this register, the HPI_INTR signal on the HPI port asserts signaling the external processor
that there is data in the mailbox to read. The HPI_INTR signal deasserts when the external host processor reads from this register.
Bit # 7 6 5 4 3 2 1 0
Resume2 Resume1 SIE2msg SIE1msg Done2 Done1 Reset1 Mailbox Out
Field Flag Flag Flag Flag Flag Flag
Read/Write R R R R R R R R
Default X X X X X X X X
The VBUS Flag bit is a read-only bit that indicates whether OTG 1: Interrupt triggered
VBus is greater than 4.4 V. After turning on VBUS, firmware 0: Interrupt did not trigger
should wait at least 10 µs before this reading this bit.
Resume1 Flag (Bit 6)
1: OTG VBus is greater then 4.4 V
The Resume1 Flag bit is a read-only bit that indicates if a USB
0: OTG VBus is less then 4.4 V resume interrupt occurs on either Host/Device 1.
ID Flag (Bit 14) 1: Interrupt triggered
The ID Flag bit is a read-only bit that indicates the state of the 0: Interrupt did not trigger
OTG ID pin.
SIE2msg (Bit 5)
SOF/EOP2 Flag (Bit 12) The SIE2msg Flag bit is a read-only bit that indicates if the
The SOF/EOP2 Flag bit is a read-only bit that indicates if a CY7C67200 CPU has written to the SIE2msg register. This bit is
SOF/EOP interrupt occurs on either Host/Device 2. cleared on an HPI read.
1: Interrupt triggered 1: The SIE2msg register has been written by the CY7C67200
0: Interrupt did not trigger CPU
0: The SIE2msg register has not been written by the CY7C67200
SOF/EOP1 Flag (Bit 10) CPU
The SOF/EOP1 Flag bit is a read-only bit that indicates if a
SOF/EOP interrupt occurs on either Host/Device 1. SIE1msg (Bit 4)
1: Interrupt triggered The SIE1msg Flag bit is a read-only bit that indicates if the
CY7C67200 CPU has written to the SIE1msg register. This bit is
0: Interrupt did not trigger cleared on an HPI read.
Reset2 Flag (Bit 9) 1: The SIE1msg register has been written by the CY7C67200
CPU
The Reset2 Flag bit is a read-only bit that indicates if a USB
Reset interrupt occurs on either Host/Device 2. 0: The SIE1msg register has not been written by the CY7C67200
CPU
1: Interrupt triggered
SPI Registers
There are 12 registers dedicated to SPI operation. Each register is covered in this section and summarized in Table 33.
Table 33. SPI Registers
Register Name Address R/W
SPI Configuration Register 0xC0C8 R/W
SPI Control Register 0xC0CA R/W
SPI Interrupt Enable Register 0xC0CC R/W
SPI Status Register 0xC0CE R
SPI Interrupt Clear Register 0xC0D0 W
SPI CRC Control Register 0xC0D2 R/W
SPI CRC Value 0xC0D4 R/W
SPI Data Register 0xC0D6 R/W
SPI Transmit Address Register 0xC0D8 R/W
SPI Transmit Count Register 0xC0DA R/W
SPI Receive Address Register 0xC0DC R/W
SPI Receive Count Register 0xC0DE R/W
Bit # 7 6 5 4 3 2 1 0
Master Master SS SS Delay Select
Field Active Enable Enable Enable
Read/Write R R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 1 1 1 1 1
Register Description
The SPI Configuration register controls the SPI port. Fields apply to both master and slave mode unless otherwise noted.
0: Normal MISO and MOSI Full Duplex operation (not tied 1: Master state machine is active
together) 0: Master state machine is idle
1: Positive SCK polarity The SS Enable bit enables or disables the master SS output.
Bit # 15 14 13 12 11 10 9 8
SCK FIFO Byte Full Duplex SS Read Transmit Receive
Field Strobe Init Mode Manual Enable Ready Data Ready
Read/Write W W R/W R/W R/w R/W R R
Default 0 0 0 0 0 0 0 1
Bit # 7 6 5 4 3 2 1 0
Transmit Receive Transmit Bit Length Receive Bit Length
Field Empty Full
Read/Write R R R/W R/W R/W R/W R/w R/W
Default 1 0 0 0 0 0 0 0
SCK Strobe (Bit 15) 1: Initiates a read phase for a master transfer or sets a slave to
receive. In master mode this bit is sticky and remains set until the
The SCK Strobe bit starts the SCK strobe at the selected read transfer begins.
frequency and polarity (set in the SPI Configuration register), but
not phase. This bit feature can only be enabled when in master 0: Initiates the write phase for slave operation
mode and must be during a period of inactivity. This bit is Transmit Ready (Bit 9)
self-clearing.
The Transmit Ready bit is a read-only bit that indicates if the
1: SCK Strobe Enable transmit port is ready to empty and ready to be written.
0: No Function 1: Ready for data to be written to the port. The transmit FIFO is
FIFO Init (Bit 14) not full.
The FIFO Init bit initializes the FIFO and clear the FIFO Error 0: Not ready for data to be written to the port
Status bit. This bit is self-clearing. Receive Data Ready (Bit 8)
1: FIFO Init Enable The Receive Data Ready bit is a read-only bit that indicates if the
0: No Function receive port has data ready.
Byte Mode (Bit 13) 1: Receive port has data ready to read
The Byte Mode bit selects between PIO (byte mode) and DMA 0: Receive port does not have data ready
(block mode) operation. Transmit Empty (Bit 7)
1: Set PIO (byte mode) operation The Transmit Empty bit is a read-only bit that indicates if the
0: Set DMA (block mode) operation transmit FIFO is empty.
The Full Duplex bit selects between full-duplex and half-duplex 0: Transmit FIFO is not empty
operation. Receive Full (Bit 6)
1: Enable full duplex. Full duplex is not allowed and will not set The Receive Full bit is a read-only bit that indicates if the receive
if the 3Wire Enable bit of the SPI Configuration register is set to FIFO is full.
‘1’
1: Receive FIFO is full
0: Enable half-duplex operation
0: Receive FIFO is not full
SS Manual (Bit 11)
Transmit Bit Length (Bits [5:3])
The SS Manual bit activates or deactivates SS if the SS Delay
Select field of the SPI Control register is all zeros and is The Transmit Bit Length field controls whether a full byte or
configured as master interface. This field only applies to master partial byte is to be transmitted. If Transmit Bit Length is ‘000’, a
mode. full byte is transmitted. If Transmit Bit Length is ‘001’ to ‘111’, the
value indicates the number of bits that will be transmitted.
1: Activate SS, master drives SS line asserted LOW
0: Deactivate SS, master drives SS line deasserted HIGH
Bit # 7 6 5 4 3 2 1 0
...Reserved Receive Transmit Transfer
Field Interrupt Enable Interrupt Enable Interrupt Enable
Read/Write - - - - - R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 15 14 13 12 11 10 9 8
Field Reserved
Read/Write - - - - - - - -
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
FIFO Error Reserved Receive Transmit Transfer
Field Flag Interrupt Flag Interrupt Flag Interrupt Flag
Read/Write R - - - - R R R
Default 0 0 0 0 0 0 0 0
Register Description The Receive Interrupt Flag is a read only bit that indicates if a
The SPI Status register is a read only register that provides byte mode receive interrupt has triggered.
status for the SPI port. 1: Indicates a byte mode receive interrupt has triggered
0: Indicates a byte mode receive interrupt has not triggered
FIFO Error Flag (Bit 7)
The FIFO Error Flag bit is a read only bit that indicates if a FIFO Transmit Interrupt Flag (Bit 1)
error occurred. When this bit is set to ‘1’ and the Transmit Empty The Transmit Interrupt Flag is a read only bit that indicates a byte
bit of the SPI Control register is set to ‘1’, then a Tx FIFO mode transmit interrupt has triggered.
underflow has occurred. Similarly, when set with the Receive Full
1: Indicates a byte mode transmit interrupt has triggered
bit of the SPI Control register, a Rx FIFO overflow has
occured.This bit automatically clear when the SPI FIFO Init 0: Indicates a byte mode transmit interrupt has not triggered
Enable bit of the SPI Control register is set.
Transfer Interrupt Flag (Bit 0)
1: Indicates FIFO error
The Transfer Interrupt Flag is a read only bit that indicates a
0: Indicates no FIFO error block mode interrupt has triggered.
Receive Interrupt Flag (Bit 2) 1: Indicates a block mode interrupt has triggered
0: Indicates a block mode interrupt has not triggered
Bit # 15 14 13 12 11 10 9 8
Field Reserved
Read/Write - - - - - - - -
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Reserved Transmit Transfer
Field Interrupt Clear Interrupt Clear
Read/Write - - - - - - W W
Default 0 0 0 0 0 0 0 0
Bit # 15 14 13 12 11 10 9 8
CRC Mode CRC CRC Receive One in Zero in Reserved...
Field Enable Clear CRC CRC CRC
Read/Write R/W R/W R/W R/W R/W R R -
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Reserved
Read/Write - - - - - - - -
Default 0 0 0 0 0 0 0 0
Bit # 15 14 13 12 11 10 9 8
Field CRC...
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 1 1 1 1 1 1 1 1
Bit # 7 6 5 4 3 2 1 0
Field ...CRC
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 1 1 1 1 1 1 1 1
Register Description
The SPI CRC Value register contains the CRC value.
Bit # 15 14 13 12 11 10 9 8
Field Reserved
Read/Write - - - - - - - -
Default X X X X X X X X
Bit # 7 6 5 4 3 2 1 0
Field Data
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default X X X X X X X X
Register Description
The SPI Data register contains data received on the SPI port when read. Reading it empties the eight byte receive FIFO in PIO byte
mode. This receive data is valid when the receive bit of the SPI Interrupt Value is set to ‘1’ (RxIntVal triggers) or the Receive Data
Ready bit of the SPI Control register is set to ‘1’. Writing to this register in PIO byte mode will initiate a transfer of data, the number of
bits defined by Transmit Bit Length field in the SPI Control register.
Reserved
All reserved bits must be written as ‘0’.
Bit # 15 14 13 12 11 10 9 8
Field Address...
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Address
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The SPI Transmit Address register is used as the base address for the SPI transmit DMA.
Bit # 15 14 13 12 11 10 9 8
Field Reserved Count...
Read/Write - - - - - R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Count
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The SPI Transmit Count register designates the block byte length for the SPI transmit DMA transfer.
Reserved
All reserved bits must be written as ‘0’.
Bit # 7 6 5 4 3 2 1 0
Field ...Address
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The SPI Receive Address register is issued as the base address for the SPI Receive DMA.
Bit # 15 14 13 12 11 10 9 8
Field Reserved Count...
Read/Write - - - - - R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Count
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The SPI Receive Count register designates the block byte length for the SPI receive DMA transfer.
Reserved
All reserved bits must be written as ‘0’.
UART Registers
There are three registers dedicated to UART operation. Each of these registers is covered in this section and summarized in Table 36.
Table 36. UART Registers
Register Name Address R/W
UART Control Register 0xC0E0 R/W
UART Status Register 0xC0E2 R
UART Data Register 0xC0E4 R/W
Bit # 15 14 13 12 11 10 9 8
Field Reserved...
Read/Write - - - - - - - -
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
...Reserved Scale Baud UART
Field Select Select Enable
Read/Write - - - R/W R/W R/W R/W R/W
Default 0 0 0 0 0 1 1 1
Reserved
All reserved bits must be written as ‘0’.
Bit # 15 14 13 12 11 10 9 8
Field Reserved...
Read/Write - - - - - - - -
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field ...Reserved Receive Full Transmit Full
Read/Write - - - - - - R R
Default 0 0 0 0 0 0 0 0
Register Description
The UART Status register is a read-only register that indicates the status of the UART buffer.
Receive Full (Bit 1) Transmit Full (Bit 0)
The Receive Full bit indicates whether the receive buffer is full. The Transmit Full bit indicates whether the transmit buffer is full.
It can be programmed to interrupt the CPU as interrupt #5 when It can be programmed to interrupt the CPU as interrupt #4 when
the buffer is full. This can be done though the UART bit of the the buffer is empty. This can be done though the UART bit of the
Interrupt Enable register (0xC00E). This bit will automatically be Interrupt Enable register (0xC00E). This bit will automatically be
cleared when data is read from the UART Data register. set to ‘1’ after data is written by EZ-Host to the UART Data
1: Receive buffer full register (to be transmitted). This bit will automatically be cleared
to ‘0’ after the data is transmitted.
0: Receive buffer empty
1: Transmit buffer full (transmit busy)
0: Transmit buffer is empty and ready for a new byte of data
UART Data Register [0xC0E4] [R/W]
Bit # 15 14 13 12 11 10 9 8
Field Reserved
Read/Write - - - - - - - -
Default 0 0 0 0 0 0 0 0
Bit # 7 6 5 4 3 2 1 0
Field Data
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default 0 0 0 0 0 0 0 0
Register Description
The UART Data register contains data to be transmitted or received from the UART port. Data written to this register will start a data
transmission and also causes the UART Transmit Empty Flag of the UART Status register to set. When data received on the UART
port is read from this register, the UART Receive Full Flag of the UART Status register will be cleared.
Reserved
All reserved bits must be written as ‘0’.
Pin Diagram
The following describes the CY7C67200 48-pin FBGA.
A1 A2 A3 A4 A5 A6
GND GPIO1/D1 GPIO3/D3 VCC nRESET Reserved
B1 B2 B3 B4 B5 B6
AGND GPIO0/D0 GPIO4/D4 GPIO6/D6/RX GPIO7/D7/TX GND
C1 C2 C3 C4 C5 C6
G1 G2 G3 G4 G5 G6
AVCC XTALOUT XTALIN GPIO23/nRD/ GPIO21/nCS/ GND
nWAIT nRESET
H1 H2 H3 H4 H5 H6
GND VCC GPIO31/SCL GPIO24/INT/ GPIO22/nWR GPIO20/A1
IRQ0
Pin Descriptions
Table 38. Pin Descriptions
Pin Name Type Description
H3 GPIO31/SCK IO GPIO31: General Purpose IO
SCK: I2C EEPROM SCK
F3 GPIO30/SDA IO GPIO30: General Purpose IO
SDA: I2C EEPROM SDA
F4 GPIO29/OTGID IO GPIO29: General Purpose IO
OTGID: Input for OTG ID pin. When used as OTGID, this pin must be
tied high through an external pull-up resistor. Assuming VCC = 3.0 V,
a 10K to 40K resistor must be used.
H4 GPIO24/INT/IRQ0 [11] IO GPIO24: General Purpose IO
INT: HPI INT
IRQ0: Interrupt Request 0. See Register 0xC006. This pin is also one
of two possible GPIO wakeup sources.
G4 GPIO23/nRD IO GPIO23: General Purpose IO
nRD: HPI nRD
Note
11. Errata: Part does not service USB ISRs when GPIO24 pin (also labeled as HPI_INT and IORDY) is low and any IDE register is read. For more information, see
the Errata on page 84.
Note
12. The on-chip voltage booster circuit boosts BoostVCC to provide a nominal 3.3 V VCC supply.
DC Characteristics
Table 40. DC Characteristics[13]
Parameter Description Conditions Min. Typ. Max. Unit
VCC, AVCC Supply Voltage 3.0 3.3 3.6 V
BoosVCC Supply Voltage 2.7 – 3.6 V
VIH Input HIGH Voltage 2.0 – 5.5 V
VIL Input LOW Voltage – – 0.8 V
II Input Leakage Current 0< VIN < VCC –10.0 – +10.0 A
VOH Output Voltage HIGH IOUT = 4 mA 2.4 – – V
VOL Output LOW Voltage IOUT = –4 mA – – 0.4 V
IOH Output Current HIGH – – 4 mA
IOL Output Current LOW – – 4 mA
CIN Input Pin Capacitance Except D+/D– – – 10 pF
D+/D– – – 15 pF
VHYS Hysteresis on nReset Pin 250 – – mV
ICC[14, 15] Supply Current 2 transceivers powered – 80 100 mA
ICCB [14, 15]
Supply Current with Booster Enabled 2 transceivers powered – 135 180 mA
ISLEEP Sleep Current USB Peripheral: includes 1.5K – 210 500 A
internal pull up
Without 1.5K internal pull up – 5 30 A
ISLEEPB Sleep Current with Booster Enabled USB Peripheral: includes 1.5K – 210 500 A
internal pull up
Without 1.5K internal pull up – 5 30 A
Notes
13. All tests were conducted with Charge pump off.
14. ICC and ICCB values are the same regardless of USB host or peripheral configuration.
15. There is no appreciable difference in ICC and ICCB values when only one transceiver is powered.
USB Transceiver
USB 2.0-compatible in full- and low-speed modes.
This product was tested as compliant to the USB-IF specification under the test identification number (TID) of 100390449 and is listed
on the USB-IF’s integrators list.
AC Timing Characteristics
Reset Timing
tRESET
nRESET
tIOACT
nRD or nWRL or nWRH
Reset Timing
Note
16. Clock is 12 MHz nominal.
Clock Timing
tCLK
tLOW
XTALIN
Clock Timing
Parameter Description Min. Typ. Max. Unit
fCLK Clock Frequency – 12.0 – MHz
vXINH[17] Clock Input High 1.5 3.0 3.6 V
(XTALOUT left floating)
tCLK Clock Period 83.17 83.33 83.5 ns
tHIGH Clock High Time 36 – 44 ns
tLOW Clock Low Time 36 – 44 ns
tRISE Clock Rise Time – – 5.0 ns
tFALL Clock Fall Time – – 5.0 ns
Duty Cycle 45 – 55 %
tLOW tHIGH
tR tF
SCL
tSU.DAT tBUF
tSU.STA tHD.DAT tSU.STO
tHD.STA
SDA IN
tAA tDH
SDA OUT
ADDR [1:0]
tCSSU tCSH
nCS
nWR
nRD
Dout [15:0]
tDSU tWDH
Note
18. T = system clock period = 1/48 MHz.
ADDR [1:0]
tCSSU tCSH
nCS
nWR tRDH
nRD
Din [15:0]
tACC tRDH
qt_clk
CPU_wr
BT BT
TxRdy flag
HSS_TxD start bit bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 stop bit start bit
qt_clk, CPU_A, CPUHSS_cs, CPU_wr are internal signals, included in the diagram to illustrate relationship between CPU operations
and HSS port operations.
Bit 0 is LSB of data byte. Data bits are HIGH true: HSS_TxD HIGH = data bit value ‘1’.
BT = bit time = 1/baud rate.
BT
HSS_TxD
t GAP
BLOCK mode transmit timing is similar to BYTE mode, except the STOP bit time is controlled by the HSS_GAP value.
The BLOCK mode STOP bit time, tGAP = (HSS_GAP – 9) BT, where BT is the bit time, and HSS_GAP is the content of the HSS
Transmit Gap register 90xC074].
The default tGAP is 2 BT.
BT = bit time = 1/baud rate.
BT +/- 5%
received byte added to
BT +/- 5% receive FIFO during the final data bit time
HSS_RxD start bit bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 stop bit start bit
10 BT +/- 5%
HSS_RTS
HSS_CTS
HSS_TxD
Start of transmission delayed until HSS_CTS goes high Start of transmission not delayed by HSS_CTS
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
EP7 EP6 EP5 EP4 EP3 EP2 EP1 EP0 0000 0000
Interrupt Interrupt Interrupt Interrupt Interrupt Interrupt Interrupt Interrupt
Enable Enable Enable Enable Enable Enable Enable Enable
R/W 0xC08E Device n Address Reserved... 0000 0000
0xC0AE
...Reserved Address 0000 0000
Ordering Information
Table 43. Ordering Information
Ordering Code Package Type Pb-Free Temperature Range
CY7C67200-48BAXI 48-pin FBGA X –40 to 85 °C
CY7C67200-48BAXIT 48-pin FBGA, Tape and reel X –40 to 85 °C
CY3663 Development Kit
Package Type:
BAX: Ball Grid Array Pb-free
48-pin Count
Part number
Package Diagram
Figure 78. 48-ball FBGA (7.00 mm × 7.00 mm × 1.2 mm) BA48 Package Outline
51-85096 *J
Errata
This section describes the errata for the CY7C67200. Details include errata trigger conditions, scope of impact, available workaround,
and silicon revision applicability.
Contact your local Cypress Sales Representative if you have questions.
Silicon
Items CY7C67200 Fix Status
Revision
<xref>1. HPI Write to SIE Registers X A No fix is currently planned for future silicon
versions. Use workaround.
<xref>2. IDE Register Read When GPIO24 Pin is Low X A No fix is currently planned for future silicon
versions. Use workaround.
<xref>3. UART Does Not Recognize Framing Errors X A No fix is currently planned for future silicon
versions. Use workaround.
<xref>4. UART Does Not Override GPIO Control Regis- X A No fix is currently planned for future silicon
ter versions. Use workaround.
<xref>5. VBUS Interrupt (VBUS Valid) Requires De- X A No fix is currently planned for future silicon
bouncing versions. Use workaround.
<xref>6. Coupled SIE Interrupt Enable Bits X A No fix is currently planned for future silicon
versions. Use workaround.
<xref>7. Un-Initialized SIExmsg Registers X A No fix is currently planned for future silicon
versions. Use workaround.
<xref>8. BIOS USB Peripheral Mode: Descriptor Length X A No fix is currently planned for future silicon
versions. Use workaround.
<xref>9. Peripheral Short Packet Issue X A Will be fixed in future silicon revision. Use
workaround.
<xref>10. Data Toggle Corruption Issue X A Will be fixed in future silicon revision. Use
workaround.
#undef FIX_USB2_EP1
#undef FIX_USB2_EP2
#undef FIX_USB2_EP3
#undef FIX_USB2_EP4
#undef FIX_USB2_EP5
#undef FIX_USB2_EP6
#undef FIX_USB2_EP7
3. Add the new susb1.s to the included assembly source files in the make file.
For example: ASM_SRC := startup.s isrs.s susb1.s
4. Add usb_init somewhere in the startup code. This will likely be in fwxmain.c as demonstrated below:
void fwx_program_init(void)
{
void usb_init(); /* define the prototype */
usb_init();
fwx_init(); /* Initialize everything in the base framework. */
}
■ Problem Definition
When a SIE is configured as a peripheral, data toggle corruption as specified in the USB 2.0 spec, section 8.6.4, does not work as
specified.
■ Parameters Affected
SIEx Endpoint x Interrupt (Interrupt 32-47).
■ Trigger Conditions
This issue is seen when a SIE is configured as a peripheral and the host sends an incorrect data toggle. According to the USB
specification, when an incorrect data toggle is seen from the host the peripheral should throw away the data but increment the data
toggle bit to re-synchronize the data toggle bits. In the current ROM BIOS the SIEx Endpoint x Interrupt will ignore the data toggle
error and accept the data.
■ Scope of Impact
All peripheral functions are susceptible to this as it is a normal occurrence with USB traffic.
■ Workaround
To fix this problem the SIEx Endpoint x Interrupt must be replaced for any endpoint that is configured as an OUT endpoint.
1. Acquire the file called susb1.s from Cypress Support or by downloading a newer version of the frameworks that has this
included.
2. Modify fwxcfg.h in your project to have the following flags and define/undef the fix for the endpoints you are using:
#define FIX_USB1_EP1
#define FIX_USB1_EP2
#undef FIX_USB1_EP3
#undef FIX_USB1_EP4
#undef FIX_USB1_EP5
#undef FIX_USB1_EP6
#undef FIX_USB1_EP7
#undef FIX_USB2_EP1
#undef FIX_USB2_EP2
#undef FIX_USB2_EP3
#undef FIX_USB2_EP4
#undef FIX_USB2_EP5
#undef FIX_USB2_EP6
#undef FIX_USB2_EP7
3. Add the new susb1.s to the included assembly source files in the make file.
For example: ASM_SRC := startup.s isrs.s susb1.s
4. Add usb_init somewhere in the startup code. This will likely be in fwxmain.c as demonstrated below:
void fwx_program_init(void)
{
void usb_init(); /* define the prototype */
usb_init();
Products PSoC®Solutions
ARM® Cortex® Microcontrollers cypress.com/arm PSoC 1 | PSoC 3 | PSoC 4 | PSoC 5LP
Automotive cypress.com/automotive
Cypress Developer Community
Clocks & Buffers cypress.com/clocks
Forums | Projects | Video | Blogs | Training | Components
Interface cypress.com/interface
Internet of Things cypress.com/iot Technical Support
Lighting & Power Control cypress.com/powerpsoc cypress.com/support
Memory cypress.com/memory
PSoC cypress.com/psoc
Touch Sensing cypress.com/touch
USB Controllers cypress.com/usb
Wireless/RF cypress.com/wireless
© Cypress Semiconductor Corporation, 2002-2016. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including Spansion LLC ("Cypress"). This document,
including any software or firmware included or referenced in this document ("Software"), is owned by Cypress under the intellectual property laws and treaties of the United States and other countries
worldwide. Cypress reserves all rights under such laws and treaties and does not, except as specifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other
intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with Cypress governing the use of the Software, then Cypress
hereby grants you a personal, non-exclusive, nontransferable license (without the right to sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code form, to
modify and reproduce the Software solely for use with Cypress hardware products, only internally within your organization, and (b) to distribute the Software in binary code form externally to end users
(either directly or indirectly through resellers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of Cypress's patents that are infringed by the Software (as
provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation
of the Software is prohibited.
TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE
OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. To the extent
permitted by applicable law, Cypress reserves the right to make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any
product or circuit described in this document. Any information provided in this document, including any sample design information or programming code, is provided only for reference purposes. It is
the responsibility of the user of this document to properly design, program, and test the functionality and safety of any application made of this information and any resulting product. Cypress products
are not designed, intended, or authorized for use as critical components in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, life-support devices or
systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or hazardous substances management, or other uses where the failure of the
device or system could cause personal injury, death, or property damage ("Unintended Uses"). A critical component is any component of a device or system whose failure to perform can be reasonably
expected to cause the failure of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim,
damage, or other liability arising from or related to all Unintended Uses of Cypress products. You shall indemnify and hold Cypress harmless from and against all claims, costs, damages, and other
liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of Cypress products.
Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB, F-RAM, and Traveo are trademarks or registered trademarks of Cypress in
the United States and other countries. For a more complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respective owners.