CY8CKIT - 059 PSoC 5LP Protoyping Kit Guide PDF
CY8CKIT - 059 PSoC 5LP Protoyping Kit Guide PDF
CY8CKIT - 059 PSoC 5LP Protoyping Kit Guide PDF
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
www.cypress.com
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2015-2018. This document is the property of Cypress Semiconductor Corporation
and its subsidiaries, including Spansion LLC (“Cypress”). This document, including any software or firmware included or refer-
enced in this document (“Software”), is owned by Cypress under the intellectual property laws and treaties of the United
States and other countries worldwide. Cypress reserves all rights under such laws and treaties and does not, except as spe-
cifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property
rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with
Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable
license (without the right to sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code
form, to modify and reproduce the Software solely for use with Cypress hardware products, only internally within your organi-
zation, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly through resell-
ers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of Cypress's patents that
are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely
for use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software
is prohibited.
TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PUR-
POSE. No computing device can be absolutely secure. Therefore, despite security measures implemented in Cypress hard-
ware or software products, Cypress does not assume any liability arising out of any security breach, such as unauthorized
access to or use of a Cypress product. In addition, the products described in these materials may contain design defects or
errors known as errata which may cause the product to deviate from published specifications. To the extent permitted by
applicable law, Cypress reserves the right to make changes to this document without further notice. Cypress does not
assume any liability arising out of the application or use of any product or circuit described in this document. Any information
provided in this document, including any sample design information or programming code, is provided only for reference pur-
poses. It is the responsibility of the user of this document to properly design, program, and test the functionality and safety of
any application made of this information and any resulting product. Cypress products are not designed, intended, or autho-
rized for use as critical components in systems designed or intended for the operation of weapons, weapons systems, nuclear
installations, life-support devices or systems, other medical devices or systems (including resuscitation equipment and surgi-
cal implants), pollution control or hazardous substances management, or other uses where the failure of the device or system
could cause personal injury, death, or property damage (“Unintended Uses”). A critical component is any component of a
device or system whose failure to perform can be reasonably expected to cause the failure of the device or system, or to
affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from
any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products. You shall indemnify
and hold Cypress harmless from and against all claims, costs, damages, and other liabilities, including claims for personal
injury or death, arising from or related to any Unintended Uses of Cypress products.
Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB,
F-RAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more
complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respec-
tive owners.
Safety Information 5
1. Introduction 7
1.1 Kit Contents .................................................................................................................7
1.2 PSoC Creator ..............................................................................................................8
1.2.1 PSoC Creator Code Examples ........................................................................9
1.2.2 Kit Code Examples.........................................................................................10
1.2.3 PSoC Creator Help ........................................................................................10
1.2.4 Component Datasheets .................................................................................11
1.3 Getting Started...........................................................................................................11
1.4 Additional Learning Resources..................................................................................11
1.5 Technical Support......................................................................................................12
1.6 Document Conventions .............................................................................................12
2. Software Installation 13
2.1 Before You Begin.......................................................................................................13
2.2 Install Software ..........................................................................................................13
2.3 Uninstall Software......................................................................................................15
3. Kit Operation 16
3.1 Theory of Operation...................................................................................................16
3.2 KitProg .......................................................................................................................17
3.3 Programming and Debugging the PSoC 5LP Target Device.....................................17
3.3.1 Programming using PSoC Creator.................................................................17
3.3.2 Debugging using PSoC Creator.....................................................................19
3.3.3 Programming using PSoC Programmer.........................................................19
3.4 USB-UART Bridge .....................................................................................................19
3.5 USB-I2C Bridge .........................................................................................................19
3.6 Updating KitProg Firmware........................................................................................19
4. Hardware 20
4.1 Board Details .............................................................................................................20
4.2 Hardware Details .......................................................................................................21
4.2.1 Target Board...................................................................................................21
4.2.2 KitProg Board.................................................................................................22
4.2.3 Power Supply System ....................................................................................23
4.2.4 Board Separation (Snapping).........................................................................24
4.2.5 Header Connections ......................................................................................24
4.2.6 User and Passive Inputs ................................................................................28
5. Code Examples 31
5.1 Using the Kit Code Examples ....................................................................................31
5.2 CE195352_PSoC_5LP_Blinking_LED ......................................................................35
5.3 CE195277_ADC_and_UART ....................................................................................37
5.4 CE195394_HID_Mouse .............................................................................................38
Appendix 39
PSoC 5LP Prototyping Kit Schematics ...............................................................................39
Programming PSoC 5LP Prototyping Kit Using MiniProg3/KitProg ....................................41
Bill of Materials ....................................................................................................................42
Revision History 45
Regulatory Compliance
The CY8CKIT-059 PSoC® 5LP Prototyping Kit is intended for use as a development platform for
hardware or software in a laboratory environment. The board is an open system design, which does
not include a shielded enclosure. This may cause interference to other electrical or electronic
devices in close proximity. In a domestic environment, this product may cause radio interference. In
such cases, you may be required to take adequate preventive measures. In addition, this board
should not be used near any medical equipment or RF devices.
Attaching additional wiring to this product or modifying the product operation from the factory default
may affect its performance and cause interference with other apparatus in the immediate vicinity. If
such interference is detected, suitable mitigating measures should be taken.
The PSoC 5LP Prototyping Kit, as shipped from the factory, has been verified to meet with
requirements of CE as a Class A product.
End-of-Life/Product Recycling
This kit has an end-of life five years from the date of
manufacture mentioned on the back of the box. Contact your
nearest recycler for discarding the kit.
Handling Boards
PSoC 5LP Prototyping Kit boards are sensitive to ESD. Hold the board only by its edges. After
removing the board from its box, place it on a grounded, static-free surface. Use a conductive foam
pad if available. Do not slide board over any surface.
Thank you for your interest in the CY8CKIT-059 PSoC 5LP Prototyping Kit. This kit is designed as an
easy-to-use and inexpensive prototyping platform. The PSoC 5LP Prototyping Kit supports the
PSoC 5LP device family, delivering a complete system solution for a wide range of embedded
applications at a very low cost. The PSoC 5LP is the industry’s most integrated SoC with an Arm®
Cortex™-M3 CPU. It combines programmable and reconfigurable high-precision analog and digital
blocks with flexible automatic routing. The unique flexibility of the PSoC 5LP architecture will help
those who want to rapidly develop products using the PSoC 5LP device family.
The PSoC 5LP Prototyping Kit offers an open footprint breakout board to maximize the end-utility of
the PSoC 5LP device. This kit provides a low-cost alternative to device samples while providing a
platform to easily develop and integrate the PSoC 5LP device into your end-system. In addition, the
board includes the following features:
■ Micro-USB connector to enable USB application development
■ Onboard CMOD capacitors to enable CapSense® development
■ Bypass capacitors to ensure the high-quality ADC conversions
■ An LED to provide feedback
■ A push button to provide a simple user input
■ Load capacitors to connect 32-kHz external crystal oscillator
■ 3.3-V to 5.5-V operation
The PSoC 5LP prototyping kit also integrates the Cypress KitProg that enables onboard
programming, debugging, and bridging functionality, such as USB-UART and USB-I2C. The KitProg
is used to program and debug the target PSoC 5LP device (see Figure 1-1). The prototyping kit
allows you to separate the KitProg board from the PSoC 5LP target board.
PSoC Creator also enables you to tap into an entire tool ecosystem with integrated compiler chains
and production programming programmers for PSoC devices.
For more information, visit www.cypress.com/psoccreator.
webpage for a list of all available PSoC Creator code examples. For accessing code examples
from within PSoC Creator - see PSoC Creator Code Examples.
■ Technical Reference Manuals (TRM): Provide detailed descriptions of the architecture and
registers in each PSoC 5LP device family.
■ Development Kits:
❐ CY8CKIT-050 PSoC 5LP Development Kit enables you to evaluate, develop, and prototype
high-precision analog, low-power, and low-voltage applications designed using the PSoC 5LP
device family.
❐ CY8CKIT-001 is a common development platform for all PSoC family devices.
❐ PSoC 5LP Expansion Boards are the expansion modules designed to implement a target
application.
■ The MiniProg3 device provides an interface for flash programming and debug.
■ Knowledge Base Articles (KBA): Provide design and application tips from experts on using the
device.
■ PSoC Creator Training: Visit the link www.cypress.com/go/creatorstart/creatortraining for a
comprehensive list of video trainings on PSoC Creator.
■ Learning From Peers: Visit www.cypress.com/forums to meet enthusiastic PSoC developers
discussing the next generation embedded systems on Cypress Developer Community Forums.
This chapter describes the steps to install the software tools and packages on a PC for using the
PSoC 5LP Prototyping Kit. This includes the IDE on which the projects will be built and used for
programming.
3. Click Install CY8CKIT-059 Kit to start the kit installation, as shown in Figure 2-1.
Figure 2-1. Kit Installer Screen
4. Select the directory in which you want to install the PSoC 5LP Prototyping Kit-related files.
Choose the directory and click Next.
5. When you click Next, the PSoC 5LP Prototyping Kit installer automatically installs the required
software, if it is not present on your computer. Following is the required software:
a. PSoC Creator 4.2: This software is available for download separately from the kit at
www.cypress.com/psoccreator. PSoC Creator 4.2 installer automatically installs the following
additional software:
– PSoC Programmer 3.27.1
– Peripheral Driver Library 3.0.1.
6. Choose the Typical/Custom/Complete installation type in the Product Installation Overview
window, as shown in Figure 2-2. Click Next after you select the installation type.
7. Read the License agreement and select 'I accept the terms in the license agreement' to continue
with installation. Click Next.
8. When the installation begins, a list of packages appears on the installation page. A green check
mark appears next to each package after successful installation.
9. Enter your contact information or select the Continue Without Contact Information check box.
Click Finish to complete the PSoC 5LP Prototyping Kit installation.
10.After the installation is complete, the kit contents are available at the following location:
<Install_Directory>\CY8CKIT-059
Default location:
Windows OS (64-bit):
C:\Program Files (x86)\Cypress\CY8CKIT-059
Windows OS (32-bit):
C:\Program Files\Cypress\CY8CKIT-059
Note: For Windows 7/8/8.1/10 users, the installed files and the folder are read-only. To use the
installed code examples, follow the steps outlined in the Code Examples chapter on page 31. These
steps will create an editable copy of the example in a path that you choose, so the original installed
example is not modified.
This chapter introduces you to the different features of the PSoC 5LP Prototyping Kit. This primarily
includes the programming/debugging functionality, KitProg USB-UART and USB-I2C bridges, and
the method to update the KitProg firmware.
The PSoC 5LP Prototyping Kit is simplistic in design and focuses on providing you with complete
access to develop applications using the PSoC 5LP device family. This kit supports the following
features:
■ KitProg: It is an onboard programmer/debugger, which enables programming and debugging the
target PSoC 5LP device. It can also act as a USB-UART and UART-I2C bridge.
When used as a standalone module, it can be used to program devices of the PSoC 3, PSoC 4,
or PSoC 5LP families through the SWD interface. For more details on the KitProg functionality,
refer to the KitProg User Guide in the kit installation directory:
<Install_Directory>\CY8CKIT-
059\<version>\Documentation\KitProg_User_Guide.pdf
■ Expansion Headers: The PSoC 5LP Prototyping Kit brings all I/Os of the device to the two
expansion headers, allowing you to have maximum access to the capabilities of the PSoC 5LP
device.
■ Micro-USB Connector: The onboard micro-USB connector provides access to the USB block of
the PSoC 5LP device. This connector enables you to develop USB applications.
■ User LED: The onboard LED can be used to display outputs from the PSoC 5LP device. This
includes modulating the brightness of the LED to notify different states of the device.
■ Push Button (SW): This kit has a push button, which can be used to provide input to the
PSoC 5LP.
Note: The switch connects the PSoC 5LP pin to ground when pressed. Therefore, you need to
configure the PSoC 5LP pin as resistive pull-up to detect the switch press.
■ Reset Button: This button is used for the following purposes:
❐ Reset the PSoC 5LP device: When pressed, it connects the XRES line of the PSoC 5LP to
ground and resets the PSoC 5LP device.
❐ Bootload the KitProg: When pressed while connecting the kit’s PCB USB connector to the
USB port of the PC, this button puts the KitProg into the bootloader mode. For more details on
the KitProg functionality, refer to the KitProg User Guide.
Note: When the two boards are separated, you can mount the SW2 button on the target board to
reset the PSoC 5LP device using a switch.
3.2 KitProg
The KitProg is a multi-functional system, which includes a programmer, debugger, USB-I2C bridge,
and a USB-UART bridge. The Cypress PSoC 5LP device is used to implement KitProg functionality.
The KitProg is integrated in most PSoC development kits. For more details on the KitProg
functionality, refer to the KitProg User Guide in the kit installation directory:
<Install_Directory>\CY8CKIT-059\<version>\Documentation\
KitProg_User_Guide.pdf.
2. Open the desired project in PSoC Creator by selecting File > Open > Project/Workspace. This
provides the option to browse to and open a previously saved project. If you want to open one of
the code examples provided with the kit, follow the instructions in the Code Examples chapter on
page 31.
3. Select the option Build > Build Project or press [Shift] [F6] to build the project as shown in
Figure 3-3.
Figure 3-3. Build a Code Example
4. If there are no errors during build, program the firmware into the kit by choosing Debug >
Program or press [Ctrl] [F5], as shown in Figure 3-4. This programs the target PSoC 5LP device
on the PSoC 5LP Prototyping Kit, and the kit is ready to use.
Figure 3-4. Programming Device From PSoC Creator
1. Click the Debug icon or press [F5]. Alternatively, you can use the option Debug > Debug.
2. When the PSoC Creator opens in Debug mode, use the buttons on the toolbar to debug your
application.
For more details on using the debug features, refer to section 3.2 of the KitProg User Guide.
P_VCCD
VDDIO2
VDDIO0
P15_5
P15_4
VDDD
VSSD
P2_5
P2_4
P2_3
P2_2
P2_1
P2_0
P0_7
P0_6
P0_5
P0_4
U2
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
EPAD
VDDD
VSSD
VCCD
P2_5
VDDIO2
P2_4
P2_3
P2_2
P2_1
P2_0
P15_5
P15_4
P0_7
P0_6
P0_5
P0_4
VDDIO0
P2_6 1 51 P0_3
P2_7 2 P2_6 P0_3 50 P0_2
P12_4 3 P2_7 P0_2 49 P0_1
P12_5 4 P12_4 I2C0_SCL, SIO P0_1 48 P0_0
5 P12_5 I2C0_SDA, SIO P0_0 47 P12_3
6 VSSB SIO_P12_3 46 P12_2
7 IND SIO_P12_2 45 VSSD
8 VBOOST CY8C5888LTI-LP097 QFN68 VSSD 44 VDDA
VSSD 9 VBAT VDDA 43 VSSA
PROG_RESET XRES 10 VSSD VSSA 42 VCCA
PROG_SWDIO P1_0 11 XRES VCCA 41 P15_3
PROG_SWDCLK P1_1 12 P1_0 P15_3 40 P15_2
P1_2 13 P1_1 P15_2 39 P12_1
P_SWO P1_3 14 P1_2 SIO, I2C1_SDA P12_1 38 P12_0
P_TDI P1_4 15 P1_3 SIO, I2C1_SCL P12_0 37 P3_7
P1_5 16 P1_4 P3_7 36 P3_6
P1_5 P3_6
P12_6_SIO
P12_7_SIO
VDDIO1 17 35 VDDIO3
P15_7 DM
P15_6 DP
VDDIO1 VDDIO3
P15_0
P15_1
VDDD
VCCD
VSSD
P1_6
P1_7
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
P_VCCD
P12_6
P12_7
P15_0
P15_1
P1_6
P1_7
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
DM_P
VDDD
VSSD
DP_P
DP R16 22E
DM R17 22E
0603
0603
KP_VDDIO2
KP_VDDIO0
KP_VCCD
KP_P0_5
KP_P0_4
VDDD
VSSD
U1
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
EPAD
P2_5
VDDIO2
P2_4
P2_3
P2_2
P2_1
P2_0
P15_5
P15_4
VDDD
VSSD
VCCD
P0_7
P0_6
P0_5
P0_4
VDDIO0
KP_P2_6 1 51 KP_P0_3
KP_P2_7 2 P2_6 P0_3 50 KP_P0_2
KP_P12_4 3 P2_7 P0_2 49 KP_P0_1
KP_P12_5 4 P12_4 I2C0_SCL, SIO P0_1 48 KP_P0_0
5 P12_5 I2C0_SDA, SIO P0_0 47 KP_P12_3
6 VSSB SIO_P12_3 46 KP_P12_2
7 IND SIO_P12_2 45 VSSD
8 VBOOST CY8C5868LTI-LP039 QFN68 VSSD 44 VDDA
VSSD 9 VBAT VDDA 43
KP_XRES 10 VSSD VSSA 42 VCCA
11 XRES VCCA 41
12 P1_0 P15_3 40
13 P1_1 P15_2 39 KP_P12_1
14 P1_2 SIO, I2C1_SDA P12_1 38 KP_P12_0
15 P1_3 SIO, I2C1_SCL P12_0 37
16 P1_4 P3_7 36 KP_P3_6
P1_5 P3_6
P12_6_SIO
P12_7_SIO
KP_VDDIO1 17 35 KP_VDDIO3
P15_7 DM
P15_6 DP
VDDIO1 VDDIO3
P15_0
P15_1
VDDD
VCCD
VSSD
P1_6
P1_7
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
P3
KP_P12_6
KP_P12_7
KP_DM_P
KP_DP_P
pin
KP_P1_6
KP_P1_7
KP_VCCD
KP_P3_0
KP_P3_1
KP_P3_4
KP_P3_5
VDDD
VSSD
5(MSB) 4
P3.3 P3.2
VTARG VBUS
22E R4
22E R6
Floating GND
0603
0603
15K
15K
KP_P1_6
d
KP_P1_7
KP_XRES
Table 4-1. J1 Header Pin Details Table 4-2. J2 Header Pin Details
PSoC 5LP Prototyping Kit GPIO Header (J1) PSoC 5LP Prototyping Kit GPIO Header (J2)
Pin Signal Description Pin Signal Description
J1_01 P2.0 GPIO J2_01 VDD Power
J1_02 P2.1 GPIO/LED J2_02 GND Ground
J1_03 P2.2 GPIO/SW J2_03 RESET Reset
J1_04 P2.3 GPIO J2_04 P0.7 GPIO
J1_05 P2.4 GPIO J2_05 P0.6 GPIO
J1_06 P2.5 GPIO J2_06 P0.5 GPIO
J1_07 P2.6 GPIO J2_07 P0.4 GPIO/BYPASS CAP
J1_08 P2.7 GPIO J2_08 P0.3 GPIO/BYPASS CAP
J1_09 P12.7 GPIO/UART_TX J2_09 P0.2 GPIO/BYPASS CAP
J1_10 P12.6 GPIO/UART_RX J2_10 P0.1 GPIO
J1_11 P12.5 GPIO J2_11 P0.0 GPIO
J1_12 P12.4 GPIO J2_12 P15.5 GPIO
J1_13 P12.3 GPIO J2_13 P15.4 GPIO/CMOD
J1_14 P12.2 GPIO J2_14 P15.3 GPIO/XTAL_IN
J1_15 P12.1 GPIO/I2C_SDA J2_15 P15.2 GPIO/XTAL_OUT
J1_16 P12.0 GPIO/I2C_SCL J2_16 P15.1 GPIO
J1_17 P1.0 GPIO J2_17 P15.0 GPIO
J1_18 P1.1 GPIO J2_18 P3.7 GPIO
J1_19 P1.2 GPIO J2_19 P3.6 GPIO
J1_20 P1.3 GPIO J2_20 P3.5 GPIO
J1_21 P1.4 GPIO J2_21 P3.4 GPIO
J1_22 P1.5 GPIO J2_22 P3.3 GPIO
J1_23 P1.6 GPIO J2_23 P3.2 GPIO/BYPASS CAP
J1_24 P1.7 GPIO J2_24 P3.1 GPIO
J1_25 GND Ground J2_25 P3.0 GPIO
J1_26 VDDIO Power J2_26 GND Ground
Table 4-3. Pin Details of J7 Header Table 4-4. Pin Details of J3 Header
PSoC 5LP to KitProg Header (J7) PSoC 5LP (Target) Program and Debug Header (J3)
Pin Signal Description Pin Signal Description
J7_01 VTARG Power J3_01 VTARG Power
J7_02 GND Ground J3_02 GND Ground
J7_03 P12.4 RESET J3_03 XRES RESET
J7_04 P12.3 SWDCLK J3_04 P1.1 SWDCLK
J7_05 P12.2 SWDIO J3_05 P1.0 SWDIO
When the boards are separated, the KitProg board can be used to program any other PSoC 3,
PSoC 4, or PSoC 5LP family of devices via J7.
SW1
P2_2 1A 2A
1B 2B
Switch
USER PUSH BUTTON
Reset Button
The target board also provides a footprint for a through-hole switch, which can be used to reset the
device when the two boards are separated.
Figure 4-10. Reset (RST) Button
4.2.6.3 LEDs
The PSoC 5LP Prototyping Kit contains three LEDs:
■ Amber LED: Indicates that the board is powered from the PCB USB connector. This LED will not
light when the board is powered from the micro-USB connector or from VDD or VTARG directly.
■ Green LED: Indicates the KitProg status, connected to P3.1 of the KitProg PSoC 5LP device. For
more details on the KitProg status LED, refer to the KitProg User Guide.
■ Blue LED: This is the user LED, connected to P2.1 of the target PSoC 5LP device.
Figure 4-11. Power LED
This chapter explains the code examples provided along with the PSoC 5LP Prototyping Kit. To
access these code examples, download and install the CY8CKIT-059 PSoC 5LP Prototyping Kit
setup file from the kit webpage: www.cypress.com/CY8CKIT-059. After installation, the code
examples will be available from Start > Kits > CY8CKIT-059 on the PSoC Creator Start Page.
4. Build the code example by choosing Build > Build <Project Name>, as shown in Figure 5-2. A
.hex file is generated after the build process.
Figure 5-2. Open Code Example from PSoC Creator
5. Connect the PSoC 5LP Prototyping Kit to the PC using the KitProg PCB USB port, J10 as
described in Figure 3-2 on page 17 to program the kit with this code example.
6. Choose Debug > Program in PSoC Creator as shown in Figure 5-3.
Figure 5-3. Program Device in PSoC Creator
7. PSoC Creator opens the programming window if the device is not yet acquired. Select KitProg
and click the Port Acquire button, as shown in Figure 5-4.
Figure 5-4. Port Acquire
8. After the device is acquired, it is shown in a tree structure below the KitProg. Click the Connect
button and then OK to exit the window and start programming, as shown in Figure 5-5.
Figure 5-5. Connect Device From PSoC Creator and Program
5.2 CE195352_PSoC_5LP_Blinking_LED
This code example demonstrates the use of a fixed-function PWM. The PWM is set up to output a
50-percent duty cycle digital signal with a period of 1 second. This signal can be used to drive an
LED for visual testing of the PWM output. A switch is routed into the kill input of the PWM. When the
switch is pressed the PWM output is shut off.
Figure 5-7. TopDesign for CE195352_PSoC_5LP_Blinking_LED
5.3 CE195277_ADC_and_UART
This code example implements a simple data collection system using the DelSig ADC and the UART
component. The ADC continuously samples an analog input. The resulting samples can be sent to a
PC over a UART connection a single sample at a time or continuously. Emulated data, which is just
an incrementing number, can also be sent over the UART connection to test the communication. The
USB-UART Bridge in the KitProg is used to create an RS-232 connection to a terminal program on a
PC. The terminal program is used to send commands to get the ADC sample data and read the
resulting responses.
Figure 5-9. TopDesign CE195277_ADC_and_UART
5.4 CE195394_HID_Mouse
This code example demonstrates the use of the USBFS component to implement a HID mouse.
Using the standard HID mouse descriptor, the PSoC enumerates as a mouse on the PC. Once the
enumeration is complete the PSoC sends data about the relative movement of the mouse to the PC.
A single button is also implemented in the project to emulate the left button, or button 1, on a
standard mouse. You can hold down the button on the kit and watch the cursor highlight text or
select items on a desktop while it draws the box.
Figure 5-10. CE195394_HID_Mouse
P_VCCD
7 P2_6 VDDIO1 5 P0_6
VDDIO2
VDDIO0
7 8 P2_7 VDDIO2 5 6 P0_5
P15_5
P15_4
VDDD
VSSD
P2_5
P2_4
P2_3
P2_2
P2_1
P2_0
P0_7
P0_6
P0_5
P0_4
8 9 P12_7 provide silk VDDIO3 6 7 P0_4 P3_2,P0_2, P0_3 and P0_4
9
UART TX 7
10 P12_6 UART RX for UART pins 8 P0_3 these pins
10 C32 C20 C18 C35 8 have bypass CAP
11 P12_5 9 P0_2
11 12 P12_4 U2
69 9 10 P0_1 connected
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
0402 0402 0402 0402
12 0.1 uF 0.1 uF 0.1 uF 0.1 uF 10
13 P12_3 11 P0_0
13 14 P12_2 11 12 P15_5
EPAD
P2_5
VDDIO2
P2_4
P2_3
P2_2
P2_1
P2_0
P15_5
P15_4
VDDD
VSSD
VCCD
P0_7
P0_6
P0_5
P0_4
VDDIO0
14 15 P12_1 I2C_SDA provide silk 12 13 P15_4
15 16 P12_0 I2C_SCL for I2C pins 13 14 P15_3
16 17 P1_0 P2_6 1 51 P0_3 14 15 P15_2
17 18 P1_1 P2_7 2 P2_6 P0_3 50 P0_2 15 16 P15_1
18 19 P1_2 P12_4 3 P2_7 P0_2 49 P0_1 16 17 P15_0
19 20 P1_3 P12_5 4 P12_4 I2C0_SCL, SIO P0_1 48 P0_0 17 18 P3_7
20 21 P1_4 5 P12_5 I2C0_SDA, SIO P0_0 47 P12_3 18 19 P3_6
21 22 P1_5 6 VSSB SIO_P12_3 46 P12_2 19 20 P3_5
22 23 P1_6 7 IND SIO_P12_2 45 VSSD 20 21 P3_4
23 24 P1_7 8 VBOOST CY8C5888LTI-LP097 QFN68 VSSD 44 VDDA P0_4 21 22 P3_3
24 25 VSSD 9 VBAT VDDA 43 VSSA P0_3 22 23 P3_2
25 26 VDDIO PROG_RESET XRES 10 VSSD VSSA 42 VCCA P0_2 23 24 P3_1
26 XRES VCCA C9 24
PROG_SWDIO P1_0 11 41 P15_3 P3_2 25 P3_0
HDR 1x26 PROG_SWDCLK P1_1 12 P1_0 P15_3 40 P15_2 0603
SAR0 EXTREF 25 26
P1_1 P15_2 1.0 uF 26
No Load P1_2 13 39 P12_1
P1_2 SIO, I2C1_SDA P12_1 HDR 1x26
P_SWO P1_3 14 38 P12_0 C13
P_TDI P1_4 15 P1_3 SIO, I2C1_SCL P12_0 37 P3_7 No Load
PSoC 5LP I/O Header P1_4 P3_7 0603 1.0 uF EXTREF0
P1_5 16 36 P3_6
P1_5 P3_6
P12_6_SIO
P12_7_SIO
VDDIO1 VDDIO3
SAR1 EXTREF
P15_0
P15_1
VDDD
VCCD
VSSD
0603
1.0 uF
P1_6
P1_7
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
C7
0603
EXTREF1 LED1
VDD 1.0 uF 820 ohm
R18
VDD P2_1 2 1
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
VDDA 0805
VDDD SAR Bypass Capacitors
P_VCCD
P12_6
P12_7
P15_0
P15_1
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
DM_P
VDDD
VSSD
DP_P
P15_4
0603
CMOD Switch
0603
C4
VCCA ZERO
USER PUSH BUTTON
VTARG
P_VCCD 2200 pF
P_VCCD
VTARG
C37 J5
C31
PROG_SWDIO
0603 1.0 uF 1 2 R19
0603 C29 PROG_SWDCLK
TVS DIODE
1.0 uF 3 4 4.7K
0.1 uF P_SWO SW2
TVS1
0402
C33 5 6 P_TDI No Load XRES 1 2
7 8 PROG_RESET
0402
0.1 uF 9 10 XRES SW PUSHBUTTON
50MIL KEYED SMD No Load
No Load C17
0.1 uF
0402
PSoC 5LP Program/Debug Header No Load
J6
USB Connector P5LP_VDD VDD
F1 D2 VTARG P15_2 VTARG
USB Micro-B P5LP_VDD
VTARG SOD123
J3 1 Y1 R11
VBUS R20 ZERO
1 2 DM 2 1
1 DM C27
2 3 DP PTC Resettable Fuse ZERO
2 DP 0.1 uF
3 PROG_RESET 4 0402 32.768 KHz
3 ID P15_3
4 5
S1
S2
S3
S4
1
2
5 PROG_SWDIO TP1 TP2 TP3
5 C42 P5LP_VDD
BLACK BLACK BLACK C41 J4 VDDIO
1
2
22 pF
6
7
8
9
This signals will be coming from Kitprog from Breakable area C19 0.01 uF
Title
PCA: 121-60210-01
PCB: 600-60243-01 CY8CKIT-059 PSoC 5LP Prototyping Kit
FAB DRW: 610-60235-01 Size Document Number Rev
ASSY DRW: 620-60243-01 B 630-60242-01 06
SCH: 630-60242-01 Date: Tuesday, June 16, 2015 Sheet 2 of 3
KP_VDDIO2
KP_VDDIO3
KP_VDDIO0
LED2
KP_VCCD
KP_P0_5
KP_P0_4
C11 C1 C3 C14 R8 560 ohm
R10 2 1
VDDD
VSSD
0805
0402 0402 0402 0402 0.1 uF
0.1 uF 0.1 uF 0.1 uF ZERO
VBUS
VTARG POWER LED Amber
D1
U1 Power LED
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
KP_VDD SOD123
EPAD
P2_5
VDDIO2
P2_4
P2_3
P2_2
P2_1
P2_0
P15_5
P15_4
VDDD
VSSD
VCCD
P0_7
P0_6
P0_5
P0_4
VDDIO0
VDDD
C24 C5
KP_P2_6 1 51 KP_P0_3
0603 0402 KP_P2_7 2 P2_6 P0_3 50 KP_P0_2 SW3
1.0 uF 0.1 uF P2_7 P0_2
KP_P12_4 3 49 KP_P0_1 PROG_RESET 1A 2A
KP_P12_5 4 P12_4 I2C0_SCL, SIO P0_1 48 KP_P0_0 1B 2B
5 P12_5 I2C0_SDA, SIO P0_0 47 KP_P12_3
6 VSSB SIO_P12_3 46 KP_P12_2 Switch
IND SIO_P12_2 KP_P0_4
VDDD 7 45 VSSD
VBOOST VSSD KP_P0_3
8 CY8C5868LTI-LP039 QFN68 44 VDDA
VBAT VDDA KP_P0_2
VSSD 9 43
C25 C6 KP_XRES 10 VSSD VSSA 42 VCCA
XRES VCCA C15 C16 C8 0603
SAR Bypass
11 41 Capacitor
1.0 uF
0603 0402
0.1 uF 12 P1_0 P15_3 40 0603 0603
P1_1 P15_2 1.0 uF 1.0 uF 1.0 uF VTARG
13 39 KP_P12_1
14 P1_2 SIO, I2C1_SDA P12_1 38 KP_P12_0
15 P1_3 SIO, I2C1_SCL P12_0 37
16 P1_4 P3_7 36 KP_P3_6 KP_P2_6
VDDA P1_5 P3_6
P12_6_SIO
P12_7_SIO
KP_VDDIO1 17 35 KP_VDDIO3
P15_7 DM
P15_6 DP
C39 VDDIO1 VDDIO3 KP_P2_7
C38
P15_0
P15_1
VDDD
VCCD
VSSD
R9 R7
P1_6
P1_7
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
0402 0603 2.2K 2.2K
0.1 uF 1.0 uF
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
4
P3_3, P3_2, P0_7, P0_6, P0_5, P0_4
KP_P12_6
KP_P12_7
KP_DM_P
KP_DP_P
pins are reserved for HW REV ID
KP_P1_6
KP_P1_7
KP_VCCD
U3
KP_P3_0
KP_P3_1
KP_P3_4
KP_P3_5
NTZD3152P
VDDD
VSSD
VCCA 5(MSB) 4 3 2 1 0(LSB)
3
C30 P3.3 P3.2 P0.7 P0.6 P0.5 P0.4
1.0 uF KP_P12_1 I2C_SDA
0603
22E R4
22E R6
Floating GND Floating Floating GND Floating KP_P12_0 I2C_SCL
0603
0603
Place Near PSoC 5LP
GND read as binary "1"
floating pin is read as binary "0" KP_P12_7 UART TX
KP_VCCD R2
R3
KP_DM
R1 15K
KP_DP KP_P12_6
4.7K 15K UART RX
KP_P1_6
C10 C28 0603 No Load
KP_P1_7
0402 KP_XRES I2C & UART Connection
0.1 uF 1.0 uF
C2 R14 R13
30K 30K
0402
0.1 uF
VBUS
No Load J9 J8
1 KP_P3_0 1
KP_P12_5 2 KP_P3_4 2
I2C_SCL 3 KP_P3_5 3
I2C_SDA 4 KP_P3_6 4
UART RX 5 KP_P0_0 5
UART TX 6 KP_P0_1 6
VBUS 7 7
VTARG
HDR 1x7 HDR 1x7
J7 No Load No Load
F2 1
1 2 KitProg I/O Headers
2 3 KP_P12_4
3 PROG_RESET
J10 PTC Resettable Fuse 4 KP_P12_3
4 PROG_SWDCLK
1 5 KP_P12_2 PROG_SWDIO
VBUS 2 KP_DM C40 5
DM 3 KP_DP 0.1 uF HDR 1x5
DP 4
0402
No Load
CYPRESS SEMICONDUCTOR © 2015
GND PCA: 121-60210-01 Title
USB FINGER PCB: 600-60243-01 CY8CKIT-059 PSoC 5LP Prototyping Kit
Target PSoC Program/Debug Header FAB DRW: 610-60235-01
Size Document Number Rev
USB Finger Connector ASSY DRW: 620-60243-01
SCH: 630-60242-01 B 630-60242-01 06
Note: CY8CKIT-002 MiniProg3 is not part of the PSoC 5LP Prototyping Kit contents and can be
purchased from the Cypress Online Store.