Cypress USB-Serial Configuration Utility User Guide
Cypress USB-Serial Configuration Utility User Guide
0
User Guide
Doc. No. 001-86781 Rev. *D
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 880.858.1810
Phone (Intnl): 408.943.2600
http://www.cypress.com
Copyrights
Copyrights
Cypress Semiconductor Corporation, 2014-2015. The information contained herein is subject to change without notice.
Cypress Semiconductor Corporation assumes no responsibility for the use of any 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 for medical, 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 as critical
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 systems application implies that the manufacturer assumes all
risk of such use and in doing so indemnifies Cypress against all charges.
Trademarks
PSoC Designer, and Programmable System-on-Chip are trademarks and PSoC is a registered trademark of Cypress
Semiconductor Corp. All other trademarks or registered trademarks referenced herein are property of the respective
corporations.
Source Code
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 Cypress
integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or
representation of this Source Code except as specified above is prohibited without the 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 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described
herein. Cypress does not assume 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 where a 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 manufacturer assumes 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.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 2
Contents
Contents
1. Introduction .................................................................................................................................................................... 4
1.1 Software Requirements ......................................................................................................................................... 4
3. Appendix ...................................................................................................................................................................... 37
3.1 Driver Binding for USB-Serial Devices with Custom VID/PID .............................................................................. 37
3.1.1 Driver INF File Changes ......................................................................................................................... 37
3.1.2 Master Interface Number of USB-Serial Device Configuration ............................................................... 40
3.2 Default Value for Various Configurable Fields ..................................................................................................... 41
3.2.1 CY7C65213 / CY7C65213A ................................................................................................................... 41
3.2.2 CY7C65215 / CY7C65215A ................................................................................................................... 42
3.2.3 CY7C65211 / CY7C65211A ................................................................................................................... 44
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 3
1. Introduction
The Cypress USB-Serial Configuration Utility provides an easy-to-use graphical interface to configure manufacturing settings and
options for Cypress USB-Serial devices. With this utility, you can connect to USB-Serial devices, modify the configuration settings,
and program the configuration to the device.
This user guide describes the USB-Serial Configuration Utility features and how to use the utility to configure a supported device.
The current version of the utility supports configuring the Cypress USB-Serial device part numbers listed in Table 1-1.
Table 1-1. Supported USB-Serial Devices
# Part Number Description
1 CY7C65211-24LTXI USB-Serial (Single Channel)
4 CY7C65211A-24LTXI USB-Serial (Single Channel)
3 CY7C65213-32LTXI USB-UART LP (QFN Package)
4 CY7C65213A-32LTXI USB-UART LP (QFN Package)
5 CY7C65213-28PVXI USB-UART LP (SSOP Package)
6 CY7C65213A-28VXI USB-UART LP (SSOP Package)
7 CY7C65215-32LTXI USB-Serial (Dual Channel)
8 CY7C65215A-32LTXI USB-Serial (Dual Channel)
Note 1: Microsoft.NET framework 3.5SP1 can be downloaded and installed from Microsoft website. The link to the installable on
Microsofts website is: http://www.microsoft.com/en-us/download/details.aspx?id=22.
Note 2: Microsoft VC++ 2008 runtime re-distributable is packaged along with USB-Serial SDK for Windows. The re-distributable can
be located under the <sdk_install_path>\prerequisite directory. The package can also be downloaded and installed
from the Microsoft website. The link to the installable is: http://www.microsoft.com/en-us/download/details.aspx?id=11895.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 4
2. Cypress USB-Serial Configuration Utility
Run USB-Serial Configuration Utility.exe from Start>All Programs>Cypress>Cypress USB-Serial Configuration Utility to launch
the configuration utility. On start-up, the utility comes up with two active tabs Start Page and Select Target. These tabs are
always visible and you can navigate between these tabs at any time during the configuration session.
After you connect to an attached Cypress USB-Serial device (from the Select Target tab), the utility opens a third tab (Device tab)
for the part number of the device selected. This tab allows you to view and configure the device settings.
Note: The exact name of the third tab will be the device part number. The device part numbers are listed in Table 1-1. Throughout
the document, this tab will be referred to as the Device tab.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 5
Cypress USB-Serial Configuration Utility
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 6
Cypress USB-Serial Configuration Utility
The following device configuration settings can be viewed and modified:
1. USB Descriptors and system-level settings
2. Serial Configuration Block (SCB)
3. CapSense/BCD/GPIO
2.3.1.1 Basic
The basic descriptor settings include the device Vendor ID (VID) and Product ID (PID) values. The device can be configured to
either use the default Cypress-provided VID and PID combination or to use a custom VID and PID combination (see Figure 2-3).
Figure 2-3: USB - Basic Settings
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 7
Cypress USB-Serial Configuration Utility
Table 2-2: Cypress USB-Serial Device PIDs
SCB 0 SCB 1
# Part Number PID
Mode Protocol Mode Protocol
UART CDC NA NA 0x0002
1. CY7C65211-24LTXI UART/ SPI Vendor / PHDC NA NA 0x0004
I2C Vendor NA NA 0x0004
UART CDC NA NA 0x0002
Vendor / PHDC /
2. CY7C65211A-24LTXI UART/ SPI NA NA 0x0004
CDC
I2C Vendor / CDC NA NA 0x0004
CY7C65213-32LTXI UART CDC NA NA 0x0003
Or
CY7C65213-28PVXI
3. Or
UART Vendor / PHDC NA NA 0x0006
CY7C65213A-28VXI
Or
CY7C65213A-32LTXI
UART CDC UART CDC 0x0005
UART / SPI / I2C /
UART CDC Vendor / PHDC 0x0007
JTAG
UART / SPI Vendor / PHDC UART CDC 0x0009
CDC: CDC device referred in this document is a UART device that follows USB Standard Communication Device Class
Specification. And, this device binds to a Virtual COM port driver for the supported operating system.
Vendor: Vendor operational mode device doesnt follow any USB standard class specification. They are custom or vendor USB
class devices that follow custom data transfer protocol. USB to (SPI or I2C or JTAG) Bridge is always configured as Vendor Device.
UART can also be a vendor device and in this mode, UART device doesnt bind to Virtual COM port driver. Instead, the UART
device will bind to cypress generic USB driver or vendor mode driver in the supported Operating System.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 8
Cypress USB-Serial Configuration Utility
PHDC: Device that follow Personal Healthcare Device Class Specification is referred as PHDC devices. USB Serial Bridge supports
PHDC USB to UART and PHDC USB to SPI Bridge. PHDC device binds to generic USB device driver otherwise called as vendor
mode driver.
Figure 2-4: USB - Use Custom VID/PID
To use a custom VID and PID for your device, uncheck the Use Cypress VID / PID option. On unchecking this option, the VID field
becomes editable. Enter the required VID (other than Cypress VID [0x04B4]) and hit the <Tab> or <Enter> key to enable the PID
field. Refer to the Driver Binding for USB-Serial Devices with Custom VID/PID section for binding the driver to USB-Serial devices
with custom VID/PID.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 9
Cypress USB-Serial Configuration Utility
2.3.1.2.3.2 Suspend
Select the Suspend Enable option to enable the GPIO suspend notification for your device. The editor also provides an option to
invert the polarity of the suspend line. The suspend wake-up line is fixed for CY7C65211-24LTXI and CY7C65215-32LTXI devices.
Refer to the respective device datasheets for the exact suspend GPIO pin. For theCY7C65213-32LTXIor CY7C65213-28PVXI
devices, the suspend GPIO is configurable. That is, one of the available GPIOs can be configured as the suspend line. Figure 2-7
shows the Suspend & Remote Wake-up editor for the CY7C65213-32LTXI or CY7C65213-28PVXI device.
Figure 2-7: CY7C65213-32LTXI or CY7C65213-28PVXI Suspend & Remote Wake-up Editor
2.3.1.2.3.3 Power#
Select a GPIO from the Power# drop-down list to enable power notification. To disable this option, select Not enabled from the
drop-down list.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 10
Cypress USB-Serial Configuration Utility
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 11
Cypress USB-Serial Configuration Utility
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 12
Cypress USB-Serial Configuration Utility
The following sections capture the configurable options available for these devices.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 13
Cypress USB-Serial Configuration Utility
In addition to these operation modes, SCB1 also supports JTAG mode. If needed, SCB1 can also be disabled to free up SCB
GPIOs to be used for Cypress CapSense. Figure 2-13 and Figure 2-14 show the default configuration for SCB0 and SCB1.
Figure 2-13: SCB 0 Configuration
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 14
Cypress USB-Serial Configuration Utility
2.3.2.2 Select SCB Operation Mode
The Mode drop-down combo box lists all the supported SCB operation modes. Select the required operation mode from this list.
Most of these modes provide additional configuration settings. These mode-specific configurations can be edited by clicking the
Configure button.
The following sections describe the configurable options available for each of the supported SCB modes.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 15
Cypress USB-Serial Configuration Utility
2.3.2.3.1.1 Baud Rate
Select the required baud rate from the standard baud rates listed in the combo box or enter a custom baud rate. The UART
supports a baud rate in the range 100 to 3000000.
The default value is 115200
2.3.2.3.1.2 Type
The UART can be configured to one of the following types:
2-pin (2-pin UART: Only RX and TX lines)
4-pin (4-pin UART: RX, TX, RTS and CTS lines)
6-pin (6-pin UART: RX, TX, RTS, CTS, DSR and DTR lines)
8-pin (8-pin UART: RX, TX, RTS, CTS, DSR, DTR, DCD and RI lines)
The default value is 2-pin.
For the USB-UART LP device, the UART is pre-configured to 8-pin UART with RX, TX, RTS, CTS, DSR, DTR, DCD, and RI lines.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 16
Cypress USB-Serial Configuration Utility
2.3.2.3.1.9 Invert Signal Polarity
The USB-UART LP device supports inverting the polarity of the UART signals. The polarity of all the UART lines, except the RX and
TX lines, can be inverted. Figure 2-16 shows the UART configuration editor for the USB-UART LP device.
Figure 2-16: USB-UART LP UART Configuration
This feature is not available in the USB-Serial (single-channel) and USB-Serial (dual-channel) devices.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 17
Cypress USB-Serial Configuration Utility
Figure 2-18. I2C Slave Configuration
2.3.2.3.2.2 Mode
The I2C operation mode can be set to either Master or Slave. By default, the I2C is configured to operate in the master mode.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 18
Cypress USB-Serial Configuration Utility
Figure 2-19. I2C slave VCP Configuration
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 19
Cypress USB-Serial Configuration Utility
Figure 2-20: SPI Configuration
2.3.2.3.3.1 Frequency
This field allows setting of the SPI operating frequency in Hz. The SPI mode supports operating frequencies in the range 1 KHz to
3 MHz (1000 to 3000000). In the slave mode operation, the slave should be clocked at a higher or same frequency as that of the
master.
The default frequency is 1000Hz (1 KHz).
2.3.2.3.3.3 Protocol
SPI can be configured to operate in one of the following protocols.
Motorola
Texas Instruments (TI)
National Semiconductor (NS)
Table 2-5 briefly describes each of the supported protocols.
Table 2-5. SPI Supported Protocols
# Mode Description
In Master mode,
1. When not transmitting data (SELECT line is inactive), SCLK is stable at CPOL
1. Motorola 2. When there is no data to transmit (TX FIFO is empty), SELECT line is inactive
In Slave mode,
1. When not selected, SCLK is ignored (SCLK can be either stable or clocking)
In Master mode,
1. When not transmitting data, SCLK is stable at 0
2. TI (supports only mode 1) 2. When there is no data to transmit (TX FIFO is empty), SELECT line is inactive
In Slave mode,
1. When not selected, SCLK is ignored (SCLK can be either stable or clocking)
In Master mode,
1. When not transmitting data, SCLK is stable at 0
3. NS (supports only mode 0) 2. When there is no data to transmit (TX FIFO is empty), SELECT line is inactive
In Slave mode,
1. When not selected, SCLK is ignored (SCLK can be either stable or clocking)
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 20
Cypress USB-Serial Configuration Utility
2.3.2.3.3.4 SPI Mode
The SPI can be configured to operate as either master or slave. By default, the operating mode is set to Master.
Individual data frame transfers are always separated by slave de-selection. Independent of
1. Frame
the availability of TX FIFO data frames, data frames are sent out with slave de-selection.
Individual data frame transfers are not necessarily separated by slave de-selection (as
2. Continuous indicated by the SELECT line). If the TX FIFO has multiple data frames, data frames are sent
out without slave de-selection.
This field is used for master mode configuration. The Slave mode supports both continuous and frame mode data transfers.
The default value is Continuous.
The CPHA and CPOL fields combine to form the four modes supported by the Motorola protocol. Table 2-8 captures the four
Motorola modes:
Table 2-8. SPI Motorola Modes
# Mode CPOL CPHA Description
Data is captured on the rising edge of SCLK and data is propagated on the
1. Mode 0 Low Low
falling edge of SCLK
Data is captured on the falling edge of SCLK and data is propagate on the
2. Mode 1 Low High
rising edge of SCLK
Data is captured on the falling edge of SCLK and data is propagated on the
3. Mode 2 High Low
rising edge of SCLK
Data is captured on the rising edge of SCLK and data is propagated in the
4. Mode 3 High High
falling edge of SCLK
The CPHA and CPOL fields are available only when the SPI protocol is set to Motorola. By default, the CPOL and CPHA values are
set to Low.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 21
Cypress USB-Serial Configuration Utility
2.3.2.3.3.8 Enable Select Precede
This field is available only when the SPI protocol is set to the Texas Instruments (TI) mode. Table 2-9 describes the behavior when
this field is enabled or disabled.
Table 2-9. SPI Select Precede
# Options Description
1. Enabled (checked) Data frame start indication pulse on the SELECT line precedes the transfer of the first data frame bit
2. Disabled (unchecked) Data frame start indication pulse on the SELECT coincides with the transfer of the first data frame bit
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 22
Cypress USB-Serial Configuration Utility
The device supports individual notification for each of the SCBs in the device. Notification can be configured for either one of the
SCBs or both the SCBs or none.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 23
Cypress USB-Serial Configuration Utility
USB-Serial (Single Channel) and USB-Serial (Dual Channel) devices support up to eight CapSense buttons depending on the free
GPIOs. The device supports only single-button detection. The CapSense output is indicated over binary coded output GPIO lines.
LED based indication (ON/OFF) is also provided as output. The CapSense/BCD/GPIO tab of the utility allows configuration of
CapSense in the device.
Figure 2-23: CapSense Configuration & Validation
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 24
Cypress USB-Serial Configuration Utility
2.3.4.1.1.2 Debounce
The Debounce value defines the number of scan cycles that a button needs to be in pressed state for the device to detect and
report the button press status. For example, if the debounce value is set to two, the device reports a button press status only when it
detects the button press for two continuous scan cycles.
Debounce ensures that a high-frequency, high-amplitude noise does not cause false detection of a pressed button. The debounce
value can be set to any value between 1 and 5. By default, the debounce value is set to 1.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 25
Cypress USB-Serial Configuration Utility
Figure 2-26: Activity LED
Activity LED selection affects the maximum number of CapSense buttons that can be configured. Therefore, select the required
notification before selecting the required CapSense buttons.
2.3.4.1.1.6 None
To disable the notification for the CapSense button, select the None radio button from the Activity LED group. In this configuration,
there will no LED notification for the CapSense button pressed state.
2.3.4.1.1.7 Individual
Select the Individual radio button to get an individual notification LED for each of the selected CapSense buttons.
2.3.4.1.1.8 Common
Select the Common radio button to get a single notification LED for all the selected CapSense buttons. When this option is
selected, you can choose the GPIO to be used for notification from the drop-down list.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 26
Cypress USB-Serial Configuration Utility
On clicking the Auto Assign button, the utility automatically assigns the GPIOs from the available free pool, as shown in
Figure 2-28.
Figure 2-28: Auto Assign GPIOs
The Auto Assign feature also works with partial GPIO assignments. Select GPIOs for some of the required fields and then click
Auto Assign. The utility will populate the remaining fields with the available GPIOs.
Figure 2-29: Modify Automatic GPIO Assignments
The utility enables modification of the auto-assigned pins. In Figure 2-29, the Input GPIO assignment for Button 2 is modified from
GPIO 07 to GPIO 18.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 27
Cypress USB-Serial Configuration Utility
Figure 2-30: CapSense GPIO Re-assignment
The utility also allows re-assigning an already selected GPIO for another field. In Figure 2-30, GPIO 01 is re-assigned to Button 2
Activity LED GPIO from Button 1 Input GPIO. Note the error icon next to the Button 1 Input GPIO field after re-assignment.
2.3.4.1.1.11 Sensitivity
The utility allows configuration of the individual button sensitivity in terms of finger capacitance. The sensitivity can be set to any
value between 0.1pF and 0.4pF from the drop-down list. By default, the sensitivity of all the buttons is set to 0.1 pF.
The encoded GPIO lines indicate the button press status as binary coded output. For example, consider a design with three
CapSense buttons B1, B2 and B3. The design would require two encoded output GPIOs O1 and O2.
Table 2-12 illustrates the mapping between the button press state and the output GPIO states.
Table 2-12: Encoded Output GPIO State
The device supports only single button detection. When multiple buttons are pressed at the same time, the lowest button number
will be indicated.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 28
Cypress USB-Serial Configuration Utility
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 29
Cypress USB-Serial Configuration Utility
The editor (shown in Figure 2-32) allows selection of GPIOs for the BCD pins and sets the BCD pin drive state for each of the
different battery detection modes.
Figure 2-32: BCD Configuration Editor
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 30
Cypress USB-Serial Configuration Utility
The configuration editor (see Figure 2-34) lists all the remaining free GPIOs in the device. Select the drive mode for each of these
GPIOs from the drop-down list. By default, the free GPIOs are configured as Tristate.
Figure 2-34: GPIO Drive Mode Editor
Refer to the device datasheet and the Cypress USB-Serial API guide on the functionalities supported by the GPIOs.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 31
Cypress USB-Serial Configuration Utility
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 32
Cypress USB-Serial Configuration Utility
Figure 2-35: Batch Programmer
7. On successfully loading, the utility searches for the attached devices and lists the devices, which support the selected
configuration, in the Devices table (see Figure 2-37). The Devices table allows viewing some of the basic details of the
device such as Device Name and Windows Device Instance ID.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 33
Cypress USB-Serial Configuration Utility
Figure 2-37: Load Configuration File
8. The utility allows selecting the devices to be programmed by checking the checkbox corresponding to the device of
interest. The utility also allows selecting all the devices simultaneously by clicking the Select All button. All the selected
devices are added to the programming queue as indicated by the Program Status field of the device, as shown in
Figure 2-38.
Figure 2-38: Devices Queued for Programming
9. A device can be removed from the programming queue by unchecking the checkbox. To remove all the devices from the
queue, click on the De-select All button.
10. After choosing the devices to be programmed, click Program to start the batch programming. The utility starts to program
the devices sequentially in the order listed in the Device table. The progress bar and the Program Status field in the Device
table are updated to notify the progress (see Figure 2-39).
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 34
Cypress USB-Serial Configuration Utility
Figure 2-39: Batch Programming In-progress
11. The utility allows cancelling or stopping the batch programming by clicking the Cancel button. The utility stops the
programming process after completing the current device. The status of all devices, which were cancelled are indicated as
Cancelled in the Program Status field.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 35
Cypress USB-Serial Configuration Utility
Figure 2-41: Batch Programming Cancelled
12. Click Close to exit the Batch Programmer and return to the main utility window.
2.3.12 Disconnect
The utility allows connecting to only one device at a time. To connect to another device that is attached to the machine, the utility
needs to disconnect from the current device.
To disconnect from the connected device, click the Disconnect button at the bottom of the Device tab. The device can also be
disconnected by selecting Disconnect from the Device menu (Device > Disconnect).
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 36
3. Appendix
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 37
Appendix
Follow these steps to modify the INF file to use Cypress generic USB 3.0 driver with custom VID/PID:
1. Open the cyusb3.inf file located in thewin7\x86 directory (see Figure 3-1) in a text editor like Notepad.
2. Scroll down in the text editor until the section [Device.NT] is visible.
3. The [Device.NT] section contains entries for all the devices supported by the driver. Add an entry for the new device in the
following format:
%VID_XXXX&PID_YYYY&MI_ZZ.DeviceDesc%=CyUsb3, USB\ VID_XXXX&PID_YYYY&MI_ZZ
Where,
XXXX Device Vendor ID (VID) in hexadecimal
YYYY Device Product ID (PID) in hexadecimal
ZZ Master Interface Number in hexadecimal
4. Copy the entry created in step 3 and paste it under the sections [Device.NTx86] and [Device.NTamd64]
5. Scroll down in the text editor until the[String] section is visible
6. Under the [String]section add an entry in the following format:
VID_XXXX&PID_YYYY&MI_ZZ.DeviceDesc=<Device Friendly Name>
Where,
XXXX Device Vendor ID (VID) in hexadecimal
YYYY Device Product ID (PID) in hexadecimal
ZZ Master Interface Number in hexadecimal (refer to the Master Interface Number of USB-Serial Device Configuration
section)
<Device Friendly Name> -- String to be used by the OS for the device in the Device Manager (as highlighted in
Figure 3-2).
7. The values of XXXX, YYYY, and ZZ should match with value mentioned in step 3.
Figure 3-2: Device Friendly Name for Cypress Generic USB 3.0 Devices
8. Repeat steps 2 to 6 for all device interfaces, which needs to bind to the Cypress Generic USB 3.0 driver
9. Repeat steps 2 to 7 for all the cyusb3.inf files located under the <install_path>/driver/cyusb3/bin directory.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 38
Appendix
3.1.1.2 Modifying Cypress CDC Driver INF
The Cypress CDC driver (CypressUsbConsoleWindowsDriver.sys) is packaged along the USB-Serial SDK and can be located on
the disk at <install_path>/driver/cyusbserial/bin, where <install_path> is the location where the SDK is installed.
Figure 3-3: Cypress CDC Driver Directory Structure
Figure 3-3 shows the driver directory structure under the bin directory.
Follow these steps to modify the INF file to use the Cypress CDC driver with a custom VID/PID:
1. Open the CypressUsbAndBus.inf file located in win7\x86 directory (as shown in Figure 3-3) in a text editor like Notepad.
2. Scroll down in the text editor until section [Cypress] is visible. For INF files under x64 directory this will be
[Cypress.NTamd64]
3. [Cypress] or [Cypress.NTamd64] section contains entries for all the devices supported by the driver. Add an entry for the
new device in the format
%VID_XXXX&PID_YYYY&MI_ZZ.DeviceDesc%=CypressUsb, USB\ VID_XXXX&PID_YYYY&MI_ZZ
Use the followingformat for the INF files under the x64 directory:
%VID_XXXX&PID_YYYY&MI_ZZ.DeviceDesc%=CypressUsb.NTamd64, USB\ VID_XXXX&PID_YYYY&MI_ZZ
Where,
XXXX Device Vendor ID (VID) in hexadecimal
YYYY Device Product ID (PID) in hexadecimal
ZZ Master Interface Number in hexadecimal (refer to the Master Interface Number of USB-Serial Device
Configuration section)
4. Then, scroll down in the text editor until the [String] section is visible
5. Under the [String] section, add an entry in the following format:
VID_XXXX&PID_YYYY&MI_ZZ.DeviceDesc=<Device Friendly Name>
Where,
XXXX Device Vendor ID (VID) in hexadecimal
YYYY Device Product ID (PID) in hexadecimal
ZZ Master Interface Number in hexadecimal
<Device Friendly Name> -- String to be used by the OS for the device in the Device Manager (as highlighted in Figure 3-4).
6. The values of XXXX, YYYY, and ZZ should match with value mentioned in step 3.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 39
Appendix
Figure 3-4: Device Friendly Name for Cypress CDC Device
7. Repeat steps 2 to 5 for all device interfaces that must bind to the Cypress CDC driver
8. Repeat steps 2 to 6 for all the CypressUsbAndBus.inf files located under the
<install_path>/driver/cyusbserial/bin directory
UART CDC 00 NA NA NA 02
1 CY7C65211-24LTXI UART/ SPI/ Vendor /
00 NA NA NA 01
I2C PHDC
UART CDC 00 NA NA NA 02
2 CY7C65211A-24LTXI Vendor /
UART/ SPI/
PHDC / 00 NA NA NA 01
I2C
CDC
CY7C65213-32LTXI UART CDC 00 NA NA NA 02
Or
CY7C65213-28PVXI
3 Or Vendor /
UART 00 NA NA NA 01
CY7C65213A-28VXI PHDC
Or
CY7C65213A-32LTXI
UART CDC 00 UART CDC 02 04
UART / SPI
Vendor /
UART CDC 00 / I2C / 02 03
PHDC
JTAG
4 CY7C65215-32LTXI UART / SPI / Vendor /
00 UART CDC 01 03
I2C PHDC
UART / SPI
UART / SPI / Vendor / Vendor /
00 / I2C / 01 02
I2C PHDC PHDC
JTAG
UART CDC 00 UART CDC 02 04
Vendor /
UART / SPI
UART CDC 00 PHDC / 02 03
/ I2C
CDC
CY7C65215A-32LTXI
5 Vendor /
UART / SPI /
PHDC / 00 UART CDC 01 03
I2C
CDC
Vendor / Vendor /
UART / SPI / UART / SPI
PHDC / 00 PHDC / 01 02
I2C / I2C
CDC CDC
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 40
3.2 Default Value for Various Configurable Fields
Out of the box default values for each configurable parameter is consolidated in the following table. Refer to the part specific table.
3.2.1 CY7C65213 / CY7C65213A
Sl. No Parameter Default Value Brief Description
USB Configuration
1 VID 0x04B4 2-byte value VID in hex.
2 PID See Table 2-2 2-byte cypress PID value in hex.
3 Power Mode Bus Powered Is the device Bus Powered or Self Powered?
USB Specification has say on the maximum current drawn by a
4 bMaxPower 100 mA
device. So, the value can be between 1 mA to 500 mA.
Remote Wake up, Suspend and Power Enable. Sleep and Power
5 RI#, Sleep# and Power# Enabled
Enable needs GPIO. GPIO
6 Manufacturing String Cypress Semiconductor 32 characters string descriptor.
7 Product String USB-UART LP 32 characters string descriptor.
8 Serial Number NULL 32 character space for Unique Serial Number.
Check this option to bypass the voltage regulator in the silicon.
9 Vcc voltage is 3.3 V Disabled
Otherwise you expect to supply 5 V to silicon Vcc.
Enable / disable the voltage regulator for VCC-IO. Enable this option
10 VCCIO voltage less than 2.0 V Disabled
only when you supply VCCIO with less than 2 volts.
Enable Manufacturing This option enables additional Manufacturing Interface for device
11 Enabled
Interface configuration downloads.
12 I/O Level CMOS GPIO Logic level selection (CMOS or LVTTL)
Disable CTS & RTS internal Disabling internal pull up on CTS & RTS pins will reduce current
20 Enabled
pull-up during suspend consumption during suspend state.
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 41
Appendix
Sl. No Parameter Default Value Brief Description
Battery Charger Detection
21 DISABLED Enabling the BCD functionality needed three free GPIO.
Functionality
22 GPIO 0 TXLED
GPIO 1 RXLED
GPIO 2 TRISTATE
GPIO 3 POWER#
GPIO 4 SLEEP#
GPIO 5 TRISTATE
GPIO 6 TRISTATE
GPIO 7 TRISTATE
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 42
Appendix
Sl. No Parameter Default Value Brief Description
18 Parity NONE UART Parity bit can be NONE, ODD, EVEN, SPACE or MARK.
UART Rx module (receive pin) can receive errors such as Frame
error, Parity error, Break errors or overrun errors. The user has
19 Drop Packets on RX Error DISABLED
the option to keep or drop the data byte associate to the error?
By default, there is no data drop happens on error.
Disable CTS & RTS internal Disabling internal pull up on CTS & RTS pins will reduce current
20 Enabled
pull-up during suspend consumption during suspend state.
21 Enable RS485 Disabled To enable RS485 we need at-least one free GPIO.
SPI Configuration (Vendor Mode or PHDC Mode)
Sl. No Parameter Default Value Brief Description
This default value is the startup clock frequency value for the
22 Frequency (Hz) 100,000 hardware SPI module. This value can be dynamically changed
from host application.
23 Data Width 8 bits SPI data width can be from 4 bits to 16 bits value.
24 SPI Mode Master Master or Slave operational mode settings.
SPI data transfer protocol definition. Motorola, TI and NS are
25 Protocol Motorola possible options. Refer to the Protocol section for more
information.
Clock Phase definitions. Refer to the CPHA and CPOL Modes
26 CPHA mode Low
section for more information.
Clock Polarity definitions. Refer to the CPHA and CPOL Modes
27 CPOL Mode Low
section for more information.
Data frame separation handling through slave de-selection. Refer
28 SSN Toggle Mode Continuous
to the SSN Toggle Mode section for more information.
Bit ordering meant LSB first or MSB first setting. By default its
29 Bit Order MSB First
MSB first.
I2C Configuration. (Vendor Mode)
This default value for startup I2C clock frequency. This value can
30 Frequency (Hz) 100,000
be dynamically changed from host application.
31 Mode Master I2C Master or I2C Slave
32 Slave Address 0x02 Enabled in slave mode. 7 bit even address are expected here.
Enabled in slave mode. This functionality will hold the clock line
33 Enable Clock Stretching Disabled
low till the time input buffer become available.
Enabled in slave mode. This functionality is used to wake the
34 Use as wake-up source Disabled
USB host from sleep.
CapSense, BCD and GPIOs
Sl. No Parameter Default Value Brief Description
Based on the configuration few GPIOs are needed to enable this
35 Enable / Disable CapSense DISABLED
functionality.
Battery Charger Detection
36 DISABLED Enabling the BCD functionality needed three free GPIO.
Functionality
37 GPIO 0 TXLED
GPIO 1 RXLED
GPIO 6 POWER#
GPIO 7 TRISTATE
GPIO 16 TRISTATE
GPIO 17 TRISTATE
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 43
Appendix
Sl. No Parameter Default Value Brief Description
GPIO 18 TRISTATE
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 44
Appendix
Sl. No Parameter Default Value Brief Description
Sl. No Parameter Default Value Brief Description
This default value is the startup clock frequency value for
22 Frequency (Hz) 100,000 the hardware SPI module. This value can be dynamically
changed from host application.
23 Data Width 8 bits SPI data width can be from 4 bits to 16 bits value.
24 SPI Mode Master Master or Slave operational mode settings.
SPI data transfer protocol definition. Motorola, TI and NS
25 Protocol Motorola are possible options. Refer to the Protocol section for more
information.
Clock Phase definitions. Refer to the CPHA and CPOL
26 CPHA mode Low
Modes section for more information.
Clock Polarity definitions. Refer to the CPHA and CPOL
27 CPOL Mode Low
Modes section for more information.
Data frame separation handling through slave de-selection.
28 SSN Toggle Mode Continuous Refer to the SSN Toggle Mode section for more
information.
Bit ordering meant LSB first or MSB first setting. By default
29 Bit Order MSB First
its MSB first.
I2C Configuration (Vendor Mode)
This default value for startup I2C clock frequency. This
30 Frequency (Hz) 100,000
value can be dynamically changed from host application.
31 Mode Master I2C Master or I2C Slave
Enabled in slave mode. 7 bit even address are expected
32 Slave Address 0x02
here.
Enabled in slave mode. This functionality will hold the clock
33 Enable Clock Stretching Disabled
line low till the time input buffer become available.
Enabled in slave mode. This functionality is used to wake
34 Use as wake-up source Disabled
the USB host from sleep.
CapSense, BCD and GPIOs
Sl. No Parameter Default Value Brief Description
Based on the configuration few GPIOs are needed to
35 Enable / Disable CapSense DISABLED
enable this functionality.
Battery Charger Detection
36 DISABLED Enabling the BCD functionality needed three free GPIO.
Functionality
37 GPIO 0 TXLED
GPIO 1 RXLED
GPIO 8 TRISTATE
GPIO 9 TRISTATE
GPIO 10 TRISTATE
GPIO 11 POWER#
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 45
Revision History
Document History
Document Title: Cypress USB-Serial Configuration Utility 2.0 User Guide
Document Number: 001-86781
Cypress USB-Serial Configuration Utility User Guide, Doc. No. 001-86781 Rev. *D 46