Peripheral Controller with Automotive AEC Grade Support
EZ-Host Features
Timer 0Timer 1
Watchdog
Control
4Kx16
ROM BIOS
8Kx16
RAM
CY16
16-bit RISC CORE
External MEM I/F
(SRAM/ROM)
SIE1
USB-A
USB-B
SIE2
USB-A
USB-B
OTG
Host/
Peripheral
USB Ports
D+,D-
D+,D-
D+,D-
D+,D-
UART I/F
PWM
HSS I/F
I2C
EEPROM I/F
HPI I/F
IDE I/F
SPI I/F
nRESET
A[15:0]
D[15:0] CTRL[9:0]
CY7C67300
GPIO [31:0]
PLL
X1
X2
GPIO
SHARED INPUT/OUTPUT PINS
SHARED INPUT/OUTPUT PINS
Vbus, ID
Mobile
Power
Booster
CY7C67300 Block Diagram
■ Single chip programmable USB dual-role (Host/Peripheral)
controller with two configurable Serial Interface Engines (SIEs)
and four USB ports
■ Support for USB On-The-Go (OTG) protocol
■ On-chip 48 MHz 16-bit processor with dynamically switchable
clock speed
■ Configurable IO block supporting a variety of IO options or up
to 32 bits of General Purpose IO (GPIO)
■ 4K x 16 internal masked ROM containing built in BIOS that
supports a communication ready state with access to I
2
C™
EEPROM Interface, external ROM, UART, or USB
■ 8K x 16 internal RAM for code and data buffering
■ Extended memory interface port for external SRAM and ROM
■ 16-bit parallel Host Port Interface (HPI) with a DMA/mailbox
data path for an external processor to directly access all of the
on-chip memory and control on-chip SIEs
■ Fast serial port supports from 9600 baud to 2.0M baud
■ SPI support in both master and slave
■ On-chip 16-bit DMA/mailbox data path interface
■ Supports 12 MHz external crystal or clock
■ 3.3V operation
■ Automotive AEC grade option (–40°C to 85°C)
■ Package option—100-pin TQFP
Typical Applications
EZ-Host is a very powerful and flexible dual rol e USB co ntroller
that supports a wide variety of applications. It is primarily
intended to enable host capability in applications such as:
■ Set top boxes
■ Printers
■ KVM switches
■ Kiosks
■ Automotive applications
■ Wireless access points
Cypress Semiconductor Corporation•198 Champion Court•San Jose, CA 95134-1709•408-943-2600
Document #: 38-08015 Rev. *J Revised July 28, 2008
[+] Feedback
CY7C67300
Introduction
Note
1. Default interface location.
EZ-Host™ (CY7C67300) is Cypress Semiconductor’s first
full-speed, low cost multiport host/peripheral controller. EZ-Host
is designed to easily interface to most high performance CPUs
to add USB host functionality. EZ-Host has its own 16-bit RISC
processor to act as a coprocessor or operate in standalone
mode. EZ-Host also has a programmable IO interface block
allowing a wide range of interface options.
Functional Overview
An overview of the processor core components are presented in
this section.
Processor Core
EZ-Host has a general purpose 16-bit embedded RISC
processor that runs at 48 MHz.
Clocking
EZ-Host requires a 12 MHz source for clocking. Either an
external crystal or TTL level oscillator may be used. EZ-Host has
an internal PLL that produces a 48 MHz internal clock from the
12 MHz source.
Memory
EZ-Host has a built in 4K × 16 masked ROM and an 8K × 16
internal RAM. The masked ROM contains the EZ-Host BIOS.
The internal RAM can be used for program code or data.
EZ-Host provides 128 interrupt vectors. The first 48 vectors are
hardware interrupts and the following 80 vectors are software
interrupts.
General Timers and Watchdog Timer
EZ-Host has two built in programmable timers and a Watchdog
timer. All three timers can generate an interrupt to the EZ-Host.
Power Management
EZ-Host has one main power saving mode, Sleep. Sleep mode
pauses all operations and provides the lowest power state.
Interface Descriptions
EZ-Host has a wide variety of interface options for connectivity.
With several interface options available, EZ-Host can act as a
seamless data transport between many different types of
devices.
See Table 1 and T able 2 on page 3 to understand how the inter-
faces share pins and which can coexist. Note that some interfaces have more then one possible port location selectable
through the GPIO control register [0xC006]. General guidelines
for interfaces are as follows:
■ HPI and IDE interfaces are mutually exclusive.
■ If 16-bit external memory is required, then HSS and SPI default
locations must be used.
2
■ I
C EEPROM and OTG do not conflict with any interfaces.
[1]
[1]
[1]
[1]
[1]
Document #: 38-08015 Rev. *JPage 2 of 99
[+] Feedback
CY7C67300
Table 1. Interface Options for GPIO Pins (continued)
Table 2. Interface Options for External Memory Bus Pin s
MEM PinsHPIIDEPWMHSSSPIUARTI2COTG
D15CTS
D14RTS
D13RXD
D12TXD
D11MOSI
D10SCK
D9nSSI
D8MISO
[2]
[2]
[2]
[2]
[2]
[2]
[2]
[2]
D[7:0]
A[18:0]
CONTROL
USB Interface
EZ-Host has two built in Host/Peripheral SIEs and four USB transceivers that meet the USB 2.0 specification requirements for full and
low speed (high speed is not supported). In Host mode, EZ-Host supports four downstream ports, each support control, interrupt, bulk,
and isochronous transfers. In Peripheral mode, EZ-Host supports one peripheral port wi th eight endpoints for each of the two SI Es.
Endpoint 0 is dedicated as the control endpoint and only supports control transfers. Endpoints 1 though 7 support interrupt, bulk (up
to 64 bytes/packet), or isochronous transfers (up to 1023 Bytes/packet size). EZ-Host also supports a combination of Host and
Peripheral ports simultaneously as shown in Table 3.
EZ-Host has one USB port that is compatible with the USB
On-The-Go supplement to the USB 2.0 specification. The USB
OTG port has a various hardware features to support Session
Request Protocol (SRP) and Host Negotiation Protocol (HNP).
OTG is only supported on USB PORT 1A.
OTG Features
■ Internal charge pump to supply and control VBUS
■ VBUS valid status (above 4.4V)
■ VBUS status for 2.4V< VBUS <0.8V
■ ID pin status
■ Switchable 2K ohm internal discharge resistor on VBUS
■ Switchable 500 ohm internal pull up resistor on VBUS
■ Individually switchable internal pull up and pull down resistors
PAGE 1 Register Active Range = 8000h to 9FFFh
PAGE 2 Register Active Range = A000h to BFFFh
Note:
nXMEMSEL Pin Active Range = 8000h to BFFFh
EZ-Host provides a robust interface to a wide variety of external
memory arrays. All available external memory array locations
can contain either code or data. The CY16 RISC processor
directly addresses a flat memory space from 0x0000 to 0xFFFF.
External Memory Interface Features
■ Supports 8-bit or 16-bit SRAM or ROM
■ SRAM or ROM can be used for code or data space
■ Direct addressing of SRAM or ROM
■ Two external memory mapped page registers
External Memory Access Strobes
Access to external memory is sampled asynchronously on the
rising edge of strobes with a minimum of one wait state cycle. Up
to seven wait state cycles may be inserted for external memory
access. Each additional wait state cycle stretches the external
memory access time by 21 ns (you must be running in internal
memory when changing wait states). An external memory device
with 12 ns access time is necessary to support 48 MHz code
execution.
Page Registers
EZ-Host allows extended data or program code to be stored in
external SRAM, or ROM. The total size of extended memory can
be up to 512K bytes. The CY16 processor can access extended
memory via two address regions of 0x8000-0x9FFF and
0xA000-0xBFFF. The page register 0xC018 can be used to
control the address region 0x8000-0x9FFF and the page register
0xC01A controls the address region of 0xA000-0xBFFF.
Figure 1 illustrates that when the nXMEMSEL pin is asserted the
upper CPU address pins are driven by the contents of the Page
x registers.
Figure 1. Page n Registers External Address Pins Logic
Merge Mode
Merge modes enabled through the External Memory Control
register [0xC03A] allow combining of external memory regions in
accordance with the following:
■ nXMEMSEL is active from 0x8000 to 0xBFFF
■ nXRAMSEL is active from 0x4000 to 0x7FFF when RAM Merge
is disabled; nXRAMSEL is active from 0x4000 to 0xBFFF when
RAM Merge is enabled
■ nXROMSEL is active from 0xC100 to 0xDFFF when ROM
Merge is disabled; nXROMSEL is active from 0x8000 to
0xDFFF (excluding the 0xC000 to 0xC0FF area) when ROM
Merge is enabled
Program Memory Hole Description
Code residing in the 0xC000-0xC0FF address space is not
accessible by the CPU.
DMA to External Memory Prohibited
EZ-Host supports an internal DMA engine to rapidly move data
between different functional blocks within the chip. This DMA
engine is used for SIE1, SIE2, HPI, SPI, HSS, and IDE but it can
only transfer data between the specified block and internal RAM
or ROM. Setting up the DMA engine to transfer to or from an
external memory space might result in internal RAM data
corruption because the hardware (for example,
HSS/HPI/SIE1/SIE2/IDE) does not explicitly check the address
range. For example, setting up a DMA transfer to external
address 0x8000 might result in a DMA transfer into address
0x0000.
External Memory Related Resource Considerations:
■ By default A[18:15] are not available for general addressing
and are driven high on power up. The Upper Address Enable
register must be written appropriately to enable A[18:15] for
general addressing purposes.
■ 47K ohm external pull up on pin A15 for 12 MHz crystal
operation.
■ During the 3 ms BIOS boot procedure the CPU external
memory bus is active.
■ ROM boot load value 0xC3B6 located at 0xC100.
■ HPI, HSS, SPI, SIE1, SIE2, and IDE cannot DMA to external
memory arrays.
■ Page 1 banking is always enabled and is in effect from 0x8000
to 0x9FFF.
■ Page 2 banking is always enabled and is in effect from 0xA000
to 0xBFFF .
■ CPU memory bus strobes may wiggle when chip selects are
Figure 2 illustrates how to connect a 64k × 8 memory array
(SRAM/ROM) to the EZ-Host external memory interface.
Figure 2. Interfacing to 64k × 8 Memory Array
Figure 3 illustrates the interface for connecting a 16-bit ROM or
16-bit RAM to the EZ-Host external memory interface. In 16-bit
mode, up to 256K words of external ROM or RAM are supported.
Note that the address lines do not map directly.
Figure 3. Interfacing up to 256k × 16 for External Code/Data
Document #: 38-08015 Rev. *JPage 6 of 99
[+] Feedback
CY7C67300
Figure 4 illustrates the interface for connecting an 8-bit ROM or
EZ-Host
CY7C67300
External Memory Array
Up to 512k x8
A[18:0]
nWR
nRD
nXMEMSEL
A[18:0]
WE
OE
CE
D[7:0]D[7:0]
Up to 512k x 8 External Code/Data (Page Mode)
8-bit RAM to the EZ-Host external memory interface. In 8-bit
mode, up to 512K bytes of external ROM or RAM are supported.
Figure 4. Interfacing up to 512k × 8 for External Code/Data
General Purpose IO Interface (GPIO)
EZ-Host has up to 32 GPIO signals available. Several other
optional interfaces use GPIO pins as well and may reduce the
overall number of available GPIOs.
GPIO Description
All Inputs are sampled asynchronously with state changes
occurring at a rate of up to two 48 MHz clock cycles. GPIO pins
are latched directly into registers, a single flip-flop.
Unused Pin Descriptions
Ensure to tristate unused USB pins with the D+ line pulled high
through the internal pull up resistor and the D– line pu lled low
through the internal pull down resistor.
Configure unused GPIO pins as outputs so they are driven low.
UART Interface
EZ-Host has a built in UART interface. The UART interface
supports data rates from 900 to 115.2K baud. It can be used as
a development port or for other interface requirements. The
UART interface is exposed through GPIO pins.
UART Features
■ Supports baud rates of 900 to 115.2K
■ 8-N-1
UART Pins.
Table 7. UART Interface Pins
Pin NamePin Number
TX42
RX43
I2C EEPROM Interface
EZ-Host provides a master-only I2C interface for external serial
EEPROMs. The serial EEPROM can be used to store application
specific code and data. Use the I
of EEPROM, it is not a general I
2
C interface for loading code out
2
C interface. The I2C EEPROM
interface is a BIOS implementation and is exposed through
GPIO pins. Refer to the BIOS documentation for additional
details on this interface.
I2C EEPROM Features
■ Supports EEPROMs up to 64 KB (512K bit)
■ Auto-detection of EEPROM size
I2C EEPROM Pins
Table 8. I2C EEPROM Interface Pins
Pin NamePin NumberGPIO Number
SMALL EEPROM
SCK39GPIO31
SDA40GPIO30
LARGE EEPROM
SCK40GPIO30
SDA39GPIO31
Serial Peripheral Interface
EZ-Host provides a SPI interface for added connectivity. EZ-Host
may be configured as either an SPI master or SPI slave. The SPI
interface can be exposed through GPIO pins or the External
Memory port.
SPI Features
■ Master or slave mode operation
■ DMA block transfer and PIO byte transfer modes
■ Full duplex or half duplex data communication
■ 8-byte receive FIFO and 8-byte transmit FIFO
■ Selectable master SPI clock rates from 250 kHz to 12 MHz
■ Selectable master SPI clock phase and polarity
■ Slave SPI signaling synchronization and filtering
■ Slave SPI clock rates up to 2 MHz
■ Maskable interrupts for block and byte transfer modes
■ Individual bit transfer for non-byte aligned seria l communi-
cation in PIO mode
■ Programmable delay timing for the active/inactive master SPI
clock
■ Auto or manual control for master mode slave select signal
■ Complete access to internal memory
Document #: 38-08015 Rev. *JPage 7 of 99
[+] Feedback
CY7C67300
SPI Pins
The SPI port has a few different pin location options as shown in
Table 9. The port location is selectable via the GPIO control
register [0xC006].
Table 9. SPI Interface Pins
Pin NamePin Number
Default Location
nSSI56 or 65
SCK61
MOSI60
MISO66
Alternate Location
nSSI73
SCK72
MOSI71
MISO74
HSS Pins
The HSS port has a few different pin location options as shown
in Table 10. The port location is selectable via the GPIO control
register [0xC006].
Ta bl e 10. HSS Interface Pin s
Pin NamePin Number
Default Location
CTS44
RTS53
RXD54
TXD55
Alternate Location
CTS67
RTS68
RXD69
TXD70
High-Speed Serial Interface
EZ-Host provides an HSS interface. The HSS interface is a
programmable serial connection with baud rate from 9600 baud
to 2.0M baud. The HSS interface supports both byte and block
mode operations and also hardware and software handshaking.
Complete control of EZ-Host can be accomplished through this
interface via an extensible API and communication protocol. The
HSS interface can be exposed through GPIO pins or the External
Memory port.
HSS Features
■ 8 bits, no parity code
■ Programmable baud rate from 9600 baud to 2M baud
■ Selectable 1- or 2-stop bit on transmit
■ Programmable inter-character gap timing for Block Transmit
■ 8-byte receive FIFO
■ Glitch filter on receive
■ Block mode transfer directly to/from EZ-Host internal memory
(DMA transfer)
■ Selectable CTS/RTS hardware signal handshake protocol
■ Selectable XON/XOFF software handshake protocol
■ Programmable Receive interrupt, Block Transfer Done inter-
rupts
■ Complete access to internal memory
Programmable Pulse/PWM Interface
EZ-Host has four built in PWM output channels. Ea ch channel
provides a programmable timing generator sequence that can be
used to interface to various image sensors or other applications.
The PWM interface is exposed through GPIO pins.
Programmable Pulse/PWM Features
■ Four independent programmable waveform generators
■ Programmable predefined frequencies ranging from 5.90 KHz
to 48 MHz
■ Configurable polarity
■ Continuous and one-shot mode available
Programmable Pulse/PWM Pins.
Table 11. PWM Interface Pins
Pin NamePin Number
PWM344
PWM253
PWM154
PWM055
Document #: 38-08015 Rev. *JPage 8 of 99
[+] Feedback
CY7C67300
Host Port Interface
Notes
3. HPI_INT is for the Outgoing Mailbox interrupt.
4. HPI strobes are negative logic sampled on rising edge.
EZ-Host has an HPI interface. The HPI interface provides DMA
access to the EZ-Host internal memory by an external host, plus
a bidirectional mailbox register for supporting high level communication protocols. This port is designed to be the primary
high-speed connection to a host processor. Complete control of
EZ-Host can be accomplished through this interface via an
extensible API and communication protocol. Other than the
hardware communication protocols, a host processor has
identical control over EZ-Host whether connecting to the HPI o r
HSS port. The HPI interface is exposed through GPIO pins.
HPI Features
■ 16-bit data bus interface
■ 16 MB/s throughput
■ Auto-increment of address pointer for fast block mode transfers
■ Direct memory access (DMA) to internal memory
■ Bidirectional Mailbox register
■ Byte swapping
■ Complete access to internal memory
■ Complete control of SIEs through HPI
■ Dedicated HPI status register
HPI Pins
Table 12. HPI Interface Pins
Pin NamePin Number
INT46
nRD47
nWR48
nCS49
A150
A052
D1556
D1457
D1358
D1259
[3, 4]
Ta bl e 12. HPI Interface Pin s (continued)
[3, 4]
D1160
D1061
D965
D866
D786
D687
D589
D490
D391
D292
D193
D094
The two HPI address pins are used to address one of four
possible HPI port registers as shown in Table 13.
Table 13. HPI Addressing
HPI A[1:0]A1A0
HPI Data00
HPI Mailbox01
HPI Address10
HPI Status11
IDE Interface
EZ-Host has an IDE interface. The IDE interface supports PIO
mode 0-4 as specified in the Information Technology-AT
Attachment–4 with Packet Interface Extension (ATA/ATAPI-4)
Specification, T13/1153D Rev 18. There is no need for firmware
to use programmable wait states. The CPU read/write cycle is
automatically extended as needed for direct CPU to IDE
read/write accesses.
The EZ-Host IDE interface also has a BLOCK transfer mode that
allows EZ-Host to read/write large blocks of data to/from the IDE
data register and move it to/from the EZ-Host on-chip memory
directly without intervention of the CPU. The IDE interface is
exposed through GPIO pins. Table 14 on page 10 lists the
achieved throughput for maximum block mode data transfer rate
(with IDE_IORDY true) for the various IDE PIO modes.
Document #: 38-08015 Rev. *JPage 9 of 99
[+] Feedback
CY7C67300
Table 14. IDE Throughput
VBUS
D1
D2
C1
C2
CSWITCHA
CSWITCHB
OTGVBUS
CY7C67300
Mode
ATA/ATAPI-4
Min Cycle Time
Actual
Min Cycle Time
ATA/ATPI-4
Max Transfer Rate
PIO Mode 0600 ns30T = 625 ns3.33 MB/s3.2 MB/s
PIO Mode 1383 ns20T = 416.7 ns5.22 MB/s4.8 MB/s
PIO Mode 224013T = 270.8 ns8.33 MB/s7.38 MB/s
PIO Mode 3180 ns10T = 208.3 ns11.11 MB/s9.6 MB/s
PIO Mode 4120 ns8T = 166.7 ns16.67 MB/s12.0 MB/s
T = System clock period = 1/48 MHz.
Actual
Max Transfer Rate
IDE Features
■ Programmable IO mode 0–4
■ Block mode transfers
■ Direct memory access to/from internal memory through the IDE
data register
Charge Pump Interface
VBUS for the USB OTG port can be produced by EZ-Host using
its built in charge pump and some external components. Ensure
the circuit connections look similar to the following diagram.
Figure 5. Charge Pump
IDE Pins
Table 15. IDE Interface Pins
Pin NamePin Number
IORDY46
IOR47
IOW48
CS150
CS052
A253
A154
A055
D1556
D1457
D1358
D1259
Component details:
■ D1 and D2: Schottky diodes with a current rating greater than
60 mA
■ C1: Ceramic capacitor with a capacitance of 0.1 µF
■ C2: Make capacitor value no more that 6.5 µF since that is the
maximum capacitance allowed by the USB OTG specifications
for a dual role device. The minimum value of C2 is 1 µF. There
are no restrictions on the type of capacitor for C2.
If the VBUS charge pump circuit is not to be used, CSWITCHA,
CSWITCHB, and OTGVBUS can be left unconnected.
D1160
D1061
D965
D866
D786
D687
D589
D490
D391
D292
Charge Pump Features
■ Meets OTG Supplement Requirements, see Table 134, DC
Characteristics: Charge Pump on page 84 for details.
Charge Pump Pins
Table 16. Charge Pump Interface Pins
Pin NamePin Number
OTGVBUS1 1
CSwitchA13
CSwitchB12
D193
D094
Document #: 38-08015 Rev. *JPage 10 of 99
[+] Feedback
CY7C67300
Booster Interface
BOOSTVcc
VSWITCH
VCC
AVCC
C1
D1
L1
3.3V
2.7V to 3.6V
Power Supply
BOOSTVcc
VSWITCH
VCC
AVCC
3.0V to 3.6V
Power Supply
Y1
C1 = 22 pF
C2 = 22 pF
CY7C67300
XTALIN
XTALOUT
12MHz
Parallel Resonant
Fundamental Mode
500uW
20-33pf ±5%
EZ-Host has an on chip power booster circuit for use with power
supplies that range between 2.7V and 3.6 V. The booster circuit
boosts the power to 3.3V nominal to supply power for the entire
chip. The booster circuit requires an external inductor, diode, and
capacitor. During power down mode, the circuit is disabled to
save power. Figure 6 shows how to connect the booster circuit.
Booster Pins
Table 17. Charge Pump Interface Pins
Pin NamePin Number
BOOSTVcc16
VSWITCH14
Figure 6. Power Supply Connection With Booster
Component details:
■ L1: Inductor with inductance of 10 µH and a current rating of at
least 250 mA
■ D1: Schottky diode with a current rating of at least 250 mA
■ C1: Tant alum or ceramic capacitor with a capacitance of at least
2.2 µF
Figure 7 shows how to connect the power supply when the
booster circuit is not being used.
Crystal Interface
The recommended crystal circuit to be used with EZ-Host is
shown in Figure 8 If an oscillator is used instead of a crystal
circuit, connect it to XTALIN and leave XTALOUT unconnected.
For further information about the crystal requirements, see Table
132, Crystal Requirements on page 83.
Noted that the CLKSEL pin (pin 38) is sampled after reset to
determine what crystal or clock source frequency is used. For
normal operation, 12 MHz is required so the CLKSEL pin must
have a 47K ohm pull up resistor to V
Figure 8. Crystal Interface
CC.
.
Figure 7. Power Supply Connection Without Booster
Crystal Pins
Table 18. Crystal Pins
Pin NamePin Number
XT ALIN29
XT ALOUT28
Document #: 38-08015 Rev. *JPage 11 of 99
[+] Feedback
CY7C67300
Boot Configuration Interface
EZ-Host can boot into any one of four modes. The mode it boots
into is determined by the TTL voltage level of GPIO[31:30] at the
time nRESET is deasserted. Table 19 shows the different boot
pin combinations possible. After a reset pin event occurs, the
BIOS bootup procedure executes for up to 3 ms. GPIO[31:30]
are sampled by the BIOS during bootup only. Af ter bootup these
pins are available to the application as GPIOs.
Table 19. Boot Configuration Interface
GPIO31
(Pin 39)
00Host Port Interface (HPI)
01High-Speed Serial (HSS)
10Serial Peripheral Interface (SPI,
11I
Ensure that GPIO[31:30] is pulled high or low as needed using
resistors tied to V
ohms and 15K ohms. Do not tie GPIO[31:30] directly to V
GND. Note that in standalone mode, the pull ups on those two
pins are used for the serial I2C EEPROM (if implemented). Make
sure that the resistors used for these pull ups conform to the
serial EEPROM manufacturer's requirements.
If any mode other then standalone is chosen, EZ-Host is in
coprocessor mode. The device powers up with the appropria te
communication interface enabled according to i ts boot p ins and
waits idle until a coprocessor communicates with it. See the
BIOS documentation for greater detail of the boot process.
GPIO30
(Pin 40)
CC
Boot Mode
slave mode)
2
C EEPROM (Standalone Mode)
or GND with resistor values between 5K
or
CC
Operational Modes
The operational modes are discussed in the following sections.
Coprocessor Mode
EZ-Host can act as a coprocessor to an external host processor.
In this mode, an external host processor drives EZ-Host and is
the main processor rather then EZ-Host’s own 16-bit internal
CPU. An external host processor may interface to EZ-Host
through one of the following three interfaces in coprocessor
mode:
■ HPI mode, a 16 bit parallel interface with up to 16 MB transfer
rate
■ HSS mode, a serial interface with up to 2M baud transfer rate
■ SPI mode, a serial interface with up to 2 Mb/s transfer rate
At bootup GPIO[31:30] determine which of these three interfaces
are used for coprocessor mode. See Table 19 for details.
Bootloading begins from the selected interface after POR + 3 ms
of BIOS bootup.
Standalone Mode
In standalone mode, there is no external processor connected to
EZ-Host. Instead, EZ-Host’s own internal 16-bit CPU is the main
processor and firmware is typically downloaded from an
EEPROM. Optionally, firmware may also be downloaded via
USB. See Table 19 for booting into standalone mode.
After booting into standalone mode (GPIO[31:30] = ‘11’), the
following pins are affected:
■ GPIO[31:30] are configured as output pins to examine the
EEPROM contents
■ GPIO[28:27] are enabled for debug UART mode
■ GPIO[29] is configured for as OTGID for OTG applications on
PORT1A
❐ If OTGID is logic 1 then PORT1A (OTG) is configured as a
USB peripheral
❐ If OTGID is logic 0 then PORT1A (OTG) is configured as a
USB host
■ Ports 1B, 2A, and 2B default as USB peripheral ports
■ All other pins remain INPUT pins.
Document #: 38-08015 Rev. *JPage 12 of 99
[+] Feedback
CY7C67300
Minimum Hardware Requirements for Standalone Mode – Peripheral Only
EZ-Host
CY7C67300
GPIO[30]
GPIO[31]
SCL*
SDA*
10k
Bootstrap Options
Bootloading Firmware
*Bootloading begins after POR + 3ms BIOS bootup
Vcc
10k
Vcc
A2
GND
A0
A1
SCL
SDA
VCC
WP
VCC
Up to 64k x8
EEPROM
*GPIO[31:30] 31 30
Up to 2k x8 SCL SDA
>2k x8 to 64k x8 SDA SCL
Int. 16k x8
Code / Data
XOUT
XIN
12MHz
22pf
22pf
nRESET
Reset
Logic
*
Parallel Resonant
Fundamental Mode
500uW
20-33pf ±5%
VCC, AVCC,
BoostVCC
VReg
DMinus
DPlus
Standard-B
or Mini-B
D+
VBus
GND
D-
SHIELD
Reserved
GND, AGND,
BoostGND
Pin 38
VCC
47Kohm
Figure 9. Minimum Standalone Hardware Configuration – Peripheral Only
Power Savings and Reset Description
This sections describes the different modes for resetting the chip
and ways to save power.
Power Saving Mode Description
EZ-Host has one main power saving mode, Sleep. For detailed
information about Sleep mode, see the Sleep section that
follows.
Sleep mode is used for USB applications to support USB
suspend and non USB applications as the main chip power down
mode.
In addition, EZ-Host is capable of slowing down the CPU clock
speed through the CPU Speed register [0xC008] without
affecting other peripheral timing. Reducing the CPU clock speed
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
the overall current draw by approximately 15 mA.
Document #: 38-08015 Rev. *JPage 13 of 99
Sleep
– (2 schottky
CC
Sleep mode is the main chip power down mode and is also used
for USB suspend. Sleep mode is entered by sett ing the Sleep
Enable (bit 1) of the Power control register [0xC00A]. During
Sleep mode (USB Suspend) the following events and states are
true:
■ GPIO pins maintain their configuration during sleep (in
suspend)
■ External Memory address pins are driven low
■ XTALOUT is turned off
■ Internal PLL is turned off
■ Ensure that firmware disables the charge pump (OTG Control
register [0xC098]) thereby causing OTGVBUS to drop below
0.2V. Otherwise OTGVBUS only drops to V
diode drops).
■ Booster circuit is turned off
■ USB transceivers is turned off
■ CPU goes into suspend mode until a programmable wakeup
event
[+] Feedback
CY7C67300
External (Remote) Wakeup Source
Notes
5. Read data is discarded (dummy data).
6. HPI_INT asserts on a USB Resume.
There are several possible events available to wake EZ-Host
from Sleep mode as shown in Table 20. These may also be used
as remote wakeup options for USB applications. See the Power
Control Register [0xC00A] [R/W] on page 19 for details.
Upon wakeup, code begins executing withi n 200 µs, the time it
takes the PLL to stabilize.
Table 20. Wakeup Sources
Wakeup Source
(if enabled)
USB ResumeD+/D– Signaling
OTGVBUSLevel
OTGIDAny Edge
HPIRead
HSSRead
SPIRead
IRQ1 (GPIO 25)Any Edge
IRQ0 (GPIO 24) Any Edge
[5, 6]
Event
Power-On-Reset Description
The length of the power-on-reset event can be defined by (V
ramp to valid) + (Crystal startup). A typical application might use
a 12 ms power-on-reset event = ~7 ms + ~5 ms, respectively.
CC
Reset Pin
The Reset pin is active low and requires a minimum pulse
duration of sixteen 12 MHz clock cycles (1.3 µs). A reset event
restores all registers to their default POR settings. Code
execution then begins 200 µs later at 0xFF00 with an immediate
jump to 0xE000, the start of BIOS. Refer to BIOS documentation
for additional details.
USB Reset
A USB Reset affects registers 0xC090 and 0xC0B0, all other
registers remain unchanged.
Memory Map
The memory map is discussed in the following sections.
Mapping
The total memory space directly addressable by the CY16
processor is 64K (0x0000-0xFFFF). Program, data, and IO are
contained within this 64K space. This memory space is byte
addressable. Figure 10 on page 15 shows the various memory
region address locations.
Internal Memory
Of the internal memory, 15K bytes are allocated for user's
program and data. The lower memory space from 0x0000 to
0x04A2 is reserved for interrupt vectors, general purpose
registers, USB control registers, stack, and other BIOS variables.
The upper internal memory space contains EZ-Host control
registers from 0xC000 to 0xC0FF and the BIOS ROM itself from
0xE000 to 0xFFFF. For more information about the reserved
lower memory or the BIOS ROM, refer to the Programmer’s
documentation and/or the BIOS documentation.
During development with the EZ-Host toolset, leave th e lower
area of user's space (0x04A4 to 0x1000) available to load t he
GDB stub. The GDB stub is required to allow the toolset debug
access into EZ-Host.
The chip select pins are not active during accesses to internal
memory.
External Memor y
Up to 32 KB of external memory from 0x4000 - 0xBFFF is
available via one chip select line (nXRAMSEL) with RAM Merge
enabled (BIOS default). Additionally, another 8 KB region from
0xC100 - 0xDFFF is available via a second chip select line
(nXROMSEL) giving 40 KB of total available external memory.
Together with the internal 15 KB, this gives a total of either ~48
KB (one chip select) or ~56 KB (two chip selects) of available
memory for either code or data.
Note that the memory map and pin names
(nXRAMSEL/nXROMSEL) define specific memory regions for
RAM vs. ROM. This allows the BIOS to look in the upper external
memory space at 0xC100 for SCAN vectors (enabling code to be
loaded/executed from ROM). If no SCAN vectors are required in
the design (external memory is used exclusively for data), then
all external memory regions can be used for RAM. Similarly, the
external memory can be used exclusively for code space (ROM).
If more external memory is required, EZ-Host has enough
address lines to support up to 512 KB. However, this requires
complex code banking/paging schemes via the Extended Page
registers.
For further information about setting up the external memory, see
the External Memory Interface on page 5.
Document #: 38-08015 Rev. *JPage 14 of 99
[+] Feedback
CY7C67300
HW INT's
SW INT's
0x0000 - 0x00FF
Primary Registers
Swap Registers
USB Registers
HPI Int / Mailbox
Slave Setup Packet
BIOS
USER SPACE
~15K
Internal Memory
External Memory
Control Registers
USER SPACE
16K
USER SPACE ~8K
01
Extended Page 1
USER SPACE
Up to 64 8K Banks
01
Extended Page 2
USER SPACE
Up to 64 8K Banks
Bank
Selected
by
0xC018
Bank
Selected
by
0xC01A
0x0100 - 0x011F
0x0120 - 0x013F
0x0140 - 0x0148
0x014A - 0x01FF
0x0200 - 0x02FF
LCP Variables
0x0300 - 0x030F
BIOS Stack0x0310 - 0x03FF
USB Slave & OTG0x0400 - 0x04A2
0x04A4 - 0x3FFF
0x4000 - 0x7FFF
0x8000 - 0x9FFF
0xA000 - 0xBFFF
0xC100 - 0xDFF F
0xC000 - 0xC0FF
0xE000 - 0xFFFF
Figure 10. Memory Map
Document #: 38-08015 Rev. *JPage 15 of 99
[+] Feedback
CY7C67300
Registers
Some registers have different functions for a read vs. a write
access or USB host vs. USB device mode. Therefore, register s
of this type have multiple definitions for the same address.
The default register values listed in this data sheet may be
altered to some other value during the BIOS initiali zati on. Re fe r
to the BIOS documentation for register initialization information.
Processor Control Registers
There are nine registers dedicated to general processor control.
Each of these registers are covered in this section and are
summarized in Table 21.
Table 21. Processor Control Registers
Register NameAddressR/W
CPU Flags Register0xC000R
Register Bank Register0xC002R/W
Hardware Revision Register0xC004R
CPU Speed Register 0xC008R/W
Power Control Register 0xC00AR/W
Interrupt Enable Register 0xC00ER/W
Breakpoint Register 0xC014R/W
USB Diagnostic Register0xC03CW
Memory Diagnostic Register0xC03EW
CPU Flags Register [0xC000] [R]
Table 22. CPU Flags Register
Bit #15141312111098
FieldReserved...
Read/Write-------Default00000000
Bit #76543210
...ReservedGlobal
Field
Read/Write---RRRRR
Default000XXXXX
Interrupt
Enable
Negative
Flag
Overflow
Flag
Carry
Flag
Zero
Flag
Register Description
The CPU Flags register is a read only register that gives
processor flags status.
Global Interrupt Enable (Bit 4)
The Global Interrupt Enable bit indicat es if t he Glo bal Interrupts
are enabled.
1: Enabled
0: Disabled
Negative Flag (Bit 3)
The Negative Flag bit indicates if an arithmetic operation results
in a negative answer.
1: MS result bit is ‘1’
0: MS result bit is not ‘1’
Overflow Flag (Bit 2)
The Overflow Flag bit indicates if an ov erflow condition occurred.
An overflow condition can occur if an arithmetic result was either
larger than the destination operand size (for addition) or smaller
than the destination operand must allow for subtraction.
1: Overflow occurred
0: Overflow did not occur
Carry Flag (Bit 1)
The Carry Flag bit indicates if an arithmetic operation resulted in
a Carry for addition, or Borrow for subtraction.
1: Carry/Borrow occurred
0: Carry/Borrow did not occur
Zero Flag (Bit 0)
The Zero Flag bit indicates if an instruction execution resulted in
a ‘0’.
1: Zero occurred
0: Zero did not occur
Document #: 38-08015 Rev. *JPage 16 of 99
[+] Feedback
CY7C67300
Bank Register [0xC002] [R/W]
Table 23. Bank Register
Bit #15141312111098
FieldAddress...
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default00000001
Bit #76543210
Field...AddressReserved
Read/WriteR/WR/WR/W-----
Default000XXXXX
Register Description
The Bank register maps registers R0–R15 into RAM. The eleven MSBs of this register are used as a base address for reg isters
R0–R15. A register address is automatically generated by:
1. Shifting the four LSBs of the register address left by 1.
2. ORing the four shifted bits of the register address with the twelve MSBs of the Bank register.
3. Forcing the LSB to zero.
For example, if the Bank register is left at its default value of 0x0100, and R2 is read, then the physical address 0x0102 is read. Refer
to Table 24 for details.
Table 24. Bank Register Example
RegisterHex ValueBinary Value
Bank 0x01000000 0001 0000 0000
R140x000E << 1 = 0x001C0000 0000 0001 1100
RAM Location0x011C0000 0001 0001 1100
Address (Bits [15:4])
The Address field is used as a base address for all register addresses to start from.
Reserved
Write all reserved bits with ’0’.
Hardware Revision Register [0xC004] [R]
Table 25. Revision Register
Bit #15141312111098
FieldRevision...
Read/WriteRRRRRRRR
DefaultXXXXXXXX
Bit #76543210
Field...Revision
Read/WriteRRRRRRRR
DefaultXXXXXXXX
Register Description
The Hardware Revision register is a read only register that indicates the silicon revision number. The first silicon revision is represented
by 0x0101. This number is increased by one for each new silicon revision.
Revision (Bits [15:0])
The Revision field contains the silicon revision number.
Document #: 38-08015 Rev. *JPage 17 of 99
[+] Feedback
CY7C67300
CPU Speed Register [0xC008] [R/W]
Table 26. CPU Speed Register
Bit #15141312111098
FieldReserved...
Read/Write-------Default00000000
Bit #76543210
Field...ReservedCPU Speed
Read/Write----R/WR/WR/WR/W
Default00001111
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).
CPU Speed (Bits[3:0])
The CPU Speed field is a divisor that selects the operating speed of the processor as defined in Table 27.
Field
Read/WriteR/WR/WR/WR/WR/W-R/WR/W
Default00000000
Bit #76543210
Field
Read/WriteR/W--R/W-RR/WR/W
Default00000000
Wake
Enable
HPI
Wake
Enable
Host/Device
2A
Wake
Enable
ReservedGPI
Host/Device
1B
Wake
Enable
Host/Device
1A
Wake
Enable
Wake
Enable
OTG
Wake
Enable
ReservedBoost 3V
ReservedHSS
OK
Wake
Enable
Sleep
Enable
SPI
Wake
Enable
Halt
Enable
Register Description
The Power Control register controls the power down and wakeup
options. Either the sleep mode or the halt mode option s can be
selected. All other writable bits in this register can be used as a
wakeup source while in sleep mode.
Host/Device 2B Wake Enable (Bit 15)
The Host/Device 2B Wake Enable bit enables or disables a
wakeup condition to occur on a Host/Device 2 B transiti on. This
wakeup from the SIE port does not cause an interrupt to the
on-chip CPU.
1: Enable wakeup on Host/Device 2B transition
0: Disable wakeup on Host/Device 2B transition
Host/Device 2A Wake Enable (Bit 14)
The Host/Device 2A Wake Enable bit enables or disables a
wakeup condition to occur on an Host/Device 2A transition. This
wakeup from the SIE port does not cause an interrupt to the
on-chip CPU.
1: Enable wakeup on Host/Device 2A transition
0: Disable wakeup on Host/Device 2A transition
Host/Device 1B Wake Enable (Bit 13)
The Host/Device 1B Wake Enable bit enables or disables a
wakeup condition to occur on an Host/Device 1B transition. This
wakeup from the SIE port does not cause an interrupt to the
on-chip CPU.
1: Enable wakeup on Host/Device 1B transition
0: Disable wakeup on Host/Device 1B transition
Host/Device 1A Wake Enable (Bit 12)
The Host/Device 1A Wake Enable bit enables or disables a
wakeup condition to occur on an Host/Device 1A transition. This
wakeup from the SIE port does not cause an interrupt to the
on-chip CPU.
1: Enable wakeup on Host/Device 1A transition
0: Disable wakeup on Host/Device 1A transition
OTG Wake Enable (Bit 11)
The OTG Wake Enable bit enables or disables a wakeup
condition to occur on either an OTG VBUS_Valid or OTG ID
transition (IRQ20).
1: Enable wakeup on OTG VBUS valid or OTG ID transition
0: Disable wakeup on OTG VBUS valid or OTG ID transition
HSS Wake Enable (Bit 9)
The HSS Wake Enable bit enables or disables a wakeup
condition to occur on an HSS Rx serial input transition. The
processor may take several hundreds of microseconds before
being operational after wakeup. Therefore, the incoming data
byte that causes the wakeup is discarded.
1: Enable wakeup on HSS Rx serial input transition
0: Disable wakeup on HSS Rx serial input transition
SPI Wake Enable (Bit 8)
The SPI Wake Enable bit enables or disables a wakeup condition
to occur on a falling SPI_nSS input transition. The processor
may take several hundreds of microseconds before being operational after wakeup. Therefore, the incoming data byte that
causes the wakeup is discarded.
The HPI Wake Enable bit enables or disables a wakeup
condition to occur on an HPI interface read.
1: Enable wakeup on HPI interface read
0: Disable wakeup on HPI interface read
GPI Wake Enable (Bit 4)
The GPI Wake Enable bit enables or disables a wakeup
condition to occur on a GPIO(25:24) transition.
1: Enable wakeup on GPIO(25:24) transition
0: Disable wakeup on GPIO(25:24) transition
Document #: 38-08015 Rev. *JPage 19 of 99
[+] Feedback
CY7C67300
Boost 3V OK (Bit 2)
The Boost 3V OK bit is a read only bit that return s the status of
the OTG Boost circuit.
1: Boost circuit not ok and internal voltage rails are below 3.0V
0: Boost circuit ok and internal voltage rails are at or above 3.0V
Sleep Enable (Bit 1)
Setting this bit to ‘1’ immediately initiates SLEEP mode. While in
SLEEP mode, the entire chip is paused, achieving the lowest
standby power state. All operations are paused, the internal
clock is stopped, the booster circuit and OTG VBUS charge
pump are all powered down, and the USB transceivers are
powered down. All counters and timers are paused but retain
their values; enabled PWM outputs freeze in their current states.
Halt Enable (Bit 0)
Setting this bit to ‘1’ immediately initiat es HALT mode. While in
HALT mode, only the CPU is stopped. The internal clock still runs
and all peripherals still operate, including the USB engines. The
power saving using HALT in most cases is minimal, but in applications that are very CPU intensive the incremental savings may
provide some benefit.
The HALT st ate is exited when any enabled interrupt is triggered.
Upon exiting the HALT state, one or two instructions immediately
following the HALT instruction may be executed before the
waking interrupt is serviced (you may want to follow the HALT
instruction with two NOPs).
1: Enable Halt mode
0: No function
SLEEP mode exits by any activity selected in this register . When
SLEEP mode ends, instruction execution resumes within 0.5 ms.
1: Enable Sleep mode
Reserved
Write all reserved bits with ’0’.
0: No function
Interrupt Enable Register [0xC00E] [R/W]
Table 29. Interrupt Enable Register
Bit #15141312111098
ReservedOTG
Field
Read/Write---R/WR/W-R/WR/W
Default00000000
Interrupt
Enable
SPI
Interrupt
Enable
ReservedHost/Device 2
Interrupt
Enable
Host/Device 1
Interrupt
Enable
Bit #76543210
HSS
Field
Read/WriteR/WR/WR/W-R/WR/WR/WR/W
Default00010000
Interrupt
Enable
Register Description
The Interrupt Enable register allows control of the hardware
interrupt vectors.
In Mailbox
Interrupt
Enable
Out Mailbox
Interrupt
Enable
ReservedUART
Interrupt
Enable
Host/Device 2 Interrupt Enable (Bit 9)
The Host/Device 2 Interrupt Enable bit enables or disables all of
the following Host/Device 2 hardware interrupts: Host 2 USB
GPIO
Interrupt
Enable
Tim er 1
Interrupt
Enable
Tim er 0
Interrupt
Enable
Done, Host 2 USB SOF/EOP, Host 2 Wakeup/Insert/Remove,
OTG Interrupt Enable (Bit 12)
The OTG Interrupt Enable bit enables or disables the OTG
ID/OTG4.4V Valid hardware interrupt.
1: Enable OTG interrupt
0: Disable OTG interrupt
SPI Interrupt Enable (Bit 11)
The SPI Interrupt Enable bit enables or disables the following
three SPI hardware interrupts: SPI TX, SPI RX, and SPI DMA
Block Done.
1: Enable SPI interrupt
0: Disable SPI interrupt
Device 2 Reset, Device 2 SOF/EOP or WakeUp from USB,
Device 2 Endpoint n.
1: Enable Host 2 and Device 2 interrupt
0: Disable Host 2 and Device 2 interrupt
Host/Device 1 Interrupt Enable (Bit 8)
The Host/Device 1 Interrupt Enable bit enables or disables all of
the following Host/Device 1 hardware interrupts: Host 1 USB
Done, Host 1 USB SOF/EOP, Host 1 Wakeup/Insert/Remove,
Device 1 Reset, Device 1 SOF/EOP or WakeUp from USB,
Device 1Endpoint n.
1: Enable Host 1 and Device 1 interrupt
0: Disable Host 1 and Device 1 interrupt
Document #: 38-08015 Rev. *JPage 20 of 99
[+] Feedback
CY7C67300
HSS Interrupt Enable (Bit 7)
The HSS Interrupt Enable bit enables or di sables the following
High-speed Serial Interface hardware interrupts: HSS Block
Done and HSS RX Full.
1: Enable HSS interrupt
0: Disable HSS interrupt
In Mailbox Interrupt Enable (Bit 6)
The In Mailbox Interrupt Enable bit enables or disables the HPI:
Incoming Mailbox hardware interru p t.
The Timer 1 Interrupt Enable bit enables or disables the TImer1
Interrupt Enable. When this bit is reset, all pending Timer 1 interrupts are cleared.
1: Enable TM1 interrupt
0: Disable TM1 interrupt
Timer 0 Interrupt Enable (Bit 0)
The Timer 0 Interrupt Enable bit enables or disables the TImer0
Interrupt Enable. When this bit is reset, all pending Timer 0 interrupts are cleared.
1: Enable TM0 interrupt
0: Disable TM0 interrupt
Reserved
Write all reserved bits with ’0’.
Breakpoint Register [0xC014] [R/W]
Table 30. Breakpoint Register
Bit #15141312111098
FieldAddress...
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default00000000
Bit #76543210
Field...Address
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default00000000
Register Description
The Breakpoint register holds the breakpoint address. When the
program counter matches this address, the INT127 interrupt
Address (Bits [15:0])
The Address field is a 16-bit field containing the breakpoint
address.
occurs. To clear this interrupt, write a zero value to this register.
Document #: 38-08015 Rev. *JPage 21 of 99
[+] Feedback
CY7C67300
USB Diagnostic Register [0xC03C] [R/W]
Table 31. USB Diagnostic Register
Bit #15141312111098
Port 2B
Field
Read/WriteR/WR/WR/WR/W----
Default00000000
Bit #76543210
Field
Read/Write-R/WR/WR/W-R/WR/WR/W
Default00000000
Diagnostic
Enable
...ReservedPull-down
Port 2A
Diagnostic
Enable
Enable
Port 1B
Diagnostic
Enable
LS Pull-up
Enable
Port 1A
Diagnostic
Enable
FS Pull-up
Enable
Reserved...
ReservedForce Select
Register Description
The USB Diagnostic register provides control of diagnostic
modes. It is intended for use by device characterization tests, not
for normal operations. This register is read/write by the on-chip
CPU but is write-only via the HPI port.
Port 2B Diagnostic Enable (Bit 15)
The Port 2B Diagnostic Enable bit enables or disables Port 2B
for the test conditions selected in this register.
1: Apply any of the following enabled test conditions: J/K, DCK,
SE0, RSF, RSL, PRD
0: Do not apply test conditions
Port 2A Diagnostic Enable (Bit 14)
The Port 2A Diagnostic Enable bit enables or disables Port 2A
for the test conditions selected in this register.
1: Apply any of the following enabled test conditions: J/K, DCK,
SE0, RSF, RSL, PRD
0: Do not apply test conditions
Port 1B Diagnostic Enable (Bit 13)
The Port 1B Diagnostic Enable bit enables or disables Port 1B
for the test conditions selected in this register.
1: Apply any of the following enabled test conditions: J/K, DCK,
SE0, RSF, RSL, PRD
0: Do not apply test conditions
Port 1A Diagnostic Enable (Bit 12)
The Port 1A Diagnostic Enable bit enables or disables Port 1A
for the test conditions selected in this register.
1: Apply any of the following enabled test conditions: J/K, DCK,
SE0, RSF, RSL, PRD
0: Do not apply test conditions
Pull-down Enable (Bit 6)
The Pull-down Enable bit enables or disables full-speed pull
down resistors (pull down on both D+ and D–) for testing.
1: Enable pull down resistors on both D+ and D–
0: Disable pull down resistors on both D+ and D–
LS Pull-up Enable (Bit 5)
The LS Pull-up Enable bit enables or disabl es a low-speed pull
up resistor (pull up on D–) for testing.
1: Enable low-speed pull up resistor on D–
0: Pull-up resistor is not connected on D–
FS Pull-up Enable (Bit 4)
The FS Pull-up Enable bit enables or disabl es a full-speed pull
up resistor (pull up on D+) for testing.
1: Enable full-speed pull up resistor on D+
0: Pull up resistor is not connected on D+
Force Select (Bits [2:0])
The Force Select field bit selects several different test condition
states on the data lines (D+/D–). Refer to Table 32 for details.
Ta ble 32. Force Select Definition
Force Select [2:0]Data Line State
1xxAssert SE0
01xToggle JK
001Assert J
000Assert K
Reserved
Write all reserved bits with ’0’.
Document #: 38-08015 Rev. *JPage 22 of 99
[+] Feedback
CY7C67300
Memory Diagnostic Register [0xC03E] [W]
Table 33. Memory Diagnostic Register
Bit #15141312111098
ReservedMemory
Field
Read/Write-----WWW
Default00000000
Bit #76543210
Field
Read/Write-------W
Default00000000
ReservedMonitor
Arbitration
Select
Enable
Register Description
The Memory Diagnostic register provides control of diagnosti c
modes.
Memory Arbitration Select (Bits[10:8])
The Memory Arbitration Select field is defined in Table 34.
Table 34. Memory Arbitration Select
Memory Arbitration
Select [3:0]
Memory Arbitration Timing
1111/8, 7 of every 8 cycles dead
1102/8, 6 of every 8 cycles dead
1013/8, 5 of every 8 cycles dead
1004/8, 4 of every 8 cycles dead
0115/8, 3 of every 8 cycles dead
0106/8, 2 of every 8 cycles dead
0017/8, 1 of every 8 cycles dead
0008/8, all cycles available
Monitor Enable (Bit 0)
The Monitor Enable bit enables or disables monitor mode . In
monitor mode the internal address bus is echoed to the external
address pins.
1: Enable monitor mode
0: Disable monitor mode
Reserved
Write all reserved bits with ’0’.
External Memory Registers
There are four registers dedicated to controlling the external
memory interface. Each of these registers are covered in this
section and are summarized in Table35.
Bit #15141312111098
FieldAddress...
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default00000000
Bit #76543210
Field...Address
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default00000000
Register Description
The Extended Page n Map register contains the Page n
high-order address bits. These bits are always appended to
accesses to the Page n Memory mapped space.
reflect the content of this register when the CPU accesses t he
address 0x8000-0x9FFF. For the SRAM mode, the address pin
on [4:0] (Page n address [17:13]) is used.
Set bit [8] (Page n address [21]) to ‘0’, so that Page n
reads/writes access external areas (SRAM, ROM or periph-
Address (Bits [15:0])
erals). nXMEMSEL is the external chip select for this space .
The Address field contains the high-order bits 28 to 13 of the
Page n address. The address pins [8:0] (Page n address [21:13])
Upper Address Enable Register [0xC038] [R/W]
Table 37. External Memory Control Register
Bit #15141312111098
FieldReserved
Read/Write-------DefaultXXXXXXXX
Bit #76543210
ReservedUpper
Field
Read/Write----R/W
DefaultXXXX0XXX
Register Description
The Upper Address Enable register enables/disables the four
most significant bits of the external address A[18:15]. This
register defaults to having the Upper Address disabled. Note that
on power up, pins A[18:15] are driven high.
Address
Enable
Upper Address Enable (Bit 3)
The Upper Address Enable bit enables/disables the four most
significant bits of the external address A[18:15].
1: Enable A[18:15] of the external memory interface for general
addressing.
Reserved
0: Disable A[18:15], not available.
Reserved
Write all reserved bits with ’0’.
Document #: 38-08015 Rev. *JPage 24 of 99
[+] Feedback
CY7C67300
External Memory Control Register [0xC03A] [R/W]
Table 38. External Memory Control Register
Bit #15141312111098
Field
Read/Write--R/WR/WR/WR/WR/WR/W
DefaultXXXXXXXX
Bit #76543210
Field
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
DefaultXXXXXXXX
XROM Width
ReservedXRAM Merge
Select
Enable
XROM Wait
Select
XROM Merge
Enable
XMEM Width
Select
XRAM Width
Select
XMEM Wait
Select
XRAM Wait
Select
Register Description
The External Memory Control register provides control of Wait
States for the external SRAM or ROM. All wait states are based
off of 48 MHz.
XRAM Merge Enable (Bit 13)
The XRAM Merge Enable bit enables or disables the RAM merge
feature. When the RAM merge feature is enabled, the
nXRAMSEL is active whenever the nXMEMSEL is active.
1: Enable RAM merge
0: Disable RAM merge
XROM Merge Enable (Bit 12)
The XROM Merge Enable bit enables or disables the ROM
merge feature. When the ROM merge feature is enabled, the
nXROMSEL is active whenever the nXMEMSEL is active.
1: Enable ROM merge
0: Disable ROM merge
XMEM Width Select (Bit 11)
The XMEM Width Select bit selects the extended memory width.
1: Extended memory = 8
0: Extended memory = 16
XMEM Wait Select (Bits [10:8])
The XMEM Wait Select field selects the extended memory wait
state from 0 to 7.
XROM Wait Select (Bits[6:4])
The XROM Wait Select field se lects the external RO M wait state
from 0 to 7.
XRAM Width Select (Bit 3)
The XRAM Width Select bit selects the external RAM width.
1: External memory = 8
0: External memory = 16
XRAM Wait Select (Bits[2:0])
The XRAM Wait Select field selects the external RAM wait state
from 0 to 7.
Reserved
Write all reserved bits with ’0’.
Timer Registers
There are three registers dedicated to timer operations. Each of
these registers are discussed in this section and are summarized
in Table 39.
The XROM Width Select bit selects the external ROM width.
1: External memory = 8
0: External memory = 16
Document #: 38-08015 Rev. *JPage 25 of 99
[+] Feedback
CY7C67300
Watchdog Timer Register [0xC00C] [R/W]
Table 40. Watchdog Timer Register
Bit #15141312111098
FieldReserved...
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default00000000
Bit #76543210
Field
Read/WriteR/WR/WR/WR/WR/WR/WR/WW
Default00000000
...ReservedTimeout
Flag
Period
Select
Lock
Enable
WDT
Enable
Reset
Strobe
Register Description
The Watchdog Timer register provides status and control over
the Watchdog timer. The Watchdog timer can also int errupt the
processor.
Timeout Flag (Bit 5)
The Timeout Flag bit indicates if the Watchdog timer expired.The
processor can read this bit after exiting a reset to determine if a
Watchdog timeout occurred. This bit is cleared on the next
external hardware reset.
1: Watchdog timer expired.
0: Watchdog timer did not expire.
Period Select (Bits [4:3])
The Period Select field is defined in Table 41. If this time expires
before the Reset Strobe bit is set, the internal processor is reset.
Table 41. Period Select Definition
Period Select[4:3]WDT Period Value
001.4 ms
015.5 ms
1022.0 ms
1166.0 ms
Lock Enable (Bit 2)
The Lock Enable bit does not allow any writes to this register until
a reset. In doing so the Watchdog timer can be set up and
enabled permanently so that it can only be cleared on reset (the
WDT Enable bit is ignored).
1: Watchdog timer permanently set
0: Watchdog timer not permanently set
WDT Enable (Bit 1)
The WDT Enable bit enables or disables the Watchdog timer.
The Reset Strobe is a write-only bit that resets the Watchdog
timer count. Set this bit to ‘1’ before the count expires to avoid a
Watchdog trigger
1: Reset Count
Reserved
Write all reserved bits with ’0’.
Document #: 38-08015 Rev. *JPage 26 of 99
[+] Feedback
CY7C67300
Timer n Register [R/W]
■ Timer 0 Register 0xC010
■ Timer 1 Register 0xC012
Table 42. Timer n Register
Bit #15141312111098
FieldCount...
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default11111111
Bit #76543210
Field...Count
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default11111111
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.
Count (Bits [15:0])
The Count field sets the Timer count.
General USB Registers
functions for both USB host and USB peripheral options and is
covered in this section and summarized in Table 43. USB Host
only registers are covered in UART Interface on page 7, and USB
device only registers are covered in External Memory Registers
on page 23.
Ta bl e 43. Gene ral USB Registers
Register NameAddress (SIE1/SIE2)R/W
USB n Control Register 0xC08A/0xC0AAR/W
There is one set of registers dedicated to general USB control.
This set consists of two identical registers: one for Host/Device
Port 1 and one for Host/Device Port 2. This register set has
USB n Control Register [R/W]
■ USB 1 Control Register 0xC08A
■ USB 2 Control Register 0xC0AA
Table 44. USB n Control Register
Bit #15141312111098
Port B
Field
Read/WriteRRRRR/WR/WR/WR/W
DefaultXXXX0000
D+
Status
Port B
D–
Status
Port A
D+
Status
Port A
D–
Status
LOBLOAMode
Select
Port B
Resistors
Enable
Bit #76543210
Port A
Field
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default00000000
Resistors
Enable
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.
Port B
Force D±
State
Port A
Force D±
State
Suspend
Enable
Port B
SOF/EOP
Enable
Port A
SOF/EOP
Enable
Port B D+ Status (Bit 15)
The Port B D+ Status bit is a read only bit that indicates the value
of DATA+ on Port B.
1: D+ is HIGH
0: D+ is LOW
Document #: 38-08015 Rev. *JPage 27 of 99
[+] Feedback
CY7C67300
Port B D– Status (Bit 14)
The Port B D– Status bit is a read only bit that indicates the value
of DATA– on Port B.
1: D– is HIGH
0: D– is LOW
Port A D+ Status (Bit 13)
The Port A D+ Status bit is a read only bit that indicates the value
of DATA+ on Port A.
1: D+ is HIGH
0: D+ is LOW
Port A D– Status (Bit 12)
The Port A D– Status bit is a read only bit that indicates the value
of DATA– on Port A.
1: D– is HIGH
0: D– is LOW
LOB (Bit 1 1)
The LOB bit selects the speed of Port B.
1: Port B is set to low-speed mode
0: Port B is set to full-speed mode
LOA (Bit 10)
The LOA bit selects the speed of Port A.
1: Port A is set to low-speed mode
0: Port A is set to full-speed mode
Mode Select (Bit 9)
The Mode Select bit sets the SIE for host or device operation.
When set for device operation only one USB port is suppo rted.
The active port is selected by the Port Select b it in the Host n
Count register.
1: Host mode
0: Device mode
Port B Resistors Enable (Bit 8)
The Port B Resistors Enable bit enables or disables the pull
up/pull down resistors on Port B. When enabled, the Mode
Select bit and LOB bit of this register set the pull up/pul l down
resistors appropriately. When the Mode Select is set for Host
mode, the pull down resistors on the data lines (D+ and D–) are
enabled. When the Mode Select is set for Device mode, a single
pull up resistor on either D+ or D–, determined by the LOB bit, is
enabled. See T able45 for details.
1: Enable pull up/pull down resistors
0: Disable pull up/pull down resistors
Port A Resistors Enable (Bit 7)
The Port A Resistors Enable bit enables or disables the pull
up/pull down resistors on Port A. When enabled, the Mode
Select bit and LOA bit of this register set the pull up/pul l down
resistors appropriately. When the Mode Select is set for Host
mode, the pull down resistors on the data lines (D+ and D–) are
enabled. When the Mode Select is set for Device mode, a single
pull up resistor on either D+ or D–, determined by the LOA bit, is
enabled. See Table 45 for details.
1: Enable pull up/pull down resistors
0: Disable pull up/pull down resistors
Table 45. USB Data Line Pull Up and Pull Down Resistors
L0A/
L0B
Port B Force D± State (Bits [6:5])
The Port B Force D± State field controls the forcing state of the
D+ D– data lines for Port B. This field forces the state of the Port
B data lines independent of the Port Select bit setting. See
Table 46 for details.
Port A Force D± State (Bits [4:3])
The Port A Force D± State field controls the forcing state of the
D+ D– data lines for Port A. This field forces the state of the Port
A data lines independent of the Port Select bit setting. See
Table 46 for details.
Table 46. Port A/B Force D± State
Port A/B Force D± StateFunction
Suspend Enable (Bit 2)
The Suspend Enable bit enables or disables the suspend feature
on both ports. When suspend is enabled the USB transceivers
are powered down and cannot transmit or received USB packets
but can still monitor for a wakeup condition.
1: Enablesuspend
0: Disable suspend
Port B SOF/EOP Enable (Bit 1)
The Port B SOF/EOP Enable bit is only applicable in host mode.
In device mode, this bit must be written as ‘0’. In host mode this
bit enables or disables SOFs or EOPs for Port B. Either SOFs or
EOPs are generated depending on the LOB bit in the USB n
Control register when Port B is active.
1: Enable SOFs or EOPs
0: Disable SOFs or EOPs
Mode
Select
XX0Pull up/Pull down on D+ and
X11Pull down on D+ and
101Pull up on USB D– Enabled
001Pull up on USB D+ Enabled
MSbLSb
00Normal Operation
10Force USB Reset, SE0 State
01Force J-State
11Force K-State
Port n
Resistors
Enable
Function
D– Disabled
D– Enabled
Document #: 38-08015 Rev. *JPage 28 of 99
[+] Feedback
CY7C67300
Port A SOF/EOP Enable (Bit 0)
The Port A SOF/EOP Enable bit is only applicable in host mode.
Reserved
Write all reserved bits with ’0’.
In device mode this bit must be written as ‘0’. In host mode this
bit enables or disables SOFs or EOPs for Port A. Either SOFs or
EOPs are generated depending on the LOA bit in the USB n
Control register when Port A is active.
1: Enable SOFs or EOPs
0: Disable SOFs or EOPs
USB Host Only Registers
There are twelve sets of dedicated registers for USB host only operation. Each set consists of two identical registers (unless otherwise
noted), one for Host Port 1 and one for Host Port 2. These register sets are covered in this section and summarized in Table 47.
Table 47. USB Host Only Register
Register NameAddress (Host 1/Host 2)R/W
Host n Control Register 0xC080/0xC0A0R/W
Host n Address Register 0xC082/0xC0A2R/W
Host n Count Register 0xC084/0xC0A4R/W
Host n Endpoint Status Register 0xC086/0xC0A6R
Host n PID Register 0xC086/0xC0A6W
Host n Count Result Register 0xC088/0xC0A8R
Host n Device Address Register 0xC088/0xC0A8W
Host n Interrupt Enable Register 0xC08C/0xC0ACR/W
Host n Status Register 0xC090/0xC0B0R/W
Host n SOF/EOP Count Register0xC092/0xC0B2R/W
Host n SOF/EOP Counter Register0xC094/0xC0B4R
Host n Frame Register0xC096/0xC0B6R
Host n Control Register [R/W]
■ Host 1 Control Register 0xC080
■ Host 2 Control Register 0xC0A0
Table 48. Host n Control Register
Bit #15141312111098
FieldReserved
Read/Write-------Default00000000
Bit #76543210
Field
Read/WriteR/WR/WR/WR/W---R/W
Default00000000
Preamble
Enable
Register Description
The Host n Control register allows high level USB transaction
control.
Sequence
Select
Sync
Enable
ISO
Enable
ReservedArm
Enable
Preamble Enable (Bit 7)
The Preamble Enable bit enables or disables the transmission of
a preamble packet before all low-speed packets. Set this bit only
when communicating with a low-speed device.
1: Enable Preamble packet
0: Disable Preamble packet
Document #: 38-08015 Rev. *JPage 29 of 99
[+] Feedback
CY7C67300
Sequence Select (Bit 6)
The Sequence Select bit sets the data toggle for the next packet.
This bit has no effect on receiving data packets; sequence
checking must be handled in firmware.
1: Send DATA1
ISO Enable (Bit 4)
The ISO Enable bit enables or disables an isochronous trans-
action.
1: Enable isochronous transaction
0: Disable isochronous transaction
0: Send DATA0
Arm Enable (Bit 0)
Sync Enable (Bit 5)
The Sync Enable bit synchronizes the transfer with the SOF
packet in full-speed mode and the EOP packet in low-speed
mode.
1: The next enabled packet is transferred after the SOF or EOP
packet is transmitted
0: The next enabled packet is transferred as soon as the SIE is
free
The Arm Enable bit arms an endpoint and starts a transaction.
This bit is automatically cleared to ‘0’ when a transaction is
complete.
1: Arm endpoint and begin transaction
0: Endpoint disarmed
Reserved
Write all reserved bits with ’0’.
Host n Address Register [R/W]
■ Host 1 Address Register 0xC082
■ Host 2 Address Register 0xC0A2
Table 49. Host n Address Register
Bit #15141312111098
FieldAddress...
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default00000000
Bit #76543210
Field...Address
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default00000000
Register Description
The Host n Address register is used as the base pointer into
memory space for the current host tran sa ctions.
Address (Bits [15:0])
The Address field sets the address pointer into internal RAM or
ROM.
Host n Count Register [R/W]
■ Host 1 Count Register 0xC084.
■ Host 2 Count Register 0xC0A4.
Table 50. Host n Count Register
Bit #15141312111098
Field
Read/Write-R/W----R/WR/W
Default00000000
Bit #76543210
Field...Count
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Default00000000
ReservedPort
Select
ReservedCount...
Document #: 38-08015 Rev. *JPage 30 of 99
[+] Feedback
Loading...
+ 69 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.