Cypress CY8CKIT-145-40XX User Manual

CY8CKIT-145-40XX
PSoC® 4000S Prototyping Kit Guide
Doc. # 002-11504 Rev. *A
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2016-2017. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including Spansion LLC ("Cypress"). This document, including any software or firmware includ ed or referenced in this document ("Software"), is owned by Cypress under the intellectual property law s and trea ties of the Un ited States and other countries worldwide. Cypress reserves all rights under such laws and treaties and do es not, except as specifically 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 n ot 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 co de form, to modify and reproduce the Software solely for use with Cypress hardware products, only internally within your organization, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly through resellers 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, unmodifie d) 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 PURPOSE. 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 purposes. 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 th is information and any resulting product. Cypress products are not designed, intended, or authorized 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 surgical 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 harml ess 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 thereo f, WICED, PSo C, 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 respective owners.
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 2
Contents
Safety Information 4
1. Introduction 5
1.1 Kit Contents..................................... ... ... ....................................... ... ... ... .... ... ... ... .........6
1.2 Board Details ................................... ... ... ....................................... ... ... ... .... ... ... ............7
1.3 PSoC Creator ..............................................................................................................9
1.4 Getting Started...........................................................................................................12
1.5 Additional Learning Resources........................ ... ... .......................................... ... .... ...12
1.6 Technical Support......................................................................................................13
1.7 Documentation Conventions......................................................................................13
1.8 Acronyms...................................................................................................................14
2. Software Installation 15
2.1 Before You Begin.......................................................................................................15
2.2 Install Software ..........................................................................................................15
2.3 Uninstall Software......................................................................................................18
3. Kit Operation 19
3.1 Theory of Operation..................... .... ... ... ... .... ... ... ... ... .... .......................................... ...19
3.2 KitProg2.....................................................................................................................22
4. Code Examples 25
4.1 Using the Kit Example Projects .................................................................................25
A. Appendix 28
A.1 Hardware Functional Description...............................................................................28
A.2 Schematics ................................................................................................................47
A.3 Bill of Materials ..........................................................................................................47
A.4 Programming the PSoC 4000S Prototyping Kit Using Miniprog3/KitProg2 ............... 48
Revision History 49
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 3
Safety Information
The PSoC 4000S Prototyping Kit 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 PSoC 4000S Prototyping kits in the protective shipping package.
End-of-Life/Product Recycling This kit has an end-of life five years from the date of manufacture which is
encoded in bar code placed on the pack. Contact your nearest recycler for discarding the kit.
Regulatory Compliance
The CY8CKIT-145-40XX PSoC® 4000S 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 measur es. 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 4000S Prototyping Kit, as shipped from the factory, has been ve rified to meet with the requirements of CE as a Class A product.
General Safety Instructions
ESD Protection
ESD can damage boards and associated components. Cypress recommends that you perform procedures only at an ESD workstation. If an ESD workstation is not available, use appropriate ESD protection by wearing an antistatic wrist strap attached to a grounded metal object.
Handling Boards
PSoC 4000S Prototyping Kit is 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 the board over any surf ac e.
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 4
1. Introduction
Thank you for your interest in the CY8CKIT-145-40XX PSoC® 4000S Prototyping Kit. The PSoC 4000S Prototyping Kit enables customers to evaluate and develop projects using the PSoC 4000S device family.
PSoC 4000S device family is an expansion to the PSoC 4000 device family that offers more flash, GPIOs, and programmable analog and digital blocks. PSoC 4000S device is a programmable embedded system-on chip, integrating custom analog and digital peripheral functions, memory, and an ARM peripheral functions allow higher flexibility, in-field tuning of the design, and faster time-to-market.
The PSoC 4000S Prototyping Kit offers an open footprint breakout board to maximize the end utility of the PSoC 4000S device. This kit provides a low-cost alternative to device samples while providing a platform to easily develop and integrate the PSoC 4000S device into your end-system.
The board includes the following features:
3 CapSense buttons
5-Segment CapSense slider
LEDs to provide feedback
Onboard C
Bypass capacitor to ensure high-quality analog-to-digital conversions (No Load by default)
A push button to provide a simple user input
Load capacitors to connect the 32-kHz external crystal oscillator
Cypress EZ-BLE
5-V operation
®
Cortex®-M0+ microcontroller on a single chip. The programmable analog and digital
, C
MOD
TANK
®
PRoC™ Module
, C
intA
and C
capacitors to enable CapSense development
intB
The PSoC 4000S Prototyping Kit also integrates Cypress KitProg2, which enables onboard programming, debugging, and bridging functionality such as USB-UART and USB-I2C. KitProg2 is used to program and debug the target PSoC 4000S/EZ-BLE PRoC device. The PSoC 4000S Prototyping kit is designed to snap away the KitProg2 board from the PSoC 4000S target board.
You will use PSoC Creator™ to develop and debug your PSoC 4000S device projects. PSoC Creator is Cypress’s standard integrated design environment (IDE). If you are new to PSoC Creator, see the documentation on the PSoC Creator home page. You can also refer the application note
AN79953 - Getting Started with PSoC 4, which gives an introduction to the PSoC 4 device.
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 5
1.1 Kit Contents
The PSoC 4000S Prototyping Kit contains PSoC 4000S Prototyping board and Quick Start Guide. The PSoC 4000S Prototyping board is as shown in Figure 1-1.
Figure 1-1. PSoC 4000S Prototyping Board
Introduction
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 6
1.2 Board Details
The PSoC 4000S Prototyping board consists of the blocks as shown in Figure 1-2. Also, Figure 1-3 shows the pin mapping for kit headers.
Figure 1-2. PSoC 4000S Prototyping Board Block Diagram
Introduction
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 7
Figure 1-3. PSoC 4000S Prototyping Board Pin Details
Introduction
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 8
1.3 PSoC Creator
PSoC Creator is a state-of-the-art, easy-to-use IDE. It introduces revolutionary hardware and software co-design, powered by a library of fully verified a nd character ized PSoC Compon ents™, as shown in Figure 1-4. With PSoC Creator, you can:
1. Drag and drop Components to build your hardware system design in the main design workspace
2. Co-design your application firmware with the PSoC hardware
3. Configure Components using configuration tools
4. Explore the library of 100+ Components
5. Access Component datasheets Figure 1-4. PSoC Creator Features
Introduction
PSoC Creator also enables you to tap into an entire tool ecosystem with integrated compiler chains and production programmers for PSoC devices.
For more information, visit www.cypress.com/psoccreator.
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 9
1.3.1 PSoC Creator Code Examples
PSoC Creator includes a large number of code examples. These examples are accessible from the PSoC Creator Start Page, as shown in Figure 1-5.
Code examples can speed up your design process by starting you off with a complete design, instead of a blank page. The example projects also show how to use PSoC Creator Components for various applications. Code examples and documentation are included as shown in Figure 1-6.
In the Find Example Project dialog shown in Figure 1-6, you have several options:
Filter for examples based on a device family or keyword.
Select from the list of examples offered based on the Filter Options.
View the project documentation for the selection (on the Documentation tab).
View the code for the selection on the Sample Code tab . You can also copy and paste cod e from
this window to your project, which can help speed up code development.
Create new workspace for the code example or add to your existing workspace. Th is can speed
up your design process by starting you off with a complete , basic design. You can then adapt that design to your application.
Figure 1-5. Code Examples in PSoC Creator
Introduction
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 10
Figure 1-6. Code Example Projects with Sample Code
Introduction
1.3.2 Kit Code Examples
You can access the installed kit code examples from the PSoC Creator Start Page. To access these examples, expand the Kits under the section Examples and Kits; then, expand the specific kit to see the code examples. Refer to the Code Examples chapter on page 25 for a list of code examples that you can use on this kit.
1.3.3 PSoC Creator Help
Launch PSoC Creator and navigate to the following items:
Quick Start Guide: Choose Help > Documentation > Quick Start G uide . This guide gives you
the basics for developing PSoC Creator projects.
Simple Component Code Examples: Choose File > Code Example. These examples
demonstrate how to configure and use PSoC Crea to r Co mp one nt s. To access examples related to a specific Component, right-click on the Component in the schematic or in the Component Catalog. Select the Find Code Example option in the context menu that appears.
System Reference Guide: Choose Help > System Reference Guides. This guide lists and
describes the system functions provided by PSoC Creator.
Component Datasheets: Right-click a Component and select Open Datasheet. Visit the
PSoC 4 Component Datasheets page for a list of all PSoC 4 Component datasheets.
Document Manager: PSoC Creator provides a document manager to help you easily find and
access the document resources. To open the document manager, choose the menu item Help > Document Manager.
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 11
1.4 Getting Started
This guide will help you be acquainted with the CY8CKIT-145-40XX PSoC 4000S Prototyping Kit:
The Software Installation chapter on page 15 chapter describes the installation of the kit
software. This includes the PSoC Creator IDE to develop and debug the applications, and PSoC Programmer to program the .hex files on to the device.
The Kit Operation chapter on page 19 chapter describes the major features of the PSoC 4000S
Prototyping Kit and functionalities such as programming, debugging, and the USB-UART and USB-I2C bridges.
The Code Examples chapter on page 25 chapter describes PSoC 4000S code examples that will
help you understand how to create your own PSoC 4000S projects.
The Appendix chapter on page 28 provides the detailed hardware description, kit schematics,
and the bill of materials (BOM).
1.5 Additional Learning Resources
Cypress provides a wealth of data at www.cypress.com to help you to select the right PSoC device for your design, and to help you to quickly and effectively integrate the device into your de sign. For a comprehensive list of resources, see KBA86521, How to Design with PSoC 3, PSoC 4, and
PSoC 5LP. The following is an abbreviated list for PSoC 4:
Overview: PSoC Portfolio and PSoC Roadmap.
Product Selectors: PSoC 4 Product Selector. In addition, PSoC Creator includes a device
selection tool.
Datasheets: Describe and provide electrical specifications for the PSoC 4000, PSoC 4100, PSoC
4200, PSoC 4100M, PSoC 4200M, PSoC 4200L and PSoC 400 0S device families.
CapSense Design Guide: Learn how to design capacitive touch-sensing applications with the
PSoC 4 family of devices.
Application Notes and Code Examples: Cover a broad range of topics, from basic to advanced.
Many of the application notes include code examples. Visit the PSoC 3/4/5 Code Examples web page for a list of all available PSoC Creator code examples. To access code examples from within PSoC Creator - see PSoC Creator Code Examples on page 10.
Technical Reference Manuals (TRM): Provide detailed descriptions of the architecture and
registers in each PSoC 4 device family.
Development Kits: ❐ CY8CKIT-041, CY8CKIT-046, CY8CKIT-044, CY8CKIT-042 and CY8CKIT-040 are easy-to-
use and inexpensive development pla tf or ms . These kits includ e co nn e c to rs for Arduino compatible Shields and Digilent Pmod Peripheral Modules.
CY8CKIT-043, CY8CKIT-049, and CY8CKIT-145 are very low-cost protot yp ing plat fo rm for
sampling PSoC 4 devices.
CY8CKIT-001 is a common development platform for all PSoC family devices.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 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.
Introduction
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 12
1.6 Technical Support
For assistance, visit Cypress Support or contact customer support at +1(800) 541-4736 Ext. 2 (in the USA) or +1 (408) 943-2600 Ext. 2 (International).
You can also use the following support resources if you need quick assistance:
Self-help (Technical Documents)
Local Sales Office Locations
1.7 Documentation Conventions
Table 1-1. Document Conventions for Guides
Convention Usage
Courier New
Italics
File > Open
Bold
Times New Roman
Text in gray boxes Describes Cautions or unique functionality of the product.
Displays file locations, user entered text, and source code:
C:\ ...cd\icc\
Displays file names and reference documentation: Read about the sourcefile.hex file in the PSoC Designer User Guide.
Represents menu paths: File > Open > New Project
Displays commands, menu paths, and icon names in procedures: Click the File icon and then click Open.
Displays an equation:
2 + 2 = 4
Introduction
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 13
1.8 Acronyms
Table 1-2. Acronyms Used in this Document
ADC Analog-to-Digital Converter BLE Bluetooth Low Energy BOM Bill of Materials CMOD Modulator Capacitor CMP Comparator CTANK Shield tank capacitor DAC Digital to Analog Convertor DPDT Double-Pole, Double-Throw ESD Electrostatic Discharge GPIO General Purpose Input/Output I2C Inter-Integrated Circuit IDAC Current DAC IDE Integrated Development Environment LED Light-Emitting Diode PRoC Programmable Radio-on-Chip PSoC Programmable Systems-on-Chip TCPWM Timer, Counter, Pulse Width Modulator SAR Successive Approximation Register SCB Serial Communication Block SRAM Static Random Access Memory SWD Serial Wire Debug UART Universal Asynchronous Receiver Transmitter USB Universal Serial Bus WCO Watch Crystal Oscillator
Introduction
Acronym Description
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 14
2. Software Installation
This chapter describes the steps to install the software tools and packages on a PC for using the PSoC 4000S Prototyping Kit. This includes the IDE on which the projects will be built and used for programming.
2.1 Before You Begin
To install Cypress software, you will require administrator privileges. However, they are not required to run software that is already installed. Before you install the kit software, close any other Cypress software that is currently running.
2.2 Install Software
Follow these steps to install the PSoC 4000S Prototyping Kit software:
1. Download the PSoC 4000S Prototyping Kit software from www.cypress.com/CY8CKIT-145. The
kit software is available in three different formats for download.
a. CY8CKIT-145-40XX Kit Only: This executable file installs only the kit contents, which include
kit code examples, hardware files, and user documents. This package can be used if all the software prerequisites (listed in step 5) are installed on your PC.
b. CY8CKIT-145-40XX Kit Complete Setup: This installation package contains the file s rela ted
to the kit along with Cypress prerequisite software such as PSoC Creator and PSoC Programmer . However, it does not include the Windows Installer or Microsoft .NET framework packages. If these packages are not on your computer, the installer directs you to download and install them from the Internet.
c. CY8CKIT-145-40XX DVD ISO: This file is a complete package, stored in a DVD-ROM image
format, which you can use to create a DVD or extract using an ISO extraction program such as WinZip or WinRAR. The file can also be mounted like a virtual CD/DVD using virtual drive programs such as Virtual CloneDrive and MagicISO. This file includes all the required software, utilities, drivers, hardware files, and user documents.
2. If you have downloaded the ISO file, mount it on a virtual drive. Extract the ISO contents if you do
not have a virtual drive to mount. Double-click cyautorun.exe in the root directory of th e extracted content or the mounted ISO if “Autorun from CD/DVD” is not enabled on the computer. The installation window will appear automatically.
Note: If you are using the “Kit Complete Setup” or “Kit Only” file, then go to step 4 for installation.
PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A 15
Loading...
+ 34 hidden pages