CP2501-DK
4 Rev. 0.1
4.2. Silicon Labs IDE
The Silicon Labs IDE integrates a source-code editor, source-level debugger and in-system programmer. The
following sections discuss how to open an example project in the IDE, build the source code, and download it to the
target device.
4.2.1. Running the CP250x_NoScreen example program
The CP250x_NoScreen example program drags a simulated finger starting from the top left corner of the screen
towards the middle of the screen and releases.
1. Open the Silicon Labs IDE from the Start menu.
2. Select Project
Open Project to open an existing project.
3. Browse to the C:\SiLabs\MCU\Examples\CP250x\NoScreen directory (default) and select the
CP250x_NoScreen.wsp project file and click Open.
4. Once the project is open, build the project by clicking on the Build/Make Project button in the toolbar or
selecting Project
Build/Make Project from the menu.
Note: After the project has been built the first time, the Build/Make Project command will only build the
files that have been changed since the previous build. To rebuild all files and project dependencies, click
on the Rebuild All button in the toolbar or select Project
Rebuild All from the menu.
5. Before connecting to the target device, several connection options may need to be set. Open the Connec-
tion Options window by selecting Options
Connection Options... in the IDE menu. First, select the
“USB Debug Adapter” option. Next, the correct “Debug Interface” must be selected. CP2501 devices use
Silicon Labs “C2” 2-wire debug interface. Once all the selections are made, click the OK button to close the
window.
6. Click the Connect button in the toolbar or select Debug
Connect from the menu to connect to the
device.
7. Download the project to the target by clicking the Download Code button in the toolbar.
Note: To enable automatic downloading if the program build is successful select Enable automatic con-
nect/download after build in the Project
Target Build Configuration dialog. If errors occur during the
build process, the IDE will not attempt the download.
8. Click on the Go button (green circle) in the toolbar or by selecting Debug
Go from the menu to start run-
ning the firmware.
9. Connect the USB connector on the daughter board to a Windows Vista or Windows 7 PC that supports HID
touchscreens.
10. The device will enumerate and then drag the simulated finger across the screen.
4.2.2. Creating a New Project
Use the following steps to create a new project. Once steps 1-5 in this section are complete, continue at Step 4 in
Section 4.2.1.
1. Select Project
New Project to open a new project and reset all configuration settings to default.
2. Select File
New File to open an editor window. Create your source file(s) and save the file(s) with a rec-
ognized extension, such as .c, .h, or .asm, to enable color syntax highlighting.
3. Right-click on “New Project” in the Project Window. Select Add files to project. Select files in the file
browser and click Open. Continue adding files until all project files have been added.
4. For each of the files in the Project Window that you want assembled, compiled and linked into the target
build, right-click on the file name and select Add file to build. Each file will be assembled or compiled as
appropriate (based on file extension) and linked into the build of the absolute object file.
Note: If a project contains a large number of files, the “Group” feature of the IDE can be used to organize.
Right-click on “New Project” in the Project Window. Select Add Groups to project. Add pre-defined
groups or add customized groups. Right-click on the group name and choose Add file to group. Select
files to be added. Continue adding files until all project files have been added.
5. Save the project when finished with the debug session to preserve the current target build configuration,
editor settings and the location of all open debug views. To save the project, select Project
Save Project
As... from the menu. Create a new name for the project and click on Save.
CP2501-DK
Rev. 0.1 5
4.3. CP250x Configuration Wizard
The CP250x Configuration Wizard generates the initial firmware project for CP250x devices based on the user’s
system requirements. Code is generated through the use of dialog boxes as shown in Figure 2.
Figure 2. CP250x Configuration Wizard
The CP250x Configuration Wizard utility helps accelerate development by automatically generating initialization
source code to configure and enable the on-chip resources needed by most design projects. In just a few steps, the
wizard creates complete firmware that will enumerate over USB as a HID touch screen device. The program is
configurable to output projects for Raisonance, SDCC, and Keil.
For more information, refer to the “AN464: CP250x Programmer’s Guide and API specification.” Documentation
and software is available on the kit CD and from the downloads webpage: www.silabs.com/mcudownloads.
CP2501-DK
6 Rev. 0.1
5. Development Boards
The CP2501 Development Kit includes a motherboard that interfaces to a daughter board. The CP2501
Development Daughter Board contains a CP2501 device to be used for preliminary software development.
Numerous input/output (I/O) connections are provided on the motherboard to facilitate prototyping. Figure 3 shows
the CP250x Motherboard and indicates locations for various I/O connectors and shows the factory default shorting
block positions. Figure 4 shows the available CP250x daughter board.
CP250x Motherboard
P1, P2 Daughter board connection
P3 Power connector that accepts input from 7.5 V dc to 15 V dc unregulated power adapter
P5 USB Debug interface connector
H1 GPIO 7:0 header
H2 GPIO 15:8 header
J1 SMBus Pull-up Resistor Power Header
J2 UART Connection to Debug Adapter
J3 Power Supply Selection Header
J7 Power supply enable header that connects power source selected on J3 to the board's main
power supply net
J13 Additional connections to ground
TB1 UART Interface Header
TB2 SMBus Interface Header
TB3 SPI Interface Header
CP2501 Development Daughter Board
J1 CP2501 VREGIN Input Selection Header
P3 USB connector for touch-screen interface

CP2501DK

Mfr. #:
Manufacturer:
Silicon Labs
Description:
Touch Sensor Development Tools CP2501 development kit
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet