usb-serial single-channel (uart/i2c/spi) bridge with ... · pdf filemedical/healthcare devices...
TRANSCRIPT
CY7C65211USB-Serial Single-Channel (UART/I2C/SPI)
Bridge with CapSense® and BCD
Cypress Semiconductor Corporation • 198 Champion Court • San Jose, CA 95134-1709 • 408-943-2600Document Number: 001-82042 Rev. *D Revised June 13, 2013
Features USB 2.0-certified, Full-Speed (12 Mbps)
Supports communication driver class (CDC), personal health care device class (PHDC), and vendor-specific drivers
Battery charger detection (BCD) compliant with USB Battery Charging Specification, Rev. 1.2 (Peripheral Detect only)
Integrated USB termination resistors Single-channel configurable UART interface
Data rates up to 3 Mbps 256 bytes for each transmit and receive buffer Data format:
• 7 to 8 data bits• 1 to 2 stop bits• No parity, even, odd, mark, or space parity
Supports parity, overrun, and framing errors Supports flow control using CTS, RTS, DTR, DSR
Single-channel configurable SPI interface Master/slave up to 3 MHz Data width: 4 bits to 16 bits 256 bytes for each transmit and receive buffer Supports Motorola, TI, and National SPI modes
Single-channel configurable I2C interface Master/slave up to 400 kHz 256 bytes each transmit and receive buffer Supports multi-master I2C
CapSense®
SmartSense™ Auto-Tuning is supported through a Cypress-supplied configuration utility
Max CapSense buttons: 5 GPIOs linked to CapSense buttons
General-purpose input/output (GPIO) pins: 10
512-byte flash for storing configuration parameters
Configuration utility (Windows) to configure the following: Vendor ID (VID), Product ID (PID), and Product and Manu-
facturer descriptors UART/I2C/SPI CapSense Charger detection GPIO
Driver support for VCOM and DLL Windows 8: 32- and 64-bit versions Windows 7: 32- and 64-bit versions Windows Vista: 32- and 64-bit versions Windows XP: 32- and 64-bit versions Windows CE Mac OS-X: 10.6, 10.7 Linux: Kernel version 2.6.35 onwards. Android: Gingerbread and later versions
Clocking: Integrated 48-MHz clock oscillator
Supports bus-/self-powered configurations
USB Suspend mode for low power
Operating voltage: 1.71 to 5.5 V
Operating temperature: –40 °C to 85 °C
ESD protection: 2.2-kV HBM
RoHS-compliant package 24-pin QFN (4.0 mm × 4.0 mm, 0.55 mm, 0.5 mm pitch)
Ordering part number CY7C65211-24LTXI
Applications Medical/healthcare devices Point-of-Sale (POS) terminals Test and measurement system Gaming systems Set-top box PC-USB interface Industrial Networking
Enabling USB connectivity in legacy peripherals
USB-Compliant
The USB-Serial Single-Channel Bridge with CapSense and BCD (CY7C65211) is fully compliant with the USB 2.0 specification and Battery Charging Specification v1.2, USB-IF Test-ID (TID) 40001521.
CY7C65211
Document Number: 001-82042 Rev. *D Page 2 of 31
ContentsBlock Diagram .................................................................. 3Functional Overview ........................................................ 3
USB and Charger Detect ............................................. 3Serial Communication ................................................. 3CapSense .................................................................... 4GPIO Interface ............................................................ 4Memory .......................................................................4System Resources ...................................................... 4Suspend and Resume ................................................. 4WAKEUP ..................................................................... 4Software ...................................................................... 4Internal Flash Configuration ........................................ 6
Electrical Specifications .................................................. 7Absolute Maximum Ratings ......................................... 7Operating Conditions ................................................... 7Device Level Specifications ......................................... 7GPIO ........................................................................... 8nXRES ......................................................................... 9SPI Specifications ..................................................... 10I2C Specifications ...................................................... 12CapSense Specifications .......................................... 12Flash Memory Specifications .................................... 12
Pin Description ............................................................... 13
USB Power Configurations ............................................ 15USB Bus Powered Configuration .............................. 15Self Powered Configuration ....................................... 16USB Bus Powered with Variable I/O Voltage ............ 17
Application Examples .................................................... 18USB to RS232 Bridge ................................................ 18Battery Operated Bus Powered USB to MCU
with Battery Charge Detection .......................................... 19CapSense .................................................................. 21USB to I2C Bridge ..................................................... 22USB to SPI Bridge ..................................................... 23
Ordering Information ...................................................... 27Ordering Code Definitions ........................................ 27
Package Information ...................................................... 28Acronyms ........................................................................ 29Document Conventions ................................................. 29
Units of Measure ....................................................... 29Document History Page ................................................. 30Sales, Solutions, and Legal Information ...................... 31
Worldwide Sales and Design Support ....................... 31Products .................................................................... 31PSoC Solutions ......................................................... 31
CY7C65211
Document Number: 001-82042 Rev. *D Page 3 of 31
Block Diagram
Functional OverviewThe CY7C65211 is a Full-Speed USB controller that enables seamless PC connectivity for peripherals with serial interfaces, such as UART, SPI, and I2C. CY7C65211 also integrates CapSense and BCD compliant with the USB Battery Charging Specification, Rev. 1.2. It integrates a voltage regulator, an oscil-lator, and flash memory for storing configuration parameters, offering a cost-effective solution. CY7C65211 supports bus-powered and self-powered modes and enables efficient system power management with suspend and remote wake-up signals. It is available in a 24-pin QFN package.
USB and Charger DetectUSBCY7C65211 has a built-in USB 2.0 Full-Speed transceiver. The transceiver incorporates the internal USB series termination resistors on the USB data lines and a 1.5-kΩ pull-up resistor on USBDP.Charger DetectionCY7C65211 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
Serial CommunicationCY7C65211 has a serial communication block (SCB). Each SCB can implement UART, SPI, or I2C interface. A 256-byte buffer is available in both the TX and RX lines.
UART InterfaceThe UART interface provides asynchronous serial communi-cation with other UART devices operating at speeds of up to 3 Mbps. 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 that is 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. CY7C65211 supports baud rates ranging from 300 baud to 3 Mbaud. The UART baud rates can be set using the configuration utility.
UART Flow ControlThe CY7C65211 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). Data flow control is enabled by default. Flow control can be disabled using the configuration utility.The following section describes 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 with 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 application reduces the device data backlog; when 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#.
SPI InterfaceThe SPI interface supports an SPI Master and SPI Slave. This interface supports the Motorola, TI, and National Microwire protocols. The maximum frequency of operation is 3 MHz in Master and Slave modes. It can support transaction sizes ranging from 4 bits to 16 bits in length (refer to USB-to-SPI Bridge on page 23 for more details).
USB Transceiver with
Integrated Resistor
Voltage Regulator
Internal48 MHz OSC
GPIO
CapSenseUSBDP
USBDM
Battery Charger Detection
SIE
USB
Internal32 KHz OSC
Reset Serial Communication
Block
UART/SPI/I2C256
Bytes RX Buffer
256 Bytes TX
Buffer
nXRES
VDDD
VBUS
VCCD
512 Bytes Flash
Memory
VBUS Regulator UART/SPI/I2C
GPIO
CapSense
BCD
CY7C65211
Document Number: 001-82042 Rev. *D Page 4 of 31
I2C InterfaceThe I2C interface implements full multi-master/slave modes and supports up to 400 kHz. The configuration utility tool is used to set the I2C address in the slave mode. The tool enables only even slave addresses. For further details on the protocol, refer to the NXP I2C specification, Rev. 5.Notes I2C ports are not tolerant of higher voltages. Therefore, they
cannot be hot-swapped or powered up independently. The minimum fall time is not met, as required by the NXP I2C
specification Rev. 5, except when VDDD = 1.71 V to 3.0 V. The minimum fall time can be met by adding a 50-pF capacitor for the VDDD = 3.0 V–3.6 V range.
CapSenseCapSense functionality is supported on all the GPIO pins. Any GPIO pin can be configured as a sense pin (CS0–CS7) using the configuration utility. When implementing CapSense functionality, the GPIO_0 pin (configured as a modulator capacitor - Cmod) should be connected to ground through a 2.2-nF capacitor (see Figure 10 on page 21). CY7C65211 supports SmartSense Auto-Tuning of the CapSense parameters and does not require manual tuning. SmartSense Auto-tuning compensates for printed circuit board (PCB) variations and device process variations.Optionally, any GPIO pin can be configured as a Cshield and connected to the shield of the CapSense button, as shown in Figure 10 on page 21. Shield prevents false triggering of buttons due to water droplets and guarantees CapSense operation (sensors respond to finger touch).GPIOs can be linked to the CapSense buttons to indicate the presence of a finger. CapSense functionality can be configured using the configuration utility.CY7C65211 supports up to five CapSense buttons. For more information on CapSense, refer to Getting Started with CapSense.GPIO InterfaceCY7C65211 has 10 GPIOs. The maximum available GPIOs for configuration is 10 if one two-pin (I2C/2-pin UART) serial interface is implemented. The configuration utility allows config-uration of the GPIO pins. The configurable options are as follows: 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. BCD0/BCD1: Two-pin output to indicate the type of USB
charger BUSDETECT: Connects the VBUS pin for USB host detection CS0–CS4: CapSense button input (Sense pin)
CSout0–CSout2: Indicates which CapSense button is pressed Cmod: External modulator capacitor; connects a 2.2-nF
capacitor (±10%) to ground (GPIO_0 only) Cshield: Shield for waterproofing
MemoryCY7C65211 has a 512-byte flash. Flash is used to store USB parameters, such as VID/PID, serial number, product and manufacturer descriptors, which can be programmed by the configuration utility.
System Resources
Power SystemCY7C65211 supports the USB Suspend mode to control power usage. CY7C65211 operates in bus-powered or self-powered modes over a range of 3.15 to 5.25 V.
Clock SystemCY7C65211 has a fully integrated clock with no external compo-nents required. The clock system is responsible for providing clocks to all subsystems.
Internal 48-MHz OscillatorThe internal 48-MHz oscillator is the primary source of internal clocking in CY7C65211.
Internal 32-kHz OscillatorThe internal 32-kHz oscillator is low power and relatively inaccurate. It is primarily used to generate clocks for peripheral operation in the USB Suspend mode.
ResetThe reset block ensures reliable power-on reset or reconfigu-ration to a known state. The nXRES (active low) pin can be used by the external devices to reset the CY7C65211.
Suspend and ResumeThe CY7C65211 device asserts the SUSPEND pin when the USB bus enters the suspend state. This helps in meeting the stringent suspend current requirement of the USB 2.0 specifi-cation, while using the device in bus-powered mode. The device resumes from the suspend state under either of the two following conditions:1. Any activity is detected on the USB bus2. The WAKEUP pin is asserted to generate remote wakeup to
the host
WAKEUPThe 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 CY7C65211 device allows enabling/disabling and polarity of the remote wakeup feature through the configuration utility.
CY7C65211
Document Number: 001-82042 Rev. *D Page 5 of 31
SoftwareCypress delivers a complete set of software drivers and a config-uration utility to enable configuration of the product during system development.
Drivers for Linux Operating SystemsCypress provides a User Mode USB driver library (libcyusb-serial.so) that abstracts vendor commands for the UART interface and provides a simplified API interface for user applica-tions. 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.CY7C65211 supports the standard USB CDC UART class driver, which is bundled with the Linux kernel.
Android SupportThe CY7C65211 solution includes an Android Java class–CyUsbSerial.java–which exposes a set of interface functions to communicate with the device.
Drivers for Mac OSxCypress delivers a dynamically linked shared library (CyUSB-Serial.dylib) based on libUSB, which enables communication to the CY7C65211 device.In addition, the device also supports the native Mac OSx CDC UART-class driver.
Drivers for Windows Operating SystemsFor Windows operating systems (XP, Vista, Win7, and Win8), Cypress delivers a user-mode dynamically linked library–CyUSBSerial DLL–that abstracts a vendor-specific interface of the CY7C65211 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 devicesThey also support Windows plug-and-play and power management and USB Remote Wake-up.
CY7C65211 also works with the Windows-standard USB CDC UART class driverWindows-CE supportThe CY7C65211 solution also includes a dynamically linked library (DLL) and 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 the 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 configuration from text or xml formats. The configuration utility allows the following operations:
View current device configuration
Select and configure UART/I2C/SPI, CapSense, battery charging, and GPIOs
Configure USB VID, PID, and string descriptors
Save or Load configurationYou can download the free configuration utility and drivers at www.cypress.com.
CY7C65211
Document Number: 001-82042 Rev. *D Page 6 of 31
Internal Flash ConfigurationThe internal flash memory can be used to store the configuration parameters 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 the USB interface. The configuration utility can be downloaded at www.cypress.com.
Table 1. Internal Flash Configuration
Parameter Default Value DescriptionUSB Configuration
USB Vendor ID (VID) 0x04B4 Default Cypress VID. Can be configured to customer VIDUSB Product ID (PID) 0x0002 Default Cypress PID. Can be configured to customer PIDManufacturer string Cypress Can be configured with any string up-to 64 characters
Product string USB-Serial (Single Channel) Can be configured with any string up-to 64 charactersSerial string Can be configured with any string up-to 64 charactersPower mode Bus powered Can be configured to bus-powered or self-powered mode
Max current draw 100 mA Can be configured to any value from 0 to 500 mA. The configuration descriptor will be updated based on this,.
Remote wakeup Enabled Can be disabled. Remote wakeup is initiated by asserting the WAKEUP pinUSB interface protocol CDC Can be configured to function in CDC, PHDC, or Cypress vendor class
BCD Disabled Charger detect is disabled by default. When BCD is enabled, three of the GPIOs must be configured for BCDGPIO Configuration
GPIO_0 TXLED#
GPIO can be configured as shown in Table 14 on page 14.
GPIO_1 RXLED#GPIO_2 DSR#GPIO_3 RTS#GPIO_4 CTS#GPIO_5 TxDGPIO_6 RxDGPIO_7 DTR#GPIO_8 TRISTATEGPIO_9 TRISTATE
GPIO_10 TRISTATEGPIO_11 POWER#
CY7C65211
Document Number: 001-82042 Rev. *D Page 7 of 31
Electrical SpecificationsAbsolute Maximum RatingsExceeding maximum ratings[1] may shorten the useful life of thedevice.Storage temperature .................................... –55 °C to +100 °CAmbient temperature with power supplied (Industrial) ............................ –40 °C to +85 °CSupply voltage to ground potential VDDD ................................................................................. 6.0 VVBUS ................................................................................. 6.0 VVCCD ............................................................................... 1.95 VVGPIO ....................................................................... VDDD + 0.5
Static discharge voltage ESD protection levels:
2.2-KV HBM per JESD22-A114Latch-up current .......................................................... . 140 mACurrent per GPIO ........................................................... 25 mA
Operating ConditionsTA (ambient temperature under bias) Industrial ........................................................ –40 °C to +85 °CVBUS supply voltage ........................................ 3.15 V to 5.25 VVDDD supply voltage ........................................ 1.71 V to 5.50 VVCCD supply voltage ........................................ 1.71 V to 1.89 V
Device-Level SpecificationsAll specifications are valid for –40 °C ≤ TA ≤ 85 °C, TJ ≤ 100 °C, and 1.71 V to 5.50 V, except where noted.
Table 2. DC Specifications
Parameter Description Min Typ Max Units Details/ConditionsVBUS VBUS supply voltage 3.15 3.30 3.45 V Set and configure the correct voltage
range using a configuration utility for VBUS. Default 5 V.
4.35 5.00 5.25 V
VDDD VDDD supply voltage 1.71 1.80 1.89 V Used to set I/O and core voltage. Set and configure the correct voltage range using a configuration utility for VDDD. Default 3.3 V.
2.0 3.3 5.5 V
VCCD Output voltage (for core logic) – 1.80 – V Do not use this supply to drive the external device.
• 1.71 V ≤ VDDD ≤ 1.89 V: Short the VCCD pin with the VDDD pin• VDDD > 2 V – connect a 1-µF capacitor (Cefc) between the VCCD pin and ground
Cefc External regulator voltage bypass 1.00 1.30 1.60 µF X5R ceramic or betterIDD1 Operating supply current – 20 – mA USB 2.0 FS, UART at 1-Mbps single
channel, no GPIO switchingIDD2 USB Suspend supply current – 5 – µA Does not include current through a
pull-up resistor on USBDP
Table 3. AC Specifications
Parameter Description Min Typ Max Units Details/ConditionsF1 Frequency 47.04 48 48.96 Mhz Non-USB modeF2 47.88 48 48.12 USB modeZout USB driver output impedance 28 – 44 Ω
Twakeup Wakeup from USB Suspend mode – 25 – µs
Note1. 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.
CY7C65211
Document Number: 001-82042 Rev. *D Page 8 of 31
GPIOTable 4. GPIO DC Specification
Parameter Description Min Typ Max Units Details/ConditionsVIH
[2] Input voltage high threshold 0.7 × VDDD – – V CMOS InputVIL Input voltage low threshold – – 0.3 × VDDD V CMOS InputVIH
[2] LVTTL input, VDDD< 2.7 V 0.7 × VDDD – – VVIL LVTTL input, VDDD < 2.7V – – 0.3 × VDDD VVIH
[2] LVTTL input, VDDD > 2.7V 2 – – VVIL LVTTL input, VDDD > 2.7V – – 0.8 VVOH Output voltage high level VDDD –0.4 – – V IOH = 4 mA,
VDDD = 5 V +/- 10%VOH Output voltage high level VDDD –0.6 – – V IOH = 4 mA,
VDDD = 3.3 V +/- 10%VOH Output voltage high level VDDD –0.5 – – V IOH = 1 mA,
VDDD = 1.8 V +/- 5%VOL Output voltage low level – – 0.4 V IOL = 8 mA,
VDDD = 5 V +/- 10%VOL Output voltage low level – – 0.6 V IOL = 8 mA,
VDDD = 3.3 V +/- 10%VOL Output voltage low level – – 0.6 V IOL = 4 mA,
VDDD = 1.8 V +/- 5%Rpullup Pull-up resistor 3.5 5.6 8.5 kΩRpulldown Pull-down resistor 3.5 5.6 8.5 kΩIIL Input leakage current (absolute value) – – 2 nA 25 °C, VDDD = 3.0 VCIN Input capacitance – – 7 pFVhysttl Input hysteresis LVTTL; VDDD > 2.7 V 25 40 C mVVhyscmos Input hysteresis CMOS 0.05 × VDDD – – mV
Table 5. GPIO AC Specification
Parameter Description Min Typ Max Units Details/ConditionsTRiseFast1 Rise Time in Fast mode 2 – 12 ns VDDD = 3.3 V/ 5.5 V,
Cload = 25 pFTFallFast1 Fall Time in Fast mode 2 – 12 ns VDDD = 3.3 V/ 5.5 V,
Cload = 25 pFTRiseSlow1 Rise Time in Slow mode 10 – 60 ns VDDD = 3.3 V/ 5.5 V,
Cload = 25 pFTFallSlow1 Fall Time in Slow mode 10 – 60 ns VDDD = 3.3 V/ 5.5 V,
Cload = 25 pFTRiseFast2 Rise Time in Fast mode 2 – 20 ns VDDD = 1.8 V, Cload = 25 pFTFallFast2 Fall Time in Fast mode 20 – 100 ns VDDD = 1.8 V, Cload = 25 pFTRiseSlow2 Rise Time in Slow mode 2 – 20 ns VDDD = 1.8 V, Cload = 25 pFTFallSlow2 Fall Time in Slow mode 20 – 100 ns VDDD = 1.8 V, Cload = 25 pF
Note2. VIH must not exceed VDDD + 0.2 V.
CY7C65211
Document Number: 001-82042 Rev. *D Page 9 of 31
nXRESTable 6. nXRES DC Specifications
Parameter Description Min Typ Max Units Details/ConditionsVIH Input voltage high threshold 0.7 × VDDD – – VVIL Input voltage low threshold – – 0.3 × VDDD VRpullup Pull-up resistor 3.5 5.6 8.5 kΩCIN Input capacitance – 5 – pFVhysxres Input voltage hysteresis – 100 – mV
Table 7. nXRES AC Specifications
Parameter Description Min Typ Max Units Details/ConditionsTresetwidth Reset pulse width 1 – – µs
Table 8. UART AC Specifications
Parameter Description Min Typ Max Units Details/ConditionsFUART UART bit rate 0.3 – 3000 kbps
CY7C65211
Document Number: 001-82042 Rev. *D Page 10 of 31
SPI SpecificationsFigure 1. SPI Master Timing
LSB
LSB
MSB
MSB
LSB MSB
FSPI
TDMO
TDSI
SCK(CPOL=0, Output)
SCK(CPOL=1, Output)
MISO(input)
MOSI(output)
SCK(CPOL=0, Output)
SCK(CPOL=1, Output)
MISO(input)
MOSI(output)
SPI Master Timing for CPHA = 0 (Refer to Table 15)
SPI Master Timing for CPHA = 1 (Refer to Table 15)
THMO
FSPI
TDSI
TDMO THMO
LSB MSB
CY7C65211
Document Number: 001-82042 Rev. *D Page 11 of 31
Figure 2. SPI Slave Timing
LSB
LSB
MSB
MSB
LSB
LSB
MSB
MSB
TSSELSCK
TDMI
TDSO
SSN (Input)
SCK(CPOL=0,
Input)SCK
(CPOL=1, Input)
MISO(Output)
MOSI(Input)
SSN (Input)
SCK(CPOL=0,
Input)SCK
(CPOL=1, Input)
MISO(Ouput)
MOSI(Input)
SPI Slave Timing for CPHA = 0 (Refer to Table 15)
SPI Slave Timing for CPHA = 1 (Refer to Table 15)
TSSELSCK
FSPI
FSPI
THSO
TDMI
TDSO THSO
CY7C65211
Document Number: 001-82042 Rev. *D Page 12 of 31
I2C Specifications
CapSense Specifications
Flash Memory Specifications
Table 9. SPI AC Specifications
Parameter Description Min Typ Max Units Details/ConditionsFSPI SPI operating frequency
(Master/Slave)– – 3 MHz
WLSPI SPI word length 4 – 16 bitsSPI Master ModeTDMO MOSI valid after SClock driving
edge– – 15 ns
TDSI MISO valid before SClock capturing edge
20 – – ns
THMO Previous MOSI data hold time with respect to capturing edge at slave
0 – – ns
SPI Slave ModeTDMI MOSI valid before Sclock
Capturing edge40 – – ns
TDSO MISO valid after Sclock driving edge
– – 104.4 ns
THSO Previous MISO data hold time 0 – – nsTSSELSCK SSEL valid to first SCK Valid edge 100 – – ns
Table 10. I2C AC Specifications
Parameter Description Min Typ Max Units Details/ConditionsFI2C I2C frequency 1 – 400 kHz
Table 11. CapSense AC Specifications
Parameter Description Min Typ Max Units Details/ConditionsVCSD Voltage range of operation 1.71 – 5.50 VSNR Ratio of counts of finger to noise 5 – – Ratio Sensor capacitance range of 9
to 35 pF; finger capacitance > 0.1 pF sensitivity
Table 12. Flash Memory Specifications
Parameter Description Min Typ Max Units Details/ConditionsFend Flash endurance 100K – – cyclesFret Flash retention. TA ≤ 85 °C, 10 K
program/erase cycles10 – – years
CY7C65211
Document Number: 001-82042 Rev. *D Page 13 of 31
Pin Description
Pin[3] Type Name Defualt Description1 SCB/GPIO SCB_0 GPIO_6 RxD SCB/GPIO. See Table 13 and Table
14 on page 14.2 SCB/GPIO SCB_5 GPIO_7 DTR# SCB/GPIO. See Table 13 and Table
14 on page 14.3 Power VSSD – Digital Ground4 GPIO GPIO_8 TRISTATE GPIO. See Table 145 GPIO GPIO_9 TRISTATE GPIO. See Table 146 GPIO GPIO_10 TRISTATE GPIO. See Table 147 GPIO GPIO_11 POWER# GPIO. See Table 148 Output SUSPEND – Indicates device in suspend mode.
Can be configured as active low/high using the configuration utility
9 Input WAKEUP – Wakeup device from suspend mode. Can be configured as active low/high using the configuration utility
10 USBIO USBDP – USB Data Signal Plus, integrates termination resistor and a 1.5-kΩ pull-up resistor
11 USBIO USBDM – USB Data Signal Minus, integrates termination resistor
12 Power VCCD – This pin should be decoupled to ground using a 1-µF capacitor or by connecting a 1.8-V supply
13 Power VSSD – Digital Ground14 nXRES nXRES – Chip reset, active low. Can be left
unconnected or have a pull-up resistor connected if not used
15 Power VBUS – VBUS Supply, 3.15 V to 5.25 V16 Power VSSD – Digital Ground17 Power VSSA – Analog Ground18 GPIO GPIO_0 TXLED# GPIO. See Table 1419 GPIO GPIO_1 RXLED# GPIO. See Table 1420 SCB/GPIO SCB_1 GPIO_2 DSR# SCB/GPIO. See Table 13 and Table
14 on page 14.21 SCB/GPIO SCB_2 GPIO_3 RTS# SCB/GPIO. See Table 13 and Table
14 on page 14.22 SCB/GPIO SCB_3 GPIO_4 CTS# SCB/GPIO. See Table 13 and Table
14 on page 14.23 SCB/GPIO SCB_4 GPIO_5 TxD SCB/GPIO. See Table 13 and Table
14 on page 14.24 Power VDDD – Supply to the device core and
Interface, 1.71 to 5.5 V
CY7C65211-24QFN
Top View
1
2
3
4
5
6
7 8 9 10 11 12
23 22 21 20 1924
17
16
15
14
13
18SCB_0/GPIO_6
SCB_5/GPIO_7
VSSD
GPIO_8
GPIO_9
GPIO_10
GPIO_0
VSSA
VSSD
VBUS
nXRES
VSSD
GPI
O_1
1
SU
SP
END
WA
KEU
P
US
BDP
US
BDM
VCC
D
VDD
D
SC
B_4/
GP
IO_5
SC
B_3/
GP
IO_4
SC
B_2/
GP
IO_3
SC
B_1
/GP
IO_2
GPI
O_1
Note3. Any pin acting as an Input pin should not be left unconnected.
CY7C65211
Document Number: 001-82042 Rev. *D Page 14 of 31
Table 13. Serial Communication Block Configuration
Pin Serial Port Mode 0* Mode 1 Mode 2 Mode 3 Mode 4 Mode 5 Mode 66-pin UART 4-pin UART 2-pin UART SPI Master SPI Slave I2C Master I2C Slave
1 SCB_0 RxD RxD RxD GPIO_6 GPIO_6 GPIO_6 GPIO_620 SCB_1 DSR# GPIO_2 GPIO_2 SSEL_OUT SSEL_IN GPIO_2 GPIO_221 SCB_2 RTS# RTS# GPIO_3 MISO_IN MISO_OUT SCL_OUT SCL_IN22 SCB_3 CTS# CTS# GPIO_4 MOSI_OUT MOSI_IN SDA SDA23 SCB_4 TxD TxD TxD SCLK_OUT SCLK_IN GPIO_5 GPIO_52 SCB_5 DTR# GPIO_7 GPIO_7 GPIO_7 GPIO_7 GPIO_7 GPIO_7
*Note: The device is configured in Mode 0 as the default. Other modes can be configured using the configuration utility provided by Cypress.
GPIOSCB
Table 14. GPIO Configuration
GPIO Configuration Option Description
TRISTATE I/O tristatedDRIVE 1 Output static 1DRIVE 0 Output static 0POWER# This output is used to control power to an external logic through a switch to cut power off during an
unconfigured USB device and USB suspend.0 - USB device in Configured state1 - USB device in Unconfigured state or during USB suspend mode
TXLED# Drives LED during USB transmitRXLED# Drives LED during USB receive
TX or RX LED# Drives LED during USB transmit or receiveBCD0BCD1
Configurable battery charger detect pins to indicate the type of USB charger (SDP, CDP, or DCP) Configuration example:00 - Draw up to 100 mA (unconfigured state)01 - SDP (up to 500 mA)10 - CDP/DCP (up to 1.5 A)11 - Suspend (up to 2.5 mA)This truth table can be configured using a configuration utility
BUSDETECT VBUS detection. Connect the VBUS to this pin through a resistor network for VBUS detection when using the BCD feature (refer to page 19).
CS0, CS1, CS2, CS3, CS4 CapSense button input (max up to 5)
CSout0, CSout1, CSout2 Indicates which CapSense button is pressed
CMOD (Available on GPIO_0 only)
External modulator capacitor, connect a 2.2-nF capacitor (±10%) to ground
Cshield (optional) Shield for waterproofingNote: These signal options can be configured on any of the available GPIO pins using the configuration utility provided by Cypress.
CY7C65211
Document Number: 001-82042 Rev. *D Page 15 of 31
USB Power ConfigurationsThe following section describes possible USB power configurations for the CY7C65211. Refer to the Pin Description on page 13 for signal details.
USB Bus-Powered ConfigurationFigure 3 shows an example of the CY7C65211 in a bus-powered design. The VBUS is connected directly to the CY7C65211 because it has an internal regulator.The USB bus-powered system must comply with the following requirements:1. The system should not draw more than 100 mA prior to USB
enumeration (Unconfigured state).2. The system should not draw more than 2.5 mA during the USB
Suspend mode.
3. A high-power bus-powered system (can draw more than 100 mA when operational) must use POWER# (configured over GPIO) to keep the current consumption below 100 mA prior to USB enumeration, and 2.5 mA during USB Suspend state.
4. The system should not draw more than 500 mA from the USB host.
The configuration descriptor in the CY7C65211 flash should be updated to indicate bus power and the maximum current required by the system using the configuration utility.
Figure 3. Bus-Powered Configuration
USB CONNECTOR
VBUSD+D-GND
VBUS
VCCD
1 uF
0.1 uF
CY7C65211
USBDPUSBDM
VS
SD
nXRES
VDDD
SUSPENDWAKEUP
GPIO_0GPIO_1GPIO_2 / SCB_1GPIO_3 / SCB_2GPIO_4 / SCB_3
GPIO_9
VS
SA
GPIO_10GPIO_11
GPIO_5 / SCB_4GPIO_6 / SCB_0GPIO_7 / SCB_5GPIO_8
15
24
14
1011
12
317
8
22
20
VS
SD
VS
SD
1316
6
21
9
5
24
7
123
1819
POWER#
CY7C65211
Document Number: 001-82042 Rev. *D Page 16 of 31
Self-Powered ConfigurationFigure 4 shows an example of CY7C65211 in a self-powered design. A self-powered system does not use the VBUS from the host to power the system, but it has its own power supply. A self-powered system has no restriction on current consumption because it does not draw any current from the VBUS.When the VBUS is present, CY7C65211 enables an internal, 1.5-kΩ pull-up resistor on USBDP. When the VBUS is absent (USB host is powered down), CY7C65211 removes the 1.5-kΩ pull-up resistor on USBDP. This ensures that no current flows
from the USBDP to the USB host through a 1.5-kΩ pull-up resistor, to comply with the USB 2.0 specification.When reset is asserted to CY7C65211, all the I/O pins are tristated.The configuration descriptor in the CY7C65211 flash should be updated to indicate self-power using the configuration utility.
Figure 4. Self-Powered Configuration
USB CONNECTOR
VBUSD+D-GND
VBUS
0.1 uF
USBDPUSBDM
nXRES
VDDD
15
24
14
1011
1.71 to 1.89 Vor
2.00 to 5.50 V
VCCD
1 uFVSS
D
SUSPENDWAKEUP
GPIO_0GPIO_1
GPIO_9
VS
SA
GPIO_10GPIO_11
GPIO_8
12
317
8
22
20
VSS
D
VSS
D
1316
6
21
9
5
24
7
123
1819
CY7C65211
3.15 to 3.45 Vor
4.35 to 5.25 V
GPIO_2 / SCB_1GPIO_3 / SCB_2GPIO_4 / SCB_3
GPIO_5 / SCB_4GPIO_6 / SCB_0GPIO_7 / SCB_5
10K
4.7K
CY7C65211
Document Number: 001-82042 Rev. *D Page 17 of 31
USB Bus Powered with Variable I/O VoltageFigure 5 shows CY7C65211 in a bus-powered system with variable I/O voltage. A low dropout (LDO) regulator is used to supply 1.8 V or 3.3 V, using a jumper switch the input of which is 5 V from the VBUS. Another jumper switch is used to select 1.8/3.3 V or 5 V from the VBUS for the VDDD pin of CY7C65211. This allows I/O voltage and supply to external logic to be selected among 1.8 V, 3.3 V, or 5 V.The USB bus-powered system must comply with the following conditions:
The system should not draw more than 100 mA prior to USB enumeration (unconfigured state)
The system should not draw more than 2.5 mA during USB Suspend mode
A high-power bus-powered system (can draw more than 100 mA when operational) must use POWER# (configured over GPIO) to keep the current consumption below 100 mA prior to USB enumeration and 2.5 mA during the USB Suspend state
Figure 5. USB bus powered with 1.8-V, 3.3-V, or 5-V Variable I/O Voltage [4]
USB CONNECTOR
VBUSD+D-GND
0.1uF
Vin
GND
SHDn
Vout
Vadj
Jumper to select1.8 V or 3.3 V
VBUS
0.1 uF
TC 1070
1uF 1M
1 2 3
562K 2M
3.3 V 1.8 V
1 2 3
1.8/3.3 V
1.8/3.3 V
1.8 V or 3.3 V or 5 V Supply to External Logic
Jumper to select1.8 V/3.3 V or 5 V
Power Switch
POWER#
VBUSUSBDPUSBDM
nXRES
VDDD
15
24
14
1011
VCCD
1 uFVS
SD
SUSPENDWAKEUP
GPIO_0GPIO_1
GPIO_9
VS
SA
GPIO_10GPIO_11
GPIO_8
12
317
8
22
20
VSS
D
VSS
D
1316
6
21
9
5
24
7
123
1819
CY7C65211
GPIO_2 / SCB_1GPIO_3 / SCB_2
GPIO_4 / SCB_3
GPIO_5 / SCB_4GPIO_6 / SCB_0GPIO_7 / SCB_5
Note4. 1.71 V ≤ VDDD ≤ 1.89 V - Short VCCD pin with VDDD pin; VDDD > 2 V - connect a 1-µF decoupling capacitor to the VCCD pin.
CY7C65211
Document Number: 001-82042 Rev. *D Page 18 of 31
Application ExamplesThe following section provides CY7C65211 application examples.
USB-to-RS232 BridgeCY7C65211 can connect any embedded system, with a serial port, to a host PC through USB. CY7C65211 enumerates as a COM port on the host PC.The RS232 protocol follows bipolar signaling – that is, the output signal toggles between negative and positive polarity. The valid RS232 signal is either in the –3-V to –15-V range or in the +3-V to +15-V range, and the range between –3 V to +3 V is invalid. In the RS232, Logic 1 is called "Mark" and it corresponds to a negative voltage range. Logic 0 is called "Space" and it corre-sponds to a positive voltage range. The RS232 level converter
facilitates this polarity inversion and the voltage-level translation between the CY7C65211's UART interface and RS232 signaling.In this application, as shown in Figure 6, SUSPEND is connected to the SHDN# pin of the RS232-level converter to indicate USB suspend or USB not enumerated.GPIO8 and GPIO9 are configured as RXLED# and TXLED# to drive two LEDs, indicating data transmit and receive.
Figure 6. USB to RS232 Bridge
USB CONNECTOR
VBUSD+D-GND
0.1 uF
RS232 Level
Converter
RTSin
CTSout
TXDin
RXDout
RTSout
CTSin
TXDout
RXDin
1K
TXLED#
RXLED#
1K
VCC VCC
SHDN#
VBUS
VCCD
1 uF
CY7C65211
USBDPUSBDM
VSS
D
nXRES
VDDD
SUSPEND
GPIO_3 / SCB_2
GPIO_4 / SCB_3
VSS
AGPIO_5 / SCB_4
GPIO_6 / SCB_0
15
14
1011
12
317
8
22
VS
SD
VS
SD
1316
21
1
23
RXD
TXD
CTS#
RTS#
GPIO_9
GPIO_85
4
Vin
GND
SHDn
Vout
Vadj
Jumper to select1.8 V or 3.3 V
VBUS
0.1 uF
TC 1070
1uF 1M
1 2 3
562K 2M
3.3 V 1.8 V
1.8/3.3 V
24 1 2 3
1.8/3.3 V
Jumper to select1.8 V/3.3 V or 5 VVCC
CY7C65211
Document Number: 001-82042 Rev. *D Page 19 of 31
Battery-Operated, Bus-Powered USB to MCU with Battery Charge DetectionFigure 7 illustrates CY7C65211 as a USB-to-microcontroller interface. The TXD and RXD lines are used for data transfer, and the RTS# and CTS# lines are used for handshaking. The SUSPEND pin indicates to the MCU if the device is in USB Suspend, and the WAKEUP pin is used to wake up CY7C65211, which in turn issues a remote wakeup to the USB host.This application illustrates a battery-operated system, which is bus-powered. CY7C65211 implements the battery charger detection functionality based on the USB Battery Charging Specification, Rev. 1.2.Battery-operated bus power systems must comply with the following conditions:
The system can be powered from the battery (if not discharged) and can be operational if the VBUS is not connected or powered down.
The system should not draw more than 100 mA from the VBUS prior to USB enumeration and USB Suspend.
The system should not draw more than 500 mA for SDP and 1.5 A for CDP/DCP
To comply with the first requirement, the VBUS from the USB host is connected to the battery charger as well as to CY7C65211, as shown in Figure 7. When the VBUS is connected, CY7C65211 initiates battery charger detection and indicates the type of USB charger over BCD0 and BCD1. If the USB charger is SDP or CDP, CY7C65211 enables a 1.5-KΩ pull-up resistor on the USBDP for Full-Speed enumeration. When the VBUS is disconnected, CY7C65211 indicates an absence of the USB charger over BCD0 and BCD1, and removes the 1.5-KΩ pull-up resistor on USBDP. Removing this resistor ensures that no current flows from the supply to the USB host through the USBDP, to comply with the USB 2.0 specifi-cation.To comply with the second and third requirements, two signals (BCD0 and BCD1) are configured over GPIO to communicate the type of USB host charger and the amount of current it can draw from the battery charger. BCD0 and BCD1 signals can be configured using the configuration utility.
Figure 7. USB to MCU Interface with Battery Charge Detection [5]
BAT
SYS
USB CONNECTOR
VBUSD+D-GND
0.1 uF
BCD0
BCD1
MCU
VCC
TXD
CTS#
RTS#
RXD
I/O
GND
I/O
EN2
IN
EN1Battery Charger
(MAX8856)
VBUSUSBDPUSBDM
nXRES
VDDD
15
24
14
1011
VCCD
1 uFVSS
D
SUSPENDWAKEUP
GPIO_3 / SCB_2
GPIO_4 / SCB_3
GPIO_9
VS
SA
GPIO_10
GPIO_5 / SCB_4
GPIO_6 / SCB_0
12
317
8
22
VS
SD
VS
SD
1316
6
21
9
5
23
CY7C65211
RXD
TXD
CTS#
RTS#
1
OVP
4.7K 4.7K
GPIO_117
BA
BUSDETECT
Note5. Add a 100KΩ pull-down resistor on the VBUS pin for quick discharge.
CY7C65211
Document Number: 001-82042 Rev. *D Page 20 of 31
In a battery charger system, a 9-V spike on the VBUS is possible. The CY7C65211 VBUS pin is intolerant to voltage above 6 V. In the absence of over-voltage protection (OVP) on the VBUS line, the VBUS should be connected to BUSDETECT (GPIO configured) using the resistive network and the output of the battery charger to the VBUS pin of CY7C65211, as shown in the following figure.
When the VBUS and VDDD are at the same voltage potential, the VBUS can be connected to the GPIO using a series resistor (Rs). This is shown in the following figure. If there is a charger failure and the VBUS becomes 9 V, then the 10-kΩ resistor plays two roles. It reduces the amount of current flowing into the forward-biased diodes in the GPIO, and it reduces the voltage seen on the pad.
Figure 8. GPIO VBUS Detection, VBUS = VDDD
When the VBUS > VDDD, a resistor voltage divider is required to reduce the voltage from the VBUS down to VDDD for the GPIO sensing the VBUS voltage. This is shown in the following figure. The resistors should be sized as follows:R1 >= 10 kR2 / (R1 + R2) = VDDD / VBUSThe first condition limits the voltage and current for the charger failure situation, as described in the previous paragraph, while the second condition allows for normal-operation VBUS detection.
Figure 9. GPIO VBUS detection, VBUS > VDDD
B
Battery Charger BAT
SYS
CY7C65211
VBUS
GPIOBUSDETECT
Rs
A
BA
R1 BA
R2
VBUS = VDDD
VBUS > VDDD
R1 = 10 KR2/(R1+R2) = VDDD/VBUS
Rs = 10 K
VBUS
Rs VBUS
VDDDBUSDETECT
CY7C65211
R1 VBUS
R2
VDDD
CY7C65211BUSDETECT
CY7C65211
Document Number: 001-82042 Rev. *D Page 21 of 31
CapSenseIn Figure 10, CY7C65211 is configured to support four CapSense buttons. Three GPIOs are configured to indicate which CapSense button is pressed by the finger (as shown in the table next to the schematic). If two CapSense buttons are imple-mented, then two GPIOs (CSout0 and CSout1) are configured to indicate which CapSense button is pressed.A 2.2-nF (10%) capacitor (Cmod) must be connected on the GPIO_0 pin for proper CapSense operation.
Optionally, the GPIO_7 pin is configured as Cshield and connected to the shield of the CapSense button, as shown in Figure 10. Shield prevents false triggering of buttons due to water droplets, and guarantees CapSense operation (the sensors respond to finger touch).For further information on CapSense, refer to Getting Started with CapSense.
Figure 10. CapSense Schematic
Cmod
VBUS
VCCD
1 uF
CY7C65211
USBDPUSBDM
VS
SD
nXRES
VDDD
SUSPENDWAKEUP
GPIO_0
GPIO_1
GPIO_2 / SCB_1
GPIO_3 / SCB_2
GPIO_4 / SCB_3
GPIO_9
VSS
A
GPIO_10
GPIO_11
GPIO_5 / SCB_4
GPIO_6 / SCB_0GPIO_7 /
SCB_5
GPIO_8
15
24
14
1011
12
317
8
22
20
VS
SD
VS
SD
1316
621
9
5
2
4
7
1
23
18
19
2.2 nF
Cshield
Jumper to selectShield or No shield
CSout0
CSout1
CSout2
CSout2 CSout0 CSout1 Capsense button
0 0 0 No button pressed
0 0 1 CS0 0 1 0 CS1 0 1 1 CS2 1 0 0 CS3
MCU
UART_RxD
UART_TxD
VDDD
VCC
GND
560RCS0
560RCS2
560RCS3
560RCS1
123
I/OI/O
I/O
I/O
I/O
RxD
TxD
CY7C65211
Document Number: 001-82042 Rev. *D Page 22 of 31
USB-to-I2C BridgeIn Figure 11, CY7C65211 is configured as a USB-to-I2C Bridge. The CY7C65211 I2C can be configured as a master or a slave using the configuration utility. CY7C65211 supports I2C data rates up to 100 kbps in the standard mode (SM) and 400 kbps in the fast mode (FM).In the master mode, SCL is output from CY7C65211. In the slave mode, SCL is input to CY7C65211. The I2C slave address for CY7C65211 can be configured using the configuration utility. The
SDA data line is bi-directional in the master/slave modes. The drive modes of the SCL and SDA port pins are always open drain.GPIO8 and GPIO9 are configured as RXLED# and TXLED# to drive two LEDs to indicate USB receive and transmit. Refer to the NXP I2C specification for further details on the protocol.
Figure 11. USB-to-I2C Bridge
USB CONNECTOR
VBUSD+D-GND
0.1 uF
I2C Master/Slave
1K
TXLED#
RXLED#
1K
VDDD VDDD
VBUS
VCCD
1 uF
CY7C65211
USBDPUSBDM
VSS
D
nXRES
VDDD
GPIO_3 / SCB_2
GPIO_4 / SCB_3
VS
SA
15
24
14
1011
12
317
22
VS
SD
VS
SD
1316
21
SDA
SCL
GPIO_9
GPIO_85
4
RpRp
VDDD
Vin
GND
SHDn
Vout
Vadj
Jumper to select1.8 V or 3.3 V
VBUS
0.1 uF
TC 1070
1uF 1M
1 2 3
562K 2M
3.3 V 1.8 V
1.8/3.3 V
1 2 3
1.8/3.3 V
Jumper to select1.8 V/3.3 V or 5 V
VCC
GND
CY7C65211
Document Number: 001-82042 Rev. *D Page 23 of 31
USB-to-SPI BridgeIn Figure 12, CY7C65211 is configured as a USB-to-SPI Bridge. The CY7C65211 SPI can be configured as a master or a slave using the configuration utility. CY7C65211 supports SPI frequency up to 3 MHz. It can support transaction sizes ranging from 4 bits to 16 bits, which can be configured using the config-uration utility.
In the master mode, the SCLK, MOSI, and SSEL lines act as outputs and MISO acts as an input. In the slave mode, the SCL SCLK, MOSI, and SSEL lines act as inputs and MISO acts as an output. GPIO8 and GPIO9 are configured as RXLED# and TXLED# to drive two LEDs to indicate USB receive and transmit.
Figure 12. USB-to-SPI Bridge
CY7C65211 supports three versions of the SPI protocol:
Motorola - This is the original SPI protocol.
Texas Instruments - A variation of the original SPI protocol in which the data frames are identified by a pulse on the SSEL line.
National Semiconductors - A half-duplex variation of the original SPI protocol.
MotorolaThe original SPI protocol is defined by Motorola. It is a full-duplex protocol: transmission and reception occur at the same time.A single (full-duplex) data transfer follows these steps: The master selects a slave by driving its SSEL line to '0'. Next, it drives the data on its MOSI line and it drives a clock on its SCLK line. The slave uses the edges of the transmitted clock to capture the data on the MOSI line. The slave drives data on its MISO line. The master captures the data on the MISO line. Repeat the process for all bits in the data transfer.
Multiple data transfers may happen without the SSEL line changing from '0' to '1' and back from '1' to '0' in between the individual transfers. As a result, slaves must keep track of the progress of data transfers to separate individual transfers.When not transmitting data, the SSEL line is '1' and the SCLK is typically off.The Motorola SPI protocol has four modes that determine how data is driven and captured on the MOSI and MISO lines. These modes are determined by clock polarity (CPOL) and clock phase (CPHA). Clock polarity determines the value of the SCLK line when not transmitting data:
CPOL is '0': SCLK is '0' when not transmitting data.
CPOL is '1': SCLK is '1' when not transmitting data.The clock phase determines when data is driven and captured. It is dependent on the value of CPOL:
USB CONNECTOR
VBUSD+D-GND
0.1 uF
SPI Master/Slave
1K
TXLED#
RXLED#
1K
VDDD VDDD
VBUS
VCCD
1 uF
CY7C65211
USBDPUSBDM
VSS
D
nXRES
VDDD
GPIO_3 / SCB_2
GPIO_4 / SCB_3
VSS
A
15
24
14
1011
12
317
22
VS
SD
VS
SD
1316
21
GPIO_9
GPIO_85
4
10K
VDDD
Vin
GND
SHDn
Vout
Vadj
Jumper to select1.8 V or 3.3 V
VBUS
0.1 uF
TC 1070
1uF 1M
1 2 3
562K 2M
3.3 V 1.8 V
1.8/3.3 V
1 2 3
1.8/3.3 V
Jumper to select1.8 V/3.3 V or 5 V
GPIO_2 / SCB_1
GPIO_5 / SCB_4
20
23
SSEL
MISO
MOSISCLK
VCC
GND
CY7C65211
Document Number: 001-82042 Rev. *D Page 24 of 31
Figure 13. Driving and Capturing MOSI/MISO Data As A Function of CPOL and CPHA
Figure 14. Single 8-bit Data Transfer and Two Successive 8-bit Data Transfers in Mode 0 (CPOL is ‘0’, CPHA is ‘0’)
Table 15. SPI Protocol Modes
Mode CPOL CPHA Description0 0 0 Data is driven on a falling edge of SCLK. Data is captured on a rising edge of SCLK1 0 1 Data is driven on a rising edge of SCLK. Data is captured on a falling edge of SCLK2 1 0 Data is driven on a rising edge of SCLK. Data is captured on a falling edge of SCLK3 1 1 Data is driven on a falling edge of SCLK. Data is captured on a rising edge of SCLK
CPOL: ‘0’, CPHA: ‘0’
LEGEND: CPOL: Clock Polarity CPHA: Clock Phase SCLK: SPI interface clock MOSI: SPI Master Out / Slave In MISO: SPI Master In / Slave Out
SCLK
MOSI/MISO
CPOL: ‘0’, CPHA: ‘1’SCLK
MOSI/MISO
CPOL: ‘1’, CPHA: ‘0’
MOSI/MISO
SCLK
CPOL: ‘1’, CPHA: ‘0’
MOSI/MISO
SCLK
MSB
MSB
MSB
MSB LSB
LSB
LSB
LSB
CPOL: ‘0’, CPHA: ‘0’, single data transfer
SCLK
SSEL
MOSI MSB LSB
CPOL: ‘0’, CPHA: ‘0’, two successive data transfers
SCLK
SSEL
MOSI MSB LSB MSB LSB
LEGEND: CPOL: Clock Polarity CPHA: Clock Phase SCLK: SPI interface clock SSEL: SPI slave select MOSI: SPI Master Out / Slave In MISO: SPI Master In / Slave Out
MISO MSB LSB
MISO MSB LSB MSB LSB
CY7C65211
Document Number: 001-82042 Rev. *D Page 25 of 31
Texas InstrumentsTexas Instruments' SPI protocol redefines the use of the SSEL signal. It uses the signal to indicate the start of a data transfer, rather than a low, active slave-select signal. The start of a transfer is indicated by a high, active pulse of a single-bit transfer period. This pulse may occur one cycle before the transmission of the first data bit, or it may coincide with the transmission of the first data bit. The transmitted clock SCLK is a free-running clock.
The TI SPI protocol only supports mode 1 (CPOL is '0' and CPHA is '1'): Data is driven on a rising edge of SCLK and data is captured on a falling edge of SCLK.The following figure illustrates a single 8-bit data transfer and two successive 8-bit data transfers. The SSEL pulse precedes the first data bit. Note how the SSEL pulse of the second data transfer coincides with the last data bit of the first data transfer.
The following figure illustrates a single 8-bit data transfer and two successive 8-bit data transfers. The SSEL pulse coincides with the first data bit.
Single data transfer
SCLK
SSEL
MOSI MSB LSB
Two successive data transfers
SCLK
SSEL
MOSI MSB LSB MSB LSB
LEGEND: SCLK: SPI interface clock SSEL: SPI slave select pulse MOSI: SPI Master Out / Slave In MISO: SPI Master In / Slave Out
MISO MSB LSB
MISO MSB LSB MSB LSB
Single data transfer
SCLK
SSEL
MOSI MSB LSB
Two successive data transfers
SCLK
SSEL
MOSI MSB LSB MSB LSB
LEGEND: SCLK: SPI interface clock SSEL: SPI slave select pulse MOSI: SPI Master Out / Slave In MISO: SPI Master In / Slave Out
MISO MSB LSB
MISO MSB LSB MSB LSB
CY7C65211
Document Number: 001-82042 Rev. *D Page 26 of 31
National SemiconductorNational Semiconductor’s SPI protocol is a half-duplex protocol. Rather than transmission and reception occurring at the same time, they take turns (transmission happens before reception). A single "idle" bit transfer period separates transmission from reception. Note Successive data transfers are NOT separated by an "idle" bit transfer period.
The transmission data transfer size and reception data transfer size may differ. National Semiconductor’s SPI protocol supports only mode 0: Data is driven on a falling edge of SCLK, and data is captured on a rising edge of SCLK.The following figure illustrates a single data transfer and two successive data transfers. In both cases, the transmission data transfer size is 8 bits and the reception transfer size is 4 bits.
Note The above figure defines MISO and MOSI as undefined when the lines are considered idle (not carrying valid information). It will drive the outgoing line values to '0' during idle time (to satisfy the requirements of specific master devices (NXP LPC17xx) and specific slave devices (MicroChip EEPROM).
LEGEND: SCLK: SPI interface clock SSEL: SPI slave select MOSI: SPI Master Out / Slave In MISO: SPI Master In / Slave Out
Single data transfer
SCLK
SSEL
MOSI MSB LSB
MISO MSB LSB
Two successive data transfers
SCLK
SSEL
MOSI MSB LSB
MISO MSB LSB
“idle” ‘0’ cycle
MSB
“idle” ‘0’ cycle
no “idle” cycle
CY7C65211
Document Number: 001-82042 Rev. *D Page 27 of 31
Ordering InformationTable 16 lists the key package features and ordering codes of the CY7C65211. For more information, contact your local sales repre-sentative.
Ordering Code Definitions
Table 16. Key Features and Ordering Information
Package Ordering Code Operating Range24-pin QFN (4.00 × 4.00 × 0.55 mm, 0.5 mm pitch) (Pb-free) CY7C65211-24LTXI Industrial
CY 7 C 65 -xxx xxLT
Package type: 24-pin QFN
211
Family Code: USB
Technology Code: C = CMOS
Marketing Code: 7 = Cypress products
Company Code: CY = Cypress
X
Pb-free
I
Industrial
CY7C65211
Document Number: 001-82042 Rev. *D Page 28 of 31
Package InformationSupport currently is planned for the 24-pin QFN package.
Figure 15. 24-pin QFN 4 mm × 4 mm × 0.55 mm LQ24A 2.65 × 2.65 EPAD (Sawn)
001-13937 *E
Table 17. Package Characteristics
Parameter Description Min Typ Max UnitsTA Operating ambient temperature –40 25 85 °CTHJ Package θJA – 18.4 – °C/W
Table 18. Solder Reflow Peak Temperature
Package Maximum Peak Temperature Maximum Time at Peak Temperature24-pin QFN 260 °C 30 seconds
Table 19. Package Moisture Sensitivity Level (MSL), IPC/JEDEC J-STD-2
Package MSL24-pin QFN MSL 3
CY7C65211
Document Number: 001-82042 Rev. *D Page 29 of 31
Acronyms Document ConventionsUnits of MeasureTable 20. Acronyms Used in this Document
Acronym DescriptionBCD battery charger detection
CDC communication driver class
CDP charging downstream port
DCP dedicated charging port
DLL dynamic link library
ESD electrostatic discharge
GPIO general purpose input/output
HBM human-body model
I2C inter-integrated circuit
MCU microcontroller unit
OSC oscillator
PHDC personal health care device class
PID product identification
SCB serial communication block
SCL I2C serial clock
SDA I2C serial data
SDP standard downstream port
SIE serial interface engine
SPI serial peripheral interface
VCOM virtual communication port
USB Universal Serial Bus
UART universal asynchronous receiver transmitter
VID vendor identification
Table 21. Units of Measure
Symbol Unit of Measure°C degree Celsius
DMIPS Dhrystone million instructions per second
kΩ kilo-ohm
KB kilobyte
kHz kilohertz
kV kilovolt
Mbps megabits per second
MHz megahertz
mm millimeter
V volt
CY7C65211
Document Number: 001-82042 Rev. *D Page 30 of 31
Document History Page
Document Title: CY7C65211 USB-Serial Single-Channel (UART/I2C/SPI) Bridge with CapSense® and BCDDocument Number: 001-82042
Revision ECN Orig. of Change
Submission Date Description of Change
** 3714911 ZKR 08/24/2012 New datasheet.*A 3814090 ZKR 12/19/2012 Removed reference to HID.
Changed number of GPIO pins from 14 to 12.Updated description for Vhysttl parameter.Updated Pin Description.
*B 3947144 ZKR 03/28/2013 Removed “4-KB SRAM” from Features and Contents.Updated Block Diagram and System Resources.Removed CPU, Flash, and SRAM sections.Updated USB PID in Internal Flash ConfigurationTable 1.Removed VCC2 and VCCIO2 parameter descriptions in DC Specifications.Changed CPU Frequency parameter to Frequency parameter in AC Specifications.Updated GPIO AC SpecificationUpdated Pin Description and Battery-Operated, Bus-Powered USB to MCU with Battery Charge Detection sections.Added USB Power Configurations and Application Examples sections.Removed Flash/SRAM feature from Ordering Information
*C 4002280 ZKR 05/16/2013 Changed XRES to nXRES throughout the document.Changed flash size to 512 bytes.Added note in I2C Interface section.Added note for Absolute Maximum Ratings.Changed maximum current per GPIO from 100 mA to 25 mA.Added note for VIH parameter in GPIO DC SpecificationRemoved Csout_int from GPIO Configuration section.Updated schematic USB to MCU Interface with Battery Charge Detection.Updated CapSense schematic.
*D 4019327 ZKR 06/13/2013 Changed status from Preliminary to Final.Updated Features.Updated Block Diagram.Updated Functional Overview.Updated Electrical Specifications.Updated Pin Description.Updated USB Power Configurations.Updated Application Examples.
Document Number: 001-82042 Rev. *D Revised June 13, 2013 Page 31 of 31
All products and company names mentioned in this document may be the trademarks of their respective holders.
CY7C65211
© Cypress Semiconductor Corporation, 2012-2013. The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the use ofany circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted nor intended to be used formedical, life support, life saving, critical control or safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use ascritical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress products in life-support systemsapplication implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
Any Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide patent protection (United States and foreign),United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of,and compile the Cypress Source Code and derivative works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypressintegrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source Code except as specified above is prohibited withoutthe express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIESOF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described herein. Cypress does notassume any liability arising out of the application or use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems wherea malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress’ product in a life-support systems application implies that the manufacturerassumes all risk of such use and in doing so indemnifies Cypress against all charges.
Use may be limited by and subject to the applicable Cypress software license agreement.
Sales, Solutions, and Legal InformationWorldwide Sales and Design SupportCypress maintains a worldwide network of offices, solution centers, manufacturer’s representatives, and distributors. To find the office closest to you, visit us at Cypress Locations.
ProductsAutomotive cypress.com/go/automotiveClocks & Buffers cypress.com/go/clocksInterface cypress.com/go/interfaceLighting & Power Control cypress.com/go/powerpsoc
cypress.com/go/plcMemory cypress.com/go/memoryPSoC cypress.com/go/psocTouch Sensing cypress.com/go/touchUSB Controllers cypress.com/go/USBWireless/RF cypress.com/go/wireless
PSoC® Solutionspsoc.cypress.com/solutionsPSoC 1 | PSoC 3 | PSoC 4 | PSoC 5LP
Cypress Developer CommunityCommunity | Forums | Blogs | Video | Training
Technical Supportcypress.com/go/support