background image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CY8CKIT-044 

PSoC

®

 4 M-Series Pioneer Kit Guide  

 

Doc. No. 001-96598 Rev. *C 

 

 

 

 

Cypress Semiconductor 

198 Champion Court 

San Jose, CA 95134-1709 

www.cypress.com

 

Downloaded from

Arrow.com.

Summary of Contents for CY8CKIT-044

Page 1: ...CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev C Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 www cypress com Downloaded from Arrow com...

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

Page 3: ...llation 15 2 1 Before You Begin 15 2 2 Install Software 15 2 3 Uninstall Software 17 3 Kit Operation 18 3 1 Theory of Operation 18 3 2 KitProg 21 3 3 Programming and Debugging PSoC 4200M Device 21 3 3...

Page 4: ...8 2 Hardware Connections 35 4 8 3 Verify Output 35 4 9 Raspberry Pi 38 4 9 1 Project Description 38 4 9 2 Hardware Connections 38 4 9 3 Setting Up Raspberry Pi 38 4 9 4 Verify Output 38 A Appendix 39...

Page 5: ...Selection 57 A 4 2 Write Read Operation 57 A 5 Migrating Projects Across Different Pioneer Series Kits 59 A 5 1 Arduino Uno Compatible Headers 59 A 5 2 On Board Peripherals 61 A 6 KitProg Status LED S...

Page 6: ...arge ESD sensitive devices Electrostatic charges readily accumulate on the human body and any equipment which can cause a discharge without detection Permanent damage may occur to devices subjected to...

Page 7: ...bient light sensor a 3 Axis accelerometer a PWM temperature sensor an RGB LED a push button switch an onboard programmer debugger and USB UART I2C bridge functionality block KitProg and a Cypress F RA...

Page 8: ...fice for help www cypress com go support 1 2 Board Details The PSoC 4 M Series Pioneer Kit consists of the following blocks as shown in Figure 1 2 It also shows the complete kit headers pin mapping Do...

Page 9: ...9 Figure 1 2 PSoC 4 M Series Pioneer Kit Markup Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow...

Page 10: ...ication firmware with the PSoC hardware Configure Components using configuration tools Explore the library of 100 Components Access Component datasheets Figure 1 3 PSoC Creator Features PSoC Creator a...

Page 11: ...amily 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 You can...

Page 12: ...develop and debug the applications and PSoC Programmer to program the hex files on to the device The Kit Operation chapter describes the major features of the PSoC 4 M Series Pioneer Kit and functiona...

Page 13: ...ss Developer Community Forums 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 1 7 Docume...

Page 14: ...t Byte MSB Most Significant Byte PSoC Programmable Systems on Chip PWM Pulse Width Modulation RGB Red Green Blue SAR Successive Approximation Register SPI Serial Peripheral Interface SWD Serial Wire D...

Page 15: ...rdware files and user documents This package can be used if all the software prerequisites listed in step 5 are installed on your PC c CY8CKIT 044 DVD ISO This file is a complete package stored in a D...

Page 16: ...r 3 23 or later This is installed as part of PSoC Creator installation or is available separately from www cypress com programmer 6 Choose the Typical Custom Complete installation type in the Product...

Page 17: ...32 bit C Program Files Cypress CY8CKIT 044 PSoC 4 M Series Pioneer Kit Note For Windows 7 8 8 1 users the installed files and the folder are read only To use the installed example projects follow the...

Page 18: ...heet for details on device features Figure 3 1 PSoC 4200M Block Diagram Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow co...

Page 19: ...et Button RGB LED Push Button Level Translator Reset SWD USB I2C USB UART Proximity Proximity Gesture Pad Digilent Pmod Compatible Header 32kHz Crystal Figure 3 3 PSoC 4 M Series Pioneer Kit Board Dia...

Page 20: ...ch connects the PSoC 4200M pin to ground when pressed so you need to configure the PSoC 4200M pin as resistive pull up for detecting the switch press 13 Arduino Uno Shield compatible I O headers The P...

Page 21: ...h as MiniProg3 The subsequent sections explain the method to interface the PSoC 4 M Series Pioneer Kit to a PC 3 2 KitProg The KitProg is a multi functional system which includes a programmer debugger...

Page 22: ...C Bridge The KitProg can function as a USB I2C bridge and communicate with the software utility Bridge Control Panel BCP The I2C lines on PSoC 4200M device are P4 1 SDA and P4 0 SCL which are hardwire...

Page 23: ...ect select a location to save the project and click OK Figure 4 1 Open Example Project from PSoC Creator 4 Build the example project by choosing Build Build Project Name A hex file is generated after...

Page 24: ...and then OK to exit the window and start programming as shown in Figure 4 3 Figure 4 3 Connect Device From PSoC Creator and Program Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 25: ...s on and off depending upon the GPIO state The project also demonstrates the method to calibrate the ILO clock based on the IMO clock signal for better ILO accuracy The calibrated LFCLK is used to sou...

Page 26: ...demonstrated in the Deep Sleep Blinky project to achieve higher accuracy with ILO 4 4 2 Hardware Connections Connect the five inch wire provided with this kit to proximity header J10 on the PSoC 4 M S...

Page 27: ...to the magnitude of the proximity signal CapSense scanning interval is changed to to 20ms when the proximity is detected The project has a proximity range of approximately 5cm If proximity is detecte...

Page 28: ...ed Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 29: ...bottom sensor to the top sensor UP gesture to see the LED color change in the order Red Green Blue Red one color at a time with each wave 7 Wave the hand at a close proximity from the top sensor to t...

Page 30: ...tected gestures Table 4 2 shows the different gestures recognized by the firmware and the corresponding output action for each gesture Table 4 2 CapSense Touch Gestures Gesture Name Gesture Example Ac...

Page 31: ...accuracy with ILO Note Clockwise and counter clockwise gestures can be initiated from any sensor except sensor 5 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Download...

Page 32: ...y to validate the output This is because the PSoC 4200M pins connected to the CapSense Gesture Pad are also connected to the header J2 and can cause false touches if these pins are touched You must to...

Page 33: ...shows the accelerometer orientation with respect to the kit Figure 4 12 Accelerometer Movement in X Axis Figure 4 13 Accelerometer Movement in Y Axis Downloaded from Arrow com Downloaded from Arrow co...

Page 34: ...ays the results in a graphical format as shown in Figure 4 18 This allows real time monitoring of data in the system The firmware changes the brightness of the onboard RGB LED according to the changes...

Page 35: ...SoC Prog under the Communication tab in the Settings window Select the KitProg in the drop down corresponding to the option Port and click OK Refer to step 9 of the Appendix section Using the Micrium...

Page 36: ...tProg USB UART Refer to the KitProg User Guide to learn how to use the KitProg USB UART Bridge with COM terminal software 12 Set the baud rate for communication as 115200 Set the number of Data bits a...

Page 37: ...AM pages are switched if a complete data packet cannot fit in to the same F RAM page Note This project is not configured to operate in an I2C multi master environment If you are using Bridge Control P...

Page 38: ...n the terminal program 5 Install Minicom to view the serial data coming from CY8CKIT 044 by typing sudo apt get install minicom 6 Wait until the minicom gets installed 4 9 4 Verify Output 1 Power the...

Page 39: ...Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from A...

Page 40: ...d from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com D...

Page 41: ...om Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 42: ...Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from A...

Page 43: ...t Micrium uC Probe Micrium uC Probe Note Refer to the C Probe User Manual for detailed information on the C Probe You can access this from Start Micrium uC Probe User Manual Figure A 5 Micrium C Probe...

Page 44: ...com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded fro...

Page 45: ...oaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow c...

Page 46: ...m Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downlo...

Page 47: ...w com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded f...

Page 48: ...a USB Mini B connector and to the SWD interface of the PSoC 4200M device PSoC 5LP is a true system level solution providing MCU memory analog and digital peripheral functions in a single chip The CY8C...

Page 49: ...nt ORing diodes prevent damage to components when the board is powered from different voltage sources at the same time ESD protection is provided for the USB Mini B connector Downloaded from Arrow com...

Page 50: ...uired connections Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com...

Page 51: ...J12 header is a 2 3 header that supports Arduino Shields This header is used on a small subset of Shields and is unpopulated on the PSoC 4 M Series Pioneer Kit Pmod Connector Digilent Pmod Compatible...

Page 52: ...4 M Series Pioneer Kit contains an F RAM device FM24V10 G marked 20 in Figure A 15 that can be accessed through I2C lines P4 0 and P4 1 of the PSoC 4200M device The F RAM has a capacity of 1 Mbit 128...

Page 53: ...duino Shields with an SPI I2C UART interface Note The KitProg does not support USB SPI bridge functionality The SPI pins of the PSoC 4200M are connected to the PSoC 5LP for enabling SPI communication...

Page 54: ...from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Do...

Page 55: ...Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Ar...

Page 56: ...from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Dow...

Page 57: ...A 4 2 Write Read Operation The F RAM device datasheet includes details on how to perform a write read operation with the F RAM Figure A 26 and Figure A 27 provide a snapshot of the write read packet s...

Page 58: ...row com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded...

Page 59: ...BLE VDD P4 VDD 8 NC NC NC NC NC Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded f...

Page 60: ...ed from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com...

Page 61: ...Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from A...

Page 62: ...he USB enumeration was unsuccessful This may happen if the kit is not powered from the USB host Verify the USB cable and check if PSoC Programmer is installed on the PC Downloaded from Arrow com Downl...

Page 63: ...rotectron Electromech P9401 10 21 18 1 J6 USB MINI B MINI USB RCPT R A DIP Molex Inc 0548190519 19 1 J8 8X2 RECP CONN HEADER FMAL 16PS 1 DL GOLD Protectron Electromech P9403 16 21 20 1 J9 3p_jumper CO...

Page 64: ...Panasonic ECG ERJ 6GEY0R00V 42 5 R46 R48 R50 R52 R54 560 ohm RES 560 OHM 1 10W 5 0603 SMD Panasonic ECG ERJ 3GEYJ561V 43 1 R62 10 ohm RES SMD 10 OHM 1 1 4W 1206 Stackpole Electronics Inc RMCF1206FT10R...

Page 65: ...4 G D 64 1 J16 6X1 RECP RA CONN FEMALE 6POS 100 R A GOLD Sullins Connector Solutions PPPC061LGBN RC 65 2 C7 C48 0 1 uFd CAP 1UF 16V CERAMIC Y5V 0402 TDK Corporation C1005X5R1A104K050BA 66 1 C17 1 0 uF...

Page 66: ...ed from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com...

Page 67: ...aded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow co...

Reviews: