Cypress CY8CKIT-030 User Manual

CY8CKIT-030 PSoC
®
3 Development
Kit Guide
Doc. # 001-61038 Rev. *A
Cypress Semiconductor
198 Champion Court
Phone (USA): 800.858.1810
Phone (Intnl): 408.943.2600
http://www.cypress.com
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2011. 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 sa fety applica tions, unless pursu ant 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, transla tion, 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 applica tion or use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems whe re 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.
®
Creator™ is a trademark and PSoC® is a registered trademark of Cypress Semiconductor Corp. All other trademarks
PSoC or registered trademarks referenced herein are property of the respective corporations.
Flash Code Protection
Cypress products meet the specifications contained in their particular Cypress PSoC Data Sheets. Cypress believes that its family of PSoC 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 protecti on features. Any of these methods, to our knowledge, would be dishonest and possibly illegal. Neither Cypress nor any other semiconductor manufacturer can guaran­tee 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 inte grity of their code. Co de prot ection i s constantly evolving. We at Cypress are committed to continuously improving the code protection features of our products.
2 CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A

Contents

1. Introduction 5
1.1 Kit Contents..................................... ... ... ....................................... ... ... ... .... ..................5
1.2 PSoC Creator ..............................................................................................................5
1.3 Additional Learning Resources..................... ... ... ... ... .... ... ... ... .... ... ...............................6
1.4 Document History ........................................................................................................6
1.5 Documentation Conventions .......................................................................................6
2. Getting Started 7
2.1 Introduction..................................................................................................................7
2.2 CD Installation .................................... ... ... .... ... ... ... ... .... ...................................... .... ... ..7
2.3 Install Hardware...........................................................................................................8
2.4 Install Software ............................................................................................................8
2.5 Uninstall Software........................................................................................................8
3. Kit Operation 9
3.1 Introduction..................................................................................................................9
3.2 Programming PSoC 3 Device......................................................................................9
4. Hardware 11
4.1 System Block Diagram ....................................... ....................................... ... ... ... .... ...11
4.2 Functional Description .................................. ......................................... .... ................12
4.2.1 Power Supply.................................................................................................12
4.2.1.1 Power Supply Jumper Settings........................................................14
4.2.1.2 Grounding Scheme..........................................................................14
4.2.1.3 Low Power Functionality. .... ... ... ... ... .... ... ... ... .... ... ... ... ... .... ... ... ... .......15
4.2.2 Programming Interface...................................................................................15
4.2.2.1 On-board Programming Interface....................................................15
4.2.2.2 JTAG/SWD Programming................................................................16
4.2.3 USB Communication..................... .... ... ... ... ... .... ... ... ... .... ... ... ..........................17
4.2.4 Boost Convertor.............................................................................................18
4.2.5 32-kHz and 24-MHz Crystal...........................................................................19
4.2.6 PSoC 3 Development Kit Expansion Ports....................................................19
4.2.6.1 Port D. ... ....................................... ... .... ... ... .......................................19
4.2.6.2 Port E........ ... ... ... ....................................... ... .... ... ... ..........................21
4.2.7 RS-232 Interface............................................................................................22
4.2.8 Prototyping Area ........... ... .... ... ... ... .... ... ... ....................................... ... ... ... .... ...22
4.2.9 Character LCD........................................... ... .... ... ... ... ....................................23
4.2.10 CapSense Sensors........................................................................................24
5. Example Projects 25
5.1 Voltage Display..........................................................................................................26
5.1.1 Project Description..................................... ... .... ... ... ... .... ... ... ... ... .... ... .............26
CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A 3
Contents
5.1.2 Hardware Connections ..................................................................................26
5.1.3 Del-Sig ADC Configuration............................................................................26
5.1.4 Verify Output..................................................................................................27
5.2 Intensity LED...... ... ... ....................................... ... .... ...................................... ... .... ......27
5.2.1 Project Description .. ... ... .... ... ... ....................................... ... ... .... ... ...................27
5.2.2 Hardware Connections ..................................................................................27
5.2.3 Verify Output..................................................................................................28
5.3 Low Power Demonstration ........................................................... ... .... ......................28
5.3.1 Project Description .. ... ... .... ... ... ....................................... ... ... .... ... ...................28
5.3.2 Hardware Connections ..................................................................................28
5.3.3 Verify Output..................................................................................................28
5.4 CapSense Example...................................................................................................29
5.4.1 Project Description .. ... ... .... ... ... ....................................... ... ... .... ... ...................29
5.4.2 Hardware Connections ..................................................................................29
5.4.3 Verify Output..................................................................................................30
5.5 ADC and DMA-DAC Example...................................................................................31
5.5.1 Project Description .. ... ... .... ... ... ....................................... ... ... .... ... ...................31
5.5.2 Hardware Connections ..................................................................................31
5.5.3 Verify Output..................................................................................................31
A. Appendix 33
A.1 Schematic..................................................................................................................33
A.2 Board Layout......... ... .... ... ... ... ... ....................................... ... .... ... ... .............................38
A.2.1 PDC-09589 Top.............................................................................................38
A.2.2 PDC-09589 Power.........................................................................................39
A.2.3 PDC-09589 Ground.......................................................................................40
A.2.4 PDC-09589 Bottom........................................................................................41
A.3 BOM .........................................................................................................................42
4 CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A

1. Introduction

Thank you for your interest in the CY8CKIT-030 PSoC® 3 Development Kit. This kit allows you to develop precision analog and low power designs using PSoC 3. You can design your own projects with PSoC Creator™ or by altering sample projects prov ided with this kit.
The CY8CKIT-030 PSoC 3 Development Kit is based on the PSoC 3 family of dev ices. PSoC 3 is a Programmable System-on-Chip™ platform for 8- and 16-bit applications. It combines precision analog and digital logic with a high-performance CPU. With PSoC, you can create the exact combination of peripherals and integrated proprietary IP to meet your application requirements.

1.1 Kit Contents

The PSoC 3 Development Kit contains:
Development board
Kit CD
Quick Start Guide
USB A to Mini B cable
3.3 V LCD module
Inspect the contents of the kit; if you find any part missing, contact your n earest Cypress sales office for help.

1.2 PSoC Creator

Cypress's PSoC Creator software is a state-of-the-art, easy-to-use integrated development environment (IDE) that introduces a game-changing, hardware and software design environment based on classic schematic entry and revolutionary embedded design methodology.
With PSoC Creator, you can:
Create and share user-defined, custom peripherals using hierarchical schematic design.
Automatically place and route select components and integrate simple glue logic, normally
located in discrete muxes.
Trade-off hardware and software design considerations allowing you to focus on what matters
and getting to market faster.
PSoC Creator also enables you to tap into an entire tools eco system with integrated compiler tool chains, RTOS solutions, and prod uction programmers to support both PSoC 3 and PSoC 5.
CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A 5
Introduction

1.3 Additional Learning Resources

Visit www.cypress.com for additional learning resources in the form of data sheets, technical reference manual, and application notes.

1.4 Document History

Revision
** 01/06/11 QVS Initial version of kit guide
*A 04/28/11 RKAD Updated Schematic
PDF Creation
Date

1.5 Documentation Conventions

Table 1-1. Document Conventions for Guides
Convention Usage
Courier New
Italics
[Bracketed, Bold]
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.
Displays keyboard commands in procedures: [Enter] or [Ctrl] [C]
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
Origin of
Change
Description of Change
6 CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A

2. Getting S tarted

2.1 Introduction

This chapter describes how to install and configure the PSoC 3 Development Kit. Chapter 3 describes the kit operation. It explains how to program a PSoC 3 device with PSoC Programmer and use the kit with the help of an example project. To reprogram the PSoC device with PSoC Creator, refer to the CD installation instructions for PSoC Creator. Chapter 4 details the hardware operation. Chapter 5 provides instructions to create a simple example project. The Appendix section provides the schematics and BOM associated with the PSoC 3 Development Kit.

2.2 CD Installation

Follow these steps to install the PSoC 3 Development Kit software:
1. Insert the kit CD into the CD drive of your PC. The CD is designed to auto-run and the kit menu appears.
Figure 2-1. Kit Menu
Note If auto-run does not execute, double-click AutoRun on the root directory of the CD.
CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A 7
Getting Started
After the installation is complete, the kit contents are available at the following location:
C:\Program Files\Cypress\PSoC 3 Development Kit\1.0

2.3 Install Hardware

No hardware installation is required for this kit.

2.4 Install Software

When installing the PSoC 3 Development Kit, the installer checks if your system has the required software. These include PSoC Creator, PSoC Programmer, Windows Installer, .NET, Acrobat Reader, and KEIL Complier. If these applications are not installed, then the installer prompts you to download and install them.
Install the following software from the kit CD:
1. PSoC Creator
2. PSoC Programmer 3.12.3 or later Note When installing PSoC Programmer, select Typical on the Installation Type page.
3. Example projects (provided in the Firmware folder)

2.5 Uninstall Software

The software can be uninstalled using one of the following methods:
Go to Start > Control Panel > Add or Remove Programs; select the Remove button.
Go to Start > All Programs > Cypress > Cypress Update Manager > Cypress Update Man-
ager; select the Uninstall button.
Insert the installation CD and click Install PSoC 3 Development Kit button. In the CyInstaller
for PSoC 3 Development Kit 1.0 window, select Remove from the Installation T ype drop-down
menu. Follow the instructions to uninstall.
8 CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A

3. Kit Operation

3.1 Introduction

The example projects in the PSoC 3 Development Kit help you develop precision analog applications using the PSoC 3 family of devices. The board also has hooks to enable low power measurements for low power application development and evaluation.

3.2 Programming PSoC 3 Device

The default programming interface for the board is a USB based on-board programming interface. To program the device, plug the USB cable to the programming USB connector J1, as shown in the following figure.
Figure 3-1. Connect USB Cable to J1
When plugged in, the board enumerates as DVKProg. After enumeration, initiate, build, and then program using PSoC Creator.
When using on-board programming, it is not necessary to power the board from the 12-V or 9-V DC supply or a battery. The USB power to the programming section can be used.
If the board is already powered from another source, plugging in the programming USB does not damage the board.
CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A 9
Kit Operation
The PSoC 3 device on the board can also be programmed using a MiniProg3 (CY8CKIT-002). To use MiniProg3 for programming, use the connector J3 on the board as shown in the following figure.
Note The MiniProg3 (CY8CKIT-002) is not part of the PSoC 3 Development Kit contents. It can be purchased from the Cypress Online Store.
Figure 3-2. Connect MiniProg
With the MiniProg3, programming is similar to the on-board programmer; however, the setup enumerates as a MiniProg3.
10 CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A

4. Hardware

4.1 System Block Diagram

The PSoC 3 Development Kit has the following sections:
Power supply system
Programming interface
USB communications
Boost convertor
PSoC 3 and related circuitry
32-kHz crystal
24-MHz crystal
Port E (analog performance port) and port D (CapSense
RS232 communications interface
Prototyping area
Character LCD interface
CapSense buttons and sliders
®
or generic port)
CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A 11
Hardware
Power Adapter
9V Battery
Boost Converter
Input
Communication USB
10-Pin JTAG/SWD/SWO Debug and Prog Header
On-Board
Programming
USB
24 MHz Crystal
Port D
(CapSense/
Miscellaneous
Port)
32 kHz Crystal
Port E
(Analog Port)
Variable
Resistor/
Potentiometer
RS-232
Interface
Character LCD Interface
Switches/LEDs
Prototyping Area
CapSense
RESET Button
Figure 4-1. PSoC 3 Development Kit Details

4.2 Functional Description

4.2.1 Power Supply

The power supply system on this board is versatile; input supply can be from the following sources:
9-V or 12-V wall wart supply using connector J4
9-V battery connector using connectors BH1 and BH2
USB power from communications section using connector J2
USB power from the on-board programming section using connector J1
Power from JTAG/SWD programming interface using connector J3
Power through boost convertor that uses the input test points VBAT and GND
12 CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A
Hardware
3.3-V Regulator
5-V Regulator
5-V/3.3-V Analog
Regulator
USB
Commu nication
Power
9-V Battery
12-V/9-V Wall
wart
Vin
Vddd
Selection
(J10)
Vdda
Selection
(J11)
3.3 V
Vddd
5 V
Vdda
USB
Programming
5 V
The board power domain has five rails:
Vin rail: This is where the input of the on-board regulators are connected. This domain is
powered through protection diodes.
5-V rail: This is the output of the 5-V regulator U2. The rail is a fixed 5 V output regardless of
jumper settings. The voltage in this rail can be less than 5 V only when the board is powered by the USB. This 5-V rail powers the circuits that require fixed 5 V supply.
3.3-V rail: This is the output of the 3.3-V regulator U4. This rail remains 3.3 V regardless of
jumper settings or power source changes. It powe rs the circui t s requ iring fixed 3.3 V supply such as the on-board programming section.
Vddd rail: This rail provides power to the digital supply for the PSoC device. It can be derived
from either the 5 V or 3.3 V rail. The selection is made using J10 (3-pin jumper).
Vdda rail: This rail provides power to the analog supply of the PSoC device. It is the output of a
low noise regulator U1. The regulator is a variable output voltage and can be either 3.3 V or 5 V.
This is done by changing the position on J11 (3-pin jumper). The following block diagram shows the structure of the power system on the board. Figure 4-2. Power System Structure
CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A 13
Hardware
4.2.1.1 Power Supply Jumper Settings
Figure 4-3. Jumper Settings
Two jumpers govern the power rails on the board. J10 is responsible for the selection of Vddd (digital power) and J11 selects Vdda (analog power).
The jumper settings for each power scheme are as follows.
Powering Scheme Jumper Settings
Vdda = 5 V, Vddd = 5 V J10 in 5 V setting and J11 in 5 V setting. Vdda = 3.3 V, Vddd = 3.3 V J10 in 3.3 V setting and J11 in 3.3 V setting. Vdda = 5 V, Vddd = 3.3 V J10 in 3.3 V setting and J11 in 5 V setting.
Vdda = 3.3 V, Vddd = 5 V
Warning:
The PSoC device performance is guaranteed when Vdda is greater than or equal to Vddd. Fail-
ure to meet this condition can have implications on the silicon performance.
When USB power is used, ensure a 3.3 V setting on both analog and digital supplies. This is
because, the 5 V rail of the USB power is not accurate and is not recommended.
4.2.1.2 Grounding Scheme
The board is designed considering analog designs as major target applications. Therefore, the grounding scheme in the board is unique to ensure precision analog performance.
There are three types of ground on this board:
GND - This is the universal ground where all the regulators are referred. Both Vssd and Vssa
connect to this ground through a star connection.
Vssd - This is the digital ground and covers the digital circuitry present on the board, such as
RS232 and LCD.
Vssa - This is the analog ground and covers the grounding for analog circuitry present on the
board, such as the reference block.
Can be achieved, but is an invalid condition because the PSoC 3 silicon performance cannot be guaranteed.
When creating custom circuitry in the prototyping area provided on the board, remember to use the Vssa for the sensitive analog circuits and Vssd for the digital ones.
Port E on the board is the designated analog expansion connector. This connector brings out ports 0, 3, and 4, which are the best performing analog ports on PSoC 3 and PSoC 5 devices. The expansion connector, port E, has two types of grounds. One is the analog ground (GND_A in silk
14 CY8CKIT-030 PSoC 3 Development Kit Guide, Doc. # 001-61038 Rev. *A
Loading...
+ 32 hidden pages