Cypress Developer Community .................................27
Technical Support ..................................................... 27
Document Number: 001-81011 Rev. *G Page 2 of 27
CY7C65213
Block Diagram
USB
Transceiver
with
Integrated
Resistor
Voltage
Regulator
Internal
48 MHz OSC
GPIO
USBDP
USBDM
USB
Internal
32 KHz OSC
Reset
UART
256 Bytes
RX Buffer
RESET#
VCCIO
VCCD
256 Bytes
TX Buffer
512 Bytes
Flash
Memory
SIE
GPIO3
GPIO4
GPIO5
GPIO6
GPIO7
TXD
DTR#
RTS#
RXD
RI#
DSR#
DCD#
CTS#
VCC
Battery
Charger
Detection
BCD
GPIO0
GPIO1
GPIO2
Functional Overview
CY7C65213 is a fully integrated USB-to-UART bridge that
provides a simple method to upgrade UART-based devices to
USB with a minimal number of components. CY7C65213
includes a USB 2.0 Full-Speed controller, a UART transceiver,
an internal regulator, an internal oscillator, and a 512-byte flash
in a 32-pin QFN and 28-pin SSOP package.
The internal flash is used to store custom-specific USB
descriptors and GPIO configuration. This is done in-system
using a configuration utility that communicates over the USB
interface.
Cypress provides royalty-free Virtual COM Port (VCP) device
drivers. The drivers allow the device to appear as a COM port in
PC applications. All UART signals, including handshaking and
control signals, are implemented.
USB and Charger Detect
USB
CY7C65213 has a built-in USB 2.0 Full-Speed transceiver. The
transceiver incorporates an internal USB series termination
resistor on the USB data lines and a 1.5-k pull-up resistor on
the USBDP.
Charger Detection
CY7C65213 supports BCD for Peripheral Detect only and
complies with the USB Battery Charging Specification, Rev. 1.2.
It supports the following charging ports:
■ Standard Downstream Port (SDP): Allows the system to draw
up to 500-mA current from the host
■ Charging Downstream Port (CDP): Allows the system to draw
up to 1.5-A current from the host
■ Dedicated Charging Port (DCP): Allows the system to draw up
to 1.5-A of current from the wall charger
UART Interface
The UART interface provides asynchronous serial
communication with other UART devices operating at speeds of
Document Number: 001-81011 Rev. *G Page 3 of 27
up to 3 Mbits/second. It supports 7 to 8 data bits, 1 to 2 stop bits,
odd, even, mark, space, and no parity. The UART interface
supports full-duplex communication with a signaling format
compatible with the standard UART protocol. The UART pins
may be interfaced to industry-standard RS-232 transceivers to
manage different voltage levels.
Common UART functions, such as parity error and frame error,
are supported. A 256-byte buffer is available in both TX and RX
directions. CY7C65213 supports baud rates ranging from 300
baud to 3 Mbaud. UART baud rates can be set using the
configuration utility.
UART Flow Control
The CY7C65213 device supports UART hardware flow control
using control signal pairs, such as RTS# (Request to Send) /CTS# (Clear to Send) and DTR# (Data Terminal Ready) / DSR#
(Data Set Ready).
The following sections describe the flow control signals:
■ CTS# (Input) / RTS# (Output)
CTS# can pause or resume data transmission over the UART
interface. Data transmission can be paused by de-asserting the
CTS signal and resumed by using CTS# assertion. The pause
and resume operation does not affect data integrity. The receive
buffer has a watermark level of 80%. After the data in the receive
buffer reaches that level, the RTS# signal is de-asserted,
instructing the transmitting device to stop data transmission. The
start of data consumption by the application reduces device data
backlog. After it reaches the 50% watermark level, the RTS#
signal is asserted to resume data reception.
■ DSR# (Input) / DTR# (Output)
The DSR#/DTR# signals are used to establish a communication
link with the UART. These signals complement each other in their
functionality, similar to CTS# and RTS#.
GPIO Interface
CY7C65213 has eight GPIOs. The configuration utility lets you
configure the GPIO pins. The configurable options are as
follows:
CY7C65213
■ TRISTATE: GPIO tristated
■ DRIVE 1: Output static 1
■ DRIVE 0: Output static 0
■ POWER#: Power control for bus power designs
■ TXLED#: Drives LED during USB transmit
■ RXLED#: Drives LED during USB receive
■ TX or RX LED#: Drives LED during USB transmit or receive.
GPIO can be configured to drive LED at 8-mA drive strength.
■ SLEEP#: Indicates USB suspend
■ BCD0/1: Two-pin output to indicate the type of USB charger
■ BUSDETECT: Connects VBUS pin for USB host detection
Memory
CY7C65213 has a 512-byte flash. Flash is used to store USB
parameters, such as VID/PID, serial number, and Product and
Manufacturer Descriptors, which can be programmed by the
configuration utility.
System Resources
Power System
CY7C65213 supports the USB Suspend mode to control power
usage. CY7C65213 operates in bus-powered or self-powered
modes over a range of 3.15 V to 5.25 V.
Clock System
CY7C65213 has a fully integrated clock and does not require any
external crystal. The clock system is responsible for providing
clocks to all subsystems.
Internal 48-MHz Oscillator
The internal 48-MHz oscillator is the primary source of internal
clocking in the CY7C65213 device.
Internal 32-kHz Oscillator
The internal 32-kHz oscillator, which is low-power and relatively
inaccurate, is primarily used to generate clocks for peripheral
operation in the USB Suspend mode.
Reset
The reset block ensures reliable power-on reset or
reconfiguration to a known state. The RESET# (active low) pin
can be used by external devices to reset the CY7C65213.
Suspend and Resume
The CY7C65213 device asserts the SLEEP# pin when the USB
bus goes into the suspend state. This helps to meet the stringent
suspend current requirements of the USB 2.0 specification, while
using the device in bus-powered mode. The device resumes
from the suspend state under either of the following two
conditions:
1. Any activity is detected on the USB bus
2. The RI# (configured as wakeup) pin is asserted to generate
remote wakeup to the host.
WAKEUP
The RI# (configured as wakeup) pin is used to generate the
remote wakeup signal on the USB bus. The remote wakeup
signal is sent only if the host enables this feature through the
SET_FEATURE request. The device communicates support for
the remote wakeup to the host through the configuration
descriptor during the USB enumeration process. The
CY7C65213 device allows enabling/disabling of the remote
wakeup feature through the configuration utility.
Software
Cypress delivers a complete set of software drivers and a
configuration utility to enable product configuration during
system development.
Drivers for Linux Operating Systems
Cypress provides a User Mode USB driver library
(libcyusbserial.so) that abstracts vendor commands for the
UART interface and provides a simplified API interface for user
applications. This library uses the standard open-source libUSB
library to enable USB communication. The Cypress serial library
supports the USB plug-and-play feature using the Linux ‘udev’
mechanism.
CY7C65213 supports the standard USB CDC UART-class
driver, which is bundled with the Linux kernel.
Android Support
The CY7C65213 solution also includes an Android Java
class–CyUsbSerial.java–which exposes a set of interface
functions to communicate with the device.
Drivers for Mac OSx
Cypress delivers a dynamically linked shared library
(CyUSBSerial.dylib) based on libUSB, which enables
communication to the CY7C65213 device.
In addition, the device also supports the native Mac OSx CDC
UART-class driver.
Document Number: 001-81011 Rev. *G Page 4 of 27
CY7C65213
Drivers for Windows Operating Systems
For Windows operating systems (XP, Vista, Win7, and Win8),
Cypress delivers a User Mode dynamically linked
library–CyUSBSerial DLL.This library abstracts the
vendor-specific interface of the CY7C65213 devices and
provides convenient APIs to the user. It provides interface APIs
for vendor-specific UART and class-specific APIs for PHDC.
A virtual COM port driver–CyUSBSerial.sys–is also delivered,
which implements the USB CDC class driver. The Cypress
Windows drivers are:
■ Windows Driver Foundation (WDF) compliant
■ Compatible with any USB 2.0-compliant device
■ Compatible with Cypress USB 3.0-compliant devices
They also support Windows plug-and-play and power
management and USB Remote Wake-up
CY7C65213 also works with the Windows-standard USB CDC
UART class driver.
Windows-CE support
The CY7C65213 solution also includes a dynamically linked
library (DLL) and a CDC UART driver library for Windows-CE
platforms.
Device Configuration Utility (Windows only)
A Windows-based configuration utility is available to configure
device initialization parameters. This graphical user application
provides an interactive interface to define boot parameters
stored in the device flash.
This utility allows the user to save a user-selected configuration
to text or xml formats. It also allows users to load a selected
configurations from text or xml formats. The configuration utility
allows the following operations:
■ View current device configuration
■ Select and configure UART, battery charging, and GPIOs
■ Configure USB VID, PID, and string descriptors
■ Save or Load configuration
You can download the free configuration utility and drivers at
www.cypress.com/go/usbserial.
Document Number: 001-81011 Rev. *G Page 5 of 27
CY7C65213
Internal Flash Configuration
The internal flash memory can be used to store configuration parameters as shown in the following table. A free configuration utility
is provided to configure the parameters listed in the table to meet application-specific requirements over a USB interface. The
configuration utility can be downloaded at www.cypress.com/go/usbserial.
Table 1. Internal Flash Configuration
ParameterDefault ValueDescription
USB Configuration
USB Vendor ID (VID)0x04B4Default Cypress VID. Can be configured to customer VID
USB Product ID (PID)0x0003Default Cypress PID. Can be configured to customer PID
Manufacturer stringCypressCan be configured with any string up to 64 characters
Product stringUSB-UART LPCan be configured with any string up to 64 characters
Serial stringCan be configured with any string up to 64 characters
Power modeBus poweredCan be configured to bus-powered or self-powered mode
Max current draw100 mACan be configured to any value from 0 to 500 mA. The configuration
descriptor will be updated based on this.
Remote wakeupEnabledCan be disabled. Remote wakeup is initiated by driving #RI low
USB interface protocolCDCCan be configured to function in CDC, PHDC, or Cypress vendor class
VCC voltage is 3.3 VDisabledThis option should be checked if we need to bypass USB regulator in
VCCIO voltage is less
than 2 V
Enable manufacturing
interface
I/O LevelCMOSCan be configured to either CMOS or LVTTL.
I/O ModeFastCan be configured to either fast or slow for EMI considerations.
Baud Rate115200Can be configured in an editable drop-down combo box that lists the
Type8 pinCan be configured to 2 pin, 4 pin, 6 pin or 8 pin.
Data Width8 bitsCan be configured to either 7 bits or 8 bits.
Stop Bits1 bitCan be configured to either 1 bit or 2 bits.
ParityNoneCan be configured to either None, Odd, Even, Mark, or Space.
Invert RTSDisabledBy selecting this option in USB Serial Configuration Utility, the polarity of the
Invert CTSDisabledBy selecting this option in USB Serial Configuration Utility, the polarity of the
Invert DTRDisabledBy selecting this option in USB Serial Configuration Utility, the polarity of the
Invert DSRDisabledBy selecting this option in USB Serial Configuration Utility, the polarity of the
Invert DCDDisabledBy selecting this option in USB Serial Configuration Utility, the polarity of the
Invert RIDisabledBy selecting this option in USB Serial Configuration Utility, the polarity of the
Drop packets on RX
error
DisabledThis option should be checked if we need to bypass VCCIO regulator in
EnabledThis option enables an additional vendor class manufacturing mode interface
DisabledThis parameter defines the behavior of the UART when an error is detected
CY7C65213.
CY7C65213.
to reconfigure the CY7C65213.
predefined, standard baud rates. You can also enter a specific baud rate in
the combo box.
RTS line can be inverted.
CTS line can be inverted.
DTR line can be inverted.
DSR line can be inverted.
DCD line can be inverted.
RI line can be inverted.
in the packet received (RX packet/byte). When this option is selected in USB
Serial Configuration Utility, the data packet/byte in the RX buffer is discarded.
Document Number: 001-81011 Rev. *G Page 6 of 27
CY7C65213
Table 1. Internal Flash Configuration (continued)
ParameterDefault ValueDescription
Disable CTS and DSR
pull-up during suspend
BCDDisabledCharger detect is disabled by default. When BCD is enabled, three of the
GPIO0TXLED#
GPIO1RXLED#
GPIO2TRISTATE
GPIO3POWER#
GPIO4SLEEP#
GPIO5BUSDETECT
GPIO6BCD0
GPIO7BCD1
EnabledIn an embedded system, this parameter can be selected in USB Serial
Configuration Utility to reduce system current consumption during Suspend
state. This parameter disables the CTS and DSR pull-up resistors in the
Suspend state to meet USB 2.0 Specification current requirements.
GPIOs must be configured for BCD.
GPIO Configuration
GPIO can be configured as shown in Table 12 on page 13.
Document Number: 001-81011 Rev. *G Page 7 of 27
CY7C65213
Electrical Specifications
Note
1. Usage above the absolute maximum conditions may cause permanent damage to the device. Exposure to Absolute Maximum conditions for extended periods of
time may affect device reliability. When used below Absolute Maximum conditions but above normal operating conditions, the device may not operate to specification.
Absolute Maximum Ratings
Exceeding maximum ratings
device.
Storage temperature .................................... –55 °C to +100 °C
[1]
may shorten the useful life of the
Static discharge voltage ESD protection levels:
■ 2.2-kV HBM per JESD22-A114
Latch-up current ........................................................... 140 mA
Maximum current per GPIO ............................................ 25 mA
Ambient temperature with
power supplied (Industrial) ............................ –40 °C to +85 °C
Supply voltage to ground potential
V
................................................................................ 6.0 V
CCIO
V
................................................................................... 6.0 V
CC
V
............................................................................... 1.95 V
CCD
V
...................................................................... V
GPIO
CCIO
+ 0.5
Operating Conditions
TA (ambient temperature under bias)
Industrial ........................................................ –40 °C to +85 °C
V
supply voltage .......................................... 3.15 V to 5.25 V
CC
V
supply voltage ....................................... 1.71 V to 5.50 V
CCIO
V
supply voltage ........................................ 1.71 V to 1.89 V
CCD
Device-Level Specifications
All specifications are valid for –40 °C TA 85 °C, TJ 100 °C, and 1.71 V to 5.50 V, except where noted.