background image

CY8CKIT-050

 

PSoC

®

 

5 Development Kit Guide

Doc. # 001-65816 Rev. *C

Cypress Semiconductor

198 Champion Court

San Jose, CA 95134-1709

Phone (USA): 800.858.1810

Phone (Intnl): 408.943.2600

http://www.cypress.com

Summary of Contents for PSoC 5 CY8CKIT-050A

Page 1: ...CY8CKIT 050 PSoC 5 Development Kit Guide Doc 001 65816 Rev C Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 408 943 2600 http www cypress com ...

Page 2: ...ess 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 app...

Page 3: ...mming PSoC 5 Device 11 4 Hardware 13 4 1 System Block Diagram 13 4 2 Functional Description 14 4 2 1 Power Supply 14 4 2 1 1 Power Supply Jumper Settings 15 4 2 1 2 Grounding Scheme 16 4 2 1 3 Low Power Functionality 16 4 2 1 4 AC DC Adaptor Specifications 17 4 2 1 5 Battery Specifications 17 4 2 2 Programming Interface 17 4 2 2 1 On board Programming Interface 17 4 2 2 2 JTAG SWD Programming 18 4...

Page 4: ...tyLED 31 5 3 1 Project Description 31 5 3 2 Hardware Connections 31 5 3 3 Verify Output 31 5 4 Project LowPowerDemo 32 5 4 1 Project Description 32 5 4 2 Hardware Connections 32 5 4 3 Verify Output 32 5 5 Project CapSense 33 5 5 1 Project Description 33 5 5 2 Hardware Connections 33 5 5 3 Verify Output 33 5 6 Project ADC_DAC 35 5 6 1 Project Description 35 5 6 2 Hardware Connections 35 5 6 3 Verif...

Page 5: ...nt 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 nearest 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 hardware and software design environment based on classic schematic entry a...

Page 6: ...ing Started with PSoC 5 PSoC Creator Training 1 3 2 Engineers Looking for More AN54460 PSoC 3 and PSoC 5 Interrupts AN52705 PSoC 3 and PSoC 5 Getting Started with DMA AN52701 PSoC 3 How to Enable CAN Bus Communication AN54439 PSoC 3 and PSoC 5 External Oscillator AN52927 PSoC 3 Segment LCD Direct Drive Cypress continually strives to provide the best support Click here to view a growing list of app...

Page 7: ...pdated the Additional Resources section Table 1 1 Document Conventions for Guides Convention Usage Courier New Displays file locations user entered text and source code C cd icc Italics Displays file names and reference documentation Read about the sourcefile hex file in the PSoC Designer User Guide Bracketed Bold Displays keyboard commands in procedures Enter or Ctrl C File Open Represents menu p...

Page 8: ...8 CY8CKIT 050 PSoC 5 Development Kit Guide Doc 001 65816 Rev C Introduction ...

Page 9: ...r see the CD installation instructions for PSoC Creator Chapter 4 details the hardware operation Chapter 5 provides instructions to create a simple code example The Appendix section provides the schematics and bill of materials associated with the PSoC 5 Development Kit 2 2 CD Installation Follow these steps to install the PSoC 5 Development Kit software 1 Insert the kit CD into the CD drive of yo...

Page 10: ...staller prompts you to down load and install them Install the following software from the kit CD PSoC Creator PSoC Programmer 3 12 4 or later Note When installing PSoC Programmer select Typical on the Installation Type page Code examples 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 ...

Page 11: ...ogram 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 DVKProg5 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 progra...

Page 12: ...ion Note The MiniProg3 CY8CKIT 002 is not part of the PSoC 5 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 ...

Page 13: ...as the following sections Power supply system Programming interface USB communications Boost convertor PSoC 5 and related circuitry 32 kHz crystal 24 MHz crystal Port E analog performance port and port D CapSense or generic port RS 232 communications interface Prototyping area Character LCD interface CapSense buttons and sliders ...

Page 14: ...on 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 Power Adapter 9 V Battery Boost Converter Input Communication USB 10 Pin JTAG SWD SWO Debug and Prog Header On board Programming USB 10 Pin MiniTrace Connector Port D CapSense...

Page 15: ...ring 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 voltag...

Page 16: ... 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 screen Vssa in the schematic which connects directly to the analog ground on the board The other ground known as GND is used for the digital and ...

Page 17: ...pin male header Disconnect the potentiometer by disconnecting J30 Ground the boost pins if boost operation is not used by populating R1 R28 and R29 Also make sure R25 and R31 are not populated 4 2 1 4 AC DC Adaptor Specifications Use adaptors with the following specifications Input voltage 100 to 240 VAC 50 Hz to 60 Hz 1A Output voltage 12 VDC 1A Power output 12 W Polarization Positive center Cert...

Page 18: ...reator to program this board through the on board programmer A zero ohm resistor R9 is provided on the board to disconnect power to the on board programmer 4 2 2 2 JTAG SWD Programming Apart from the on board programming interface the board also provides the option of using the MiniProg3 This interface is much faster than the on board program interface The JTAG SWD programming is done through the ...

Page 19: ...ost Convertor The PSoC 5 device has the unique capability of working from a voltage supply as low as 0 5 V This is possible using the boost convertor The boost convertor uses an external inductor and a diode These components are prepopulated on the board Figure 4 7 shows the boost convertor To enable the boost convertor functionality make the following hardware changes on the board Populate resist...

Page 20: ...rt E each with their own unique features 4 2 6 1 Port D This is the miscellaneous port designed to handle CapSense based application boards and digital application boards The signal routing to this port adheres to the stringent requirements needed to provide good performance CapSense This port can also be used for other functions and expansion board kits EBKs This port is not designed for precisio...

Page 21: ...CY8CKIT 050 PSoC 5 Development Kit Guide Doc 001 65816 Rev C 21 Hardware Figure 4 8 Port D ...

Page 22: ...sign development This port is functionally compatible to port A of the PSoC Development Kit and it is easy to port an application developed on port A This port has two types of grounds CGND1 and CGND2 The two grounds are connected to the GND on the board but are provided for expansion boards designed for analog performance The expansion boards have an analog and digital ground The two grounds on t...

Page 23: ...e port 0 and port 3 which bring out the four dedicated opamp pins on the device Therefore these ports can be used with the prototyping area to create simple yet elegant analog designs It also brings SIOs such as port 12 4 port 12 5 port 12 6 and port 12 7 and GPIOs such as port P6 0 and port P6 6 Power and ground connections are close to the prototyping space for convenience The area also has four...

Page 24: ...tput is available on P6 5 and VR on header P6 in the prototyping area 4 2 9 Character LCD The kit has a character LCD module which goes into the character LCD header P8 The LCD runs on a 3 3 V supply and can function regardless of the voltage on which PSoC is powered A zero ohm resistor setting is available on the LCD section R71 72 making it possible to convert it to a 3 3 V LCD CAUTION When the ...

Page 25: ...he board layout considers the special requirements for CapSense It has two CapSense buttons and a 5 element CapSense slider The CapSense buttons are connected to pins P5 6 and P5 5 The slider elements are connected to pins P5 0 4 The Cmod modulation capacitor is connected to pin P6 4 and an optional Rb bleeder resistor is available on P15 4 ...

Page 26: ...26 CY8CKIT 050 PSoC 5 Development Kit Guide Doc 001 65816 Rev C Hardware Figure 4 14 CapSense Sensors ...

Page 27: ...llow these steps to open and program code examples 1 Click on a code example from Examples and Kits on the PSoC Creator Start Page 2 Create a folder in the desired location and click OK 3 The project opens in PSoC Creator and is saved to that folder 4 Build the code example to generate the hex file 5 To program the code examples power the board using the instructions in On board Programming Interf...

Page 28: ...ple requires the character LCD on P8 Because it uses the potentiometer the jumper POT_PWR should be in place This connects the potentiometer to the Vdda 5 1 3 SAR ADC Configuration Figure 5 2 SAR ADC Configuration The SAR ADC is configured as follows Free running mode of operation is selected because the ADC scans only one channel continu ously Conversion rate is set to 100 ksps The code waits for...

Page 29: ...cision multimeter Note The potentiometer connects to a differential ADC which works in single ended mode This means the ADC input is measured against internal Vssa Any offset in the measurement can be pos itive or negative This can result in a small offset voltage even when the potentiometer is zero Figure 5 3 Voltage Display using SAR ADC 5 2 Project VoltageDisplay_DelSigADC 5 2 1 Project Descrip...

Page 30: ... Set the range from Vssa to Vdda in single ended mode because the potentiometer output is a single ended signal that can go from 0 to Vdda Therefore at 20 bit resolution the ADC will resolve in steps of Vdda 220 Note Internal Vdda 3 Reference option is not available in the current PSoC 5 silicon In this project Vdda 5 V The project will not work if Vdda 3 3 V because it needs Vdda 3 reference for ...

Page 31: ...t in a small offset voltage even when the potentiometer is zero Figure 5 5 Voltage Display using Del Sig ADC 5 3 Project IntensityLED 5 3 1 Project Description This example code uses a pulse width modulator PWM to illuminate an LED When the pulse width of the PWM varies the LED brightness changes By continuously varying the pulse width of the PWM the example code makes an LED go from low brightnes...

Page 32: ...Functionality on page 16 5 4 3 Verify Output The project displays the time on LCD starting from 00 00 01 The LCD will be on and display the time when the device is in active mode the LCD will be off when the device is in sleep mode If an ammeter is connected to measure the system current see Low Power Functionality on page 16 a system current of less than 730 µA is displayed Note The constant LCD_...

Page 33: ...the board is scanned using the Cypress CSD algorithm The buttons are pre tuned in the example code to take care of factors such as board parasitic 5 5 2 Hardware Connections This project uses the LCD for display therefore ensure that it is plugged into the port No specific hardware connections are required for this project because all connections are hard wired on the board 5 5 3 Verify Output Bui...

Page 34: ... C Code Examples button the LCD displays ON when you remove the finger from the button the LCD displays OFF When the slider is touched the corresponding finger position is displayed as a percentage on the LCD Figure 5 9 CapSense Slider Figure 5 10 CapSense Button ...

Page 35: ...D using DMA at a frequency proportional to the ADC count 5 6 2 Hardware Connections For this example the character LCD must be installed on P8 The example uses the potentiometer therefore the jumper POT_PWR should also be in place This jumper connects the potentiometer to the Vdda 5 6 3 Verify Output Build and program the code example and reset the device to view the ADC output displayed on the LC...

Page 36: ...36 CY8CKIT 050 PSoC 5 Development Kit Guide Doc 001 65816 Rev C Code Examples ...

Page 37: ...K 1 2 1210 C6 22 uFd 10V 1210 C6 22 uFd 10V 0805 R23 ZERO 0805 R23 ZERO 1 2 TP1 BLACK TP1 BLACK 1210 C22 22 uFd 10V 1210 C22 22 uFd 10V 0805 R11 1K 0805 R11 1K 1 2 0805 R57 ZERO 0805 R57 ZERO 1 2 TP2 RED TP2 RED TP4 RED TP4 RED TO 252 U2 AP1117D50G TO 252 U2 AP1117D50G GND 1 VOUT 2 VIN 3 J10 J10 1 1 2 2 3 3 0805 R27 ZERO 0805 R27 ZERO 1 2 0603 R13 3 74K 0603 R13 3 74K 1 2 0402 C17 0 1 uFd 0402 C17...

Page 38: ...4_1 70 P4_0 69 SIO_P12_3 68 SIO_P12_2 67 VSSd 66 VDDa 65 VSSa 64 VCCa 63 NC8 62 NC7 61 NC6 60 NC5 59 NC4 58 NC3 57 P15_3 56 P15_2 55 SIO I2C1_SDA P12_1 54 SIO I2C1_SCL P12_0 53 P3_7 52 P3_6 51 P2_4 99 P2_3 98 P2_2 97 P2_1 96 P2_0 95 P15_5 94 P15_4 93 P6_3 92 P6_2 91 P6_1 90 P6_0 89 VDDd 88 VSSd 87 VCCd 86 P4_7 85 P4_6 84 P4_5 83 P4_4 82 P4_3 81 P4_2 80 P0_7 79 P0_6 78 P0_5 77 P0_4 76 VDDio2 100 P3...

Page 39: ...L KEYED SMD J3 50MIL KEYED SMD 1 3 5 7 9 2 4 6 8 10 Y1 24 MHz Y1 24 MHz 1 3 2 0603 R22 62K 1 0603 R22 62K 1 1 2 0402 R5 2 2K 0402 R5 2 2K TV1 TV1 1 0402 C7 0 1 uFd 0402 C7 0 1 uFd 0402 C16 0 1 uFd 0402 C16 0 1 uFd NO LOAD NO LOAD VSSA NO LOAD NO LOAD VSSA VSSD NO LOAD VSSA NO LOAD VSSD NO LOAD VSSA NO LOAD NO LOAD VSSD VSSD VSSD Prototype Area VSSA NO LOAD Note Load R56 for high precision analog V...

Page 40: ...DA 0603 C24 1 0 uFd 0603 C24 1 0 uFd 3216 C28 10 uFd 16v 3216 C28 10 uFd 16v J21 J21 1 1 P2 20x2 RECP RA P2 20x2 RECP RA 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 J24 J24 1 1 J20 J20 1 1 J19 J19 1 1 J23 J23 1 1 P1 20x2 R...

Page 41: ...CY8CKIT 050 PSoC 5 Development Kit Guide Doc 001 65816 Rev C 41 ...

Page 42: ...42 CY8CKIT 050 PSoC 5 Development Kit Guide Doc 001 65816 Rev C A 2 Board Layout A 2 1 PDC 09356 Top ...

Page 43: ...CY8CKIT 050 PSoC 5 Development Kit Guide Doc 001 65816 Rev C 43 A 2 2 PDC 09356 Power ...

Page 44: ...44 CY8CKIT 050 PSoC 5 Development Kit Guide Doc 001 65816 Rev C A 2 3 PDC 09356 Ground ...

Page 45: ...CY8CKIT 050 PSoC 5 Development Kit Guide Doc 001 65816 Rev C 45 A 2 4 PDC 09356 Bottom ...

Page 46: ...nasonic ECG ECJ 0EC1H220J 10 1 C39 2200 pFd SMD SMT 0805 2200pF 50volts C0G 5 Murata GRM2165C1H222JA01 D 11 6 D1 D2 D3 D4 D7 D8 SS12 E3 61T DIODE SCHOTTKY 20V 1A SMA Vishay General Semi conductor SS12 E3 61T 12 1 D5 LED Green LED GREEN CLEAR 0805 SMD Chicago Miniature CMD17 21VGC TR8 13 1 D6 ZHCS DIODE SCHOTTKY 40V 1 0A SOT23 3 Zetex ZHCS1000TA 14 2 J1 J2 USB MINI B CONN USB MINI AB SMT RIGHT ANGL...

Page 47: ... RES 10 OHM 1 8W 5 0805 SMD Stackpole Electronics Inc RMCF 1 10 10 5 R 38 1 R68 100 ohm RES 100 OHM 1 16W 5 0603 SMD Panasonic ECG ERJ 3GEYJ101V 39 1 R69 10K RES 10K OHM 1 16W 5 0603 SMD Panasonic ECG ERJ 3GEYJ103V 40 3 SW1 SW2 SW3 SW PUSHBUT TON LT SWITCH 6MM 160GF H 2 5MM SMD Panasonic ECG EVQ Q2P02W 41 1 U1 LT1763CS8 IC LDO REG LOW NOISE ADJ 8 SOIC Linear Technology LT1763CS8 PBF 42 1 U2 AP1117...

Page 48: ...29 J31 J18 J22 J25 TP3 TP4 J16 J39 RED TEST POINT PC MINI 040 D RED Keystone Electronics 5000 63 4 J7 J32 J34 J36 BLACK TEST POINT PC MINI 040 D Black Keystone Electronics 5001 64 1 TP5 WHITE TEST POINT PC MINI 040 D WHITE Keystone Electronics 5002 65 1 J50 Breadboard BREADBOARD 17x5x2 3M 923273 I 66 4 P3 P4 P6 P9 RECP 8X1 CONN RECT 8POS 100 VERT 3M 929850 01 08 RA 67 1 R67 10K POT 10K OHM 1 4 SQ ...

Page 49: ... Richco Plastic Co RBS 3R Special Jumper Installation Instructions 82 1 J30 Install jumper across pins 1 and 2 Rectangular Connectors MINI JUMPER GF 13 5 CLOSE TYPE BLACK Kobiconn 151 8030 E 83 2 J10 J11 Install jumper across pins 1 and 2 Rectangular Connectors MINI JUMPER GF 13 5 CLOSE TYPE BLACK Kobiconn 151 8030 E External Assembly 84 2 Install 3 3V label as per assembly spec 3 3V label 85 2 4 ...

Page 50: ...E Port 1 20 P1 0 Connected to 3 points 1 Connected to Pin 2 on programming header J3 2 Connected to Pin 45 on U5 3 Connected to Pin 8 SWDIO on Port D 21 P1 1 Connected to 3 points 1 Connected to Pin 4 on programming header 2 Connected to Pin 56 on U5 3 Connected to Pin 7 SWDCK on Port D 22 P1 2 Connected to Pin 6 on Port D 23 P1 3 Connected to 3 points 1 Connected to Pin 6 on programming header 2 ...

Page 51: ...ted to 3 points 1 Connected to Pin 8 on trace header J40 2 Connected to LCD module 3 Connected to Pin 12 on Port D 3 P2 7 Connected to 3 points 1 Connected to Pin 10 on trace header J40 2 Connected to LCD module 3 Connected to Pin 11 on Port D Port 3 44 P3 0 Connected to Pin 8 on Port E 45 P3 1 Connected to Pin 7 on Port E 46 P3 2 Connected to 2 points 1 Voltage reference Chip 2 Connected to Pin 6...

Page 52: ... to Pin 23 on Port D 33 P5 6 Connected to 2 points 1 Connected to CapSense button CSB2 2 Connected to Pin 22 on Port D 34 P5 7 Connected to Pin 21 on Port D Port 6 89 P6 0 Connected to Pin 5 on P9 90 P6 1 Connected to SW2 push button 91 P6 2 Connected to LED3 92 P6 3 Connected to LED4 6 P6 4 Connected to CapSense Modulation Capacitor CMOD 7 P6 5 Connected to 2 points 1 Connected to VR POT 2 Connec...

Page 53: ...63 VCCa Connected to VCCa 39 VCCd Connected to VCCd 86 VCCd Connected to VCCd 65 VDDa Connected to VDDa 37 VDDd Connected to VDDd 88 VDDd Connected to VDDd 75 VDDio0 Connected to VDDio0 26 VDDio1 Connected to VDDio1 100 VDDio2 Connected to VDDio2 50 VDDio3 Connected to VDDio3 64 VSSa Connected to GND 10 VSSb Connected to GND 14 VSSd Connected to GND 38 VSSd Connected to GND 66 VSSd Connected to GN...

Page 54: ...54 CY8CKIT 050 PSoC 5 Development Kit Guide Doc 001 65816 Rev C ...

Reviews: