2 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *A
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2013. 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.
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 soft-
ware and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as speci-
fied 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 MATE-
RIAL, 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 sys-
tems 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.
PSoC and CapSense are registered trademarks of Cypress Semiconductor Corporation. PSoC Designer, SmartSense, and
CapSense Express are trademarks of Cypress Semiconductor Corporation. All other products and company names men-
tioned in this document may be the trademarks of their respective holders.
Purchase of I2C components from Cypress or one of its sublicensed Associated Companies conveys a license under the
Philips I2C Patent Rights to use these components in an I2C system, provided that the system conforms to the I2C Standard
Specification as defined by Philips. As from October 1st, 2006 Philips Semiconductors has a new trade name - NXP Semicon-
ductors.
Flash Code Protection
Cypress products meet the specifications contained in their particular Cypress Datasheets. Cypress believes that its family of
products is one of the most secure families of its kind on the market today, regardless of how they are used. There may be
methods, unknown to Cypress, that can breach the code protection features. Any of these methods, to our knowledge, would
be dishonest and possibly illegal. Neither Cypress nor any other semiconductor manufacturer can guarantee the security of
their code. Code protection does not mean that we are guaranteeing the product as "unbreakable."
Cypress is willing to work with the customer who is concerned about the integrity of their code. Code protection is constantly
evolving. We at Cypress are committed to continuously improving the code protection features of our products.
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *A 3
Contents
Safety Information 5
1. Introduction 7
1.1 Kit Contents .................................................................................................................7
1.2 PSoC® Creator™ ........................................................................................................8
1.3 Getting Started.............................................................................................................9
1.4 Additional Learning Resources....................................................................................9
1.5 Technical Support........................................................................................................9
1.6 Document Revision History ......................................................................................10
1.7 Documentation Conventions .....................................................................................10
2. Software Installation 11
2.1 PSoC 4 Pioneer Kit Software.....................................................................................11
2.2 Install Hardware.........................................................................................................12
2.3 Install Software ..........................................................................................................12
2.4 Uninstall Software......................................................................................................13
2.5 Develop Code Fast and Easy with Code Examples ..................................................13
2.6 Open a Code Example Project in PSoC Creator .......................................................15
3. Kit Operation 17
3.1 Pioneer Kit USB Connection......................................................................................18
3.2 Programming and Debugging the PSoC 4 Device ....................................................19
3.2.1 Using the Onboard PSoC 5LP Programmer and Debugger ..........................19
3.2.2 Using a CY8CKIT-002 MiniProg3 Programmer and Debugger......................21
3.3 USB-UART Bridge .....................................................................................................22
3.4 USB-I2C Bridge .........................................................................................................24
3.5 Updating the Firmware of Onboard Programmer PSoC 5LP.....................................25
4. Hardware 27
4.1 Board Details .............................................................................................................27
4.2 Theory of Operation...................................................................................................29
4.3 Functional Description ...............................................................................................30
4.3.1 PSoC 4...........................................................................................................30
4.3.2 PSoC 5LP ......................................................................................................31
4.3.3 Power Supply System ....................................................................................34
4.3.3.1 Protection Circuit..............................................................................35
4.3.3.2 Procedure to Measure the PSoC 4 Current Consumption...............35
4.3.4 Programming Interface...................................................................................36
4.3.5 Arduino Compatible Headers (J1, J2, J3, J4, and J12 - unpopulated)...........37
4.3.5.1 Additional functionality of header J2 ................................................38
4.3.6 Digilent Pmod Compatible Header (J5 - unpopulated)...................................39
4.3.7 PSoC 5LP GPIO header (J8) .........................................................................40
4 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *A
Contents
4.3.8 CapSense Slider ............................................................................................ 41
4.3.9 Pioneer Board LEDs ......................................................................................42
4.3.10 Push Buttons .................................................................................................43
5. Example Projects 45
5.1 Project: Blinking LED................................................................................................. 49
5.1.1 Project Description.........................................................................................49
5.1.2 Hardware Connections .................................................................................. 49
5.1.3 Flowchart .......................................................................................................50
5.1.4 Verify Output ..................................................................................................50
5.2 Project: PWM.............................................................................................................52
5.2.1 Project Description.........................................................................................52
5.2.2 Hardware Connections .................................................................................. 52
5.2.3 Flowchart .......................................................................................................53
5.2.4 Verify Output ..................................................................................................54
5.3 Project: Deep Sleep...................................................................................................54
5.3.1 Project Description.........................................................................................54
5.3.2 Hardware Connections .................................................................................. 54
5.3.3 Flowchart .......................................................................................................55
5.3.4 Verify Output ..................................................................................................56
5.4 Project: CapSense..................................................................................................... 56
5.4.1 Project Description.........................................................................................56
5.4.2 Hardware Connections .................................................................................. 56
5.4.3 Flowchart .......................................................................................................57
5.4.4 Verify Output ..................................................................................................58
6. Advanced Section 59
6.1 Using PSoC 5LP as USB-UART Bridge .................................................................... 59
6.2 Using PSoC 5LP as USB-I2C Bridge ........................................................................70
6.3 Developing Applications for the PSoC 5LP ...............................................................76
6.3.1 Building a Bootloadable project for the PSoC 5LP ........................................77
6.3.2 Building a Normal Project for PSoC 5LP .......................................................85
A. Appendix 87
A.1 CY8CKIT-042 Schematics.........................................................................................87
A.2 Pin Assignment Table................................................................................................90
A.3 Program and Debug Headers.................................................................................... 92
A.4 Use of Zero ohm resistors and NOLOAD ..................................................................93
A.5 Error in Firmware / Status Indication in status LED...................................................94
A.6 Bill of Materials (BOM)...............................................................................................94
A.7 Regulatory Compliance Information .......................................................................... 97
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *A 5
Safety Information
Regulatory Compliance
The PSoC 4 Pioneer kit, CY8CKIT-042 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. Due to this reason the board 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, the user may be required to take adequate preventive measures. Also,
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 CY8CKIT-042 as shipped from the factory has been verified to meet with requirements of CE as
a Class A product.
The CY8CKIT-042 contains electrostatic discharge (ESD) sensitive
devices. Electrostatic charges readily accumulate on the human body
and any equipment, and can discharge without detection. Permanent
damage may occur on devices subjected to high-energy discharges.
Proper ESD precautions are recommended to avoid performance
degradation or loss of functionality. Store unused CY8CKIT-042
boards in the protective shipping package.
End-of-Life / Product Recycling
This Kit has an end-of-life cycle after five years from the date of
manufacturing mentioned on the back side of the box. Please contact
your nearest recycler for discarding the kit.