Professional Documents
Culture Documents
2. Relevant Documentation
Application notes can be found on the Interface Application Notes page for all fixed-function devices:
www.silabs.com/interface-appnotes.
AN721: CP210x/CP211x Device Customization Guide — Customize the VID, PID, serial number, and
other parameters stored in the CP2112 one-time programmable ROM.
AN496: CP2112 HID-to-SMBus API Specification — Provides function descriptions and examples for all
of the PC software functions that control the CP2112.
AN495: CP2112 Interface Specification — Describes the HID report format for CP2112 devices.
3. Software Setup
The Software Development Kit (SDK) for the CP2112 kit is included on the kit DVD. The latest version of this
installer can also be downloaded from the www.silabs.com/cp2112ek website. This package includes:
Device Customization Utility
Documentation — data sheet, application notes, user’s guide, quick start guide, etc.
HidSmbusExample — Example software utilizing the CP2112 API interface described in AN496.
Library — repackaged HID DLL and CP2112 API DLL
The Windows installer should launch automatically after inserting the DVD. For Mac and Linux, browse to the
appropriate directory on the DVD to install the software package. Follow the instructions to install the SDK to the
system. The CP2112 is an HID device, so a driver does not need to be installed on most operating systems.
USB
SCL
CP2112 HID USB
SDA SMBus/I2C
to SMBus/I2C
ground Device
Bridge
CP2112 EK
2 Rev. 0.3
CP2112-EK
5. CP2112 Software Interface
The CP2112 is an HID device that uses the standard HID functions available in the operating system. To facilitate
this process in Windows, Silicon Labs packaged the standard HID functions into the SLABHIDDevice DLL in the
CP2112 software package. The HID report structure for the CP2112 is customized for the device and is not
compatible with other HID report structures, like a mouse or keyboard. AN495, “CP2112 Interface Specification”
describes the custom HID report structure for the CP2112, and AN496, “CP2112 HID-to-SMBus API Specification”
describes the API software functions that can be used to read or write data and control the CP2112 from the PC.
The software application described in “6. CP2112 Windows Application” provides an example of how to use these
functions.
The CP2112 appears as an HID device in Device Manager as shown in Figure 2.
Rev. 0.3 3
CP2112-EK
6. CP2112 Windows Application
The HID SMBus Example application uses the Windows CP2112 HID-to-SMBus DLL to transmit and receive data
with the CP2112. The application also has access to the CP2112’s GPIO pins. Figure 3 shows a screenshot of the
Windows Application. The following steps describe how to start the application and use some of its features.
1. Ensure that the hardware is connected to a Windows PC as shown in Figure 1. If the device is properly
connected, the red SUSPEND LED on the CP2112 evaluation board will turn on.
2. Launch the Hid SMBus Example application, which is found by clicking
StartAll ProgramsSilicon LaboratoriesCP2112 Evaluation KitHidSmbus Example.
3. In this application, you can configure the SMBus settings and GPIO pins, customize the device
descriptors, and read/write data over the SMBus interface.
4. Select the appropriate device in the Connection drop down box and click Connect.
5. The Configuration tab enables setting and getting the SMBus configuration parameters. To set a
parameter, modify the value that is in the corresponding text box or check/uncheck a box and click Set
SMBus Config. To verify that the settings took effect, click Get SMBus Config. These configuration
parameters reset to their default values when the CP2112 is reset.
4 Rev. 0.3
CP2112-EK
6. To read data from an SMBus device (non-addressed mode):
a. Click the Data Transfer tab.
a. Enter the slave address and the number of bytes to read in the Read Request box.
b. Click the Read Request button.
c. To see the number of bytes that were read back, click Get Read/Write Transfer Status and verify the number of
bytes read at the bottom of the application.
d. Next, click Force Read Response and then Get Read Response until the application reads back the total number
of bytes. The bytes will be shown in the Received Data field. The status of the CP2112 will be shown at the bottom
of the application.
6a
6b
6c
6e
6d
Rev. 0.3 5
CP2112-EK
7. To read data from an EEPROM or similar device (addressed mode):
a. Click the Data Transfer tab.
e. Enter the slave address, the number of address bytes in the target address, the target address of the SMBus device
being read (in hex), and the number of bytes to read in the Addressed Read Request box.
f. Click the Address Read Request button.
g. To see the number of bytes that were read back, click Get Read/Write Transfer Status and verify the number of
bytes read at the bottom of the application.
h. Click Force Read Response and then Get Read Response until the application reads back the total number of
bytes. The bytes will be shown in the Received Data field. The status bar of the application displays the current
status of the CP2112.
7a
7b
7c
7e
7d
6 Rev. 0.3
CP2112-EK
8. To write data over the SMBus interface:
a. Click the Data Transfer tab.
i. Enter the Slave address and data (in hex) in the Write Request box.
j. Click the Write Request button.
k. Click Get Read/Write Transfer Status and verify that the transfer completed using the status bar at the bottom of
the application.
8a
8c
8b
8d
Figure 6. Performing a Write using the Example Application
Rev. 0.3 7
CP2112-EK
9. The Pin Configuration tab enables configuration of the GPIO and special functions (TX Toggle, RX
Toggle, and Clock Output).
a. Click the Pin Configuration tab.
l. GPIO pins toggle between Input/Ouput and Open-Drain/Push-Pull by clicking the corresponding GPIO boxes in the
GPIO Configuration area. Check the boxes for TX Toggle, RX Toggle, and Clock Output to enable the special
functionality on these pins. Click the Set GPIO Config button to update the device settings.
m. The Latch Values section enables writing or reading the GPIO latches. Clicking the box next the GPIO pins listed
will scroll through 1, 0, and X for a don’t care. Click the Write Latch button to change the state of the GPIO latch.
9a
9b
9c
8 Rev. 0.3
CP2112-EK
10. The Customization tab allows for programming the One-Time-Programmable (OTP) parameters of the
device. These parameters can only be programmed once and cannot be changed back to their default
values after being programmed. This tab has the same functionality as the CP2112SetIDs application
provided with the CP2112 software package. In order for these parameters to be sucessfully programmed,
a 4.7 µF capacitor must be connected between the VPP pin and ground. This capacitor is populated by
default on the CP2112 Evaluation Kit board has this capacitor. See "8. Schematic" on page 12 for more
information.
a. The USB Customization section sets the USB parameters. Click Get to retrieve the current settings.
Change the settings by modifying the text boxes and checking the box next to the parameter being
modified. Click the Set button to program the device with the modified settings. The parameter will not
be changed without checking the corresponding box. Perform a Get after changing any parameters to
ensure that the settings updated correctly.
n. The String Descriptors section enables modification of the serial strings in the CP2112. Type a string into the
corresponding text box and click the Set button to modify the strings. Perform a Get after changing any parameters
to ensure that the settings updated correctly.
o. The Lock Byte section displays which fields have been programmed and can lock fields to prevent future
modification. Any field that has been programmed will not be checked. To prevent a field from being programmed,
uncheck the corresponding box and click the Set button. Perform a Get after changing any parameters to ensure that
the settings updated correctly.
10a 10c
10b
Rev. 0.3 9
CP2112-EK
7. Target Board
The CP2112 Evaluation Kit includes an evaluation board with a CP2112 device pre-installed for evaluation and
preliminary software development. Numerous input/output (I/O) connections are provided to facilitate prototyping
using the evaluation board. Refer to Figure 9 for the locations of the various I/O connectors. Refer to Figure 10,
“CP2112 Evaluation Board Schematic” for information regarding the SMBus pull-up resistors that are located on
the target board.
P1 USB connector for USB interface
H1 Access Connector for SMBus interface (SDA, SCL, GND, Pull-Up Voltage)
J1, J2, J3, J4 GPIO access connectors
J6 Power connector
J7 SMBus pull-up voltage connector
J8 Red SUSPEND LED connector
DS0–DS7 Green GPIO LEDs
DS8 Red SUSPEND LED
TB1 SMBus interface terminal block
J4 J8
DS7 SUSPEND
TB1 SILICON LABS DS6
J3 DS8 P1
GND DS5 U1
H1
DS4
SDA GND
EXT_PU J2 CP2112
SCL
DS3
EXT_PU
EXT_PU DS2
VIO
NET A
J1
VDD
+3V
VIO
CP2112-EK DS1
J7
DS0
www.silabs.com SMBUS PU_V J6
10 Rev. 0.3
CP2112-EK
7.2. Universal Serial Bus (USB) Interface (P1)
A Universal Serial Bus (USB) connector (P1) is provided to facilitate connections to the USB interface on the
CP2112. See Table 2 for the USB pin definitions.
Rev. 0.3 11
12
8. Schematic
CP2112-EK
Rev. 0.3
Figure 10. CP2112 Evaluation Board Schematic
CP2112-EK
DOCUMENT CHANGE LIST
Revision 0.1 to Revision 0.2
Updated Figure 1.
Updated "6. CP2112 Windows Application" on page
4.
Instructions and figures from updated PC application.
Updated Figure 10 on page 12.
Revision 0.2 to Revision 0.3
Updated “1. Kit Contents” to change CD-ROM to
DVD.
Added “2. Relevant Documentation” and “5. CP2112
Software Interface”.
Updated “3. Software Setup” to point to the drivers
on the website.
Updated Figure 1.
Updated the instructions and figures in “6. CP2112
Windows Application”.
13 Rev. 0.3
Simplicity Studio
One-click access to MCU and
wireless tools, documentation,
software, source code libraries &
more. Available for Windows,
Mac and Linux!
Disclaimer
Silicon Labs intends to provide customers with the latest, accurate, and in-depth documentation of all peripherals and modules available for system and software implementers using or
intending to use the Silicon Labs products. Characterization data, available modules and peripherals, memory sizes and memory addresses refer to each specific device, and "Typical"
parameters provided can and do vary in different applications. Application examples described herein are for illustrative purposes only. Silicon Labs reserves the right to make changes
without further notice and limitation to product information, specifications, and descriptions herein, and does not give warranties as to the accuracy or completeness of the included
information. Silicon Labs shall have no liability for the consequences of use of the information supplied herein. This document does not imply or express copyright licenses granted
hereunder to design or fabricate any integrated circuits. The products are not designed or authorized to be used within any Life Support System without the specific written consent of
Silicon Labs. A "Life Support System" is any product or system intended to support or sustain life and/or health, which, if it fails, can be reasonably expected to result in significant personal
injury or death. Silicon Labs products are not designed or authorized for military applications. Silicon Labs products shall under no circumstances be used in weapons of mass
destruction including (but not limited to) nuclear, biological or chemical weapons, or missiles capable of delivering such weapons.
Trademark Information
Silicon Laboratories Inc.® , Silicon Laboratories®, Silicon Labs®, SiLabs® and the Silicon Labs logo®, Bluegiga®, Bluegiga Logo®, Clockbuilder®, CMEMS®, DSPLL®, EFM®, EFM32®,
EFR, Ember®, Energy Micro, Energy Micro logo and combinations thereof, "the world’s most energy friendly microcontrollers", Ember®, EZLink®, EZRadio®, EZRadioPRO®,
Gecko®, ISOmodem®, Precision32®, ProSLIC®, Simplicity Studio®, SiPHY®, Telegesis, the Telegesis Logo®, USBXpress® and others are trademarks or registered trademarks of Silicon
Labs. ARM, CORTEX, Cortex-M3 and THUMB are trademarks or registered trademarks of ARM Holdings. Keil is a registered trademark of ARM Limited. All other products or brand
names mentioned herein are trademarks of their respective holders.
http://www.silabs.com