Home
CY8CKIT-044_PSoC4M-S..
Contents
1. d aren BEB OIGGA ak 19 Ed E Fea L nag eu D I mo KS N Ke 23232 E E Ob o 39 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A Example Projects SB J Cypress PERFORM Figure A 3 Power Supply and Power Monitoring Circuit Schematic sjuTOd 388L GND J NO T DEEN ue L vw D ONOI ON OYOT ON GWO I ON eun cu LNOA KR KS yovga wove zal 6dL 8dL FfidL za er n OSA SO S td angi Lo wyo ozz ZEX Dur33es AS 107 pue z Lous bur33es AE E I0 Z pue TI 3105S gi 3n UO AOL pan eg uiuo OCL OCT r AGZ pan OL er vo y 2 gt 8cu pl 90 Pr T NIA OSA aan EEA OSA Gay Edl YOT ON AZI S ST NIA 203 ebuey abeiton andur Atddng zemog BurzoaruoW z mxmod sjunys mo 310ys lt FRE qunys WUO T lt f Z 3unus WYO OT lt CS I sbur33es z dump FIL YOTI ON YAH Nid Z pa L m NIA Y DG m fo N o X10325euuoj grurW gen Sn8 3Y lal OCT ON 814 OOL 40 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A Example Projects BB Cypress PERFORM Figure A 4 Peripheral Schematic zepeeH rd aieqdsey xe 3903 YOLIINNOD Z aQ ue Ya Q olas x GU oat weg SO nt ssuxi gt gt OUT V cy 2A353H DC Os s Ossa S SS x oO aA Seet is O vas oa osi las O qos oz nosis lI m
2. T j re zI Sssn i ev n A ano 0 te d ep x Ln x FANS dx OSIN du 8107 8 8UBIL T 6e9Ae T EEA EEA EEA aosueg 34ST 3uerquy P to dmedo reu1e3ur 0 Sd Woozy 2OSd 1 Sd Z sa e ER S1epeeH A3rurxoid do3u Let Eat Ze or ped einqjsep sesuesdep BDeJ12 U IdS 10 ispeeu i erqra3edmoo SDI ournpay ZIP IN WOT ON 14934 Ce er d33Y PIL EK pg een Hur 41 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A SES CYPRESS HET ppendix A 2 Using the Micrium pC Probe The Micrium uC Probe is a software development tool that incorporates Micrium s proprietary Graphical Live Watch to graphically visualize the internals of any embedded system With uC Probe you can debug your embedded design effortlessly with just a few mouse clicks You can download the uC Probe Users Guide and uC Probe Target Manual from the following webpage uC Probe User Guide and wC Probe Target Manual To learn more about the uC Probe visit micrium com tools ucprobe overview Micrium pu C Probe allows you to monitor the values of all the global variables in your project while the project is running on the PSoC 4200M These values can be mapped on to multiple graphical interface elements provided by the uC Probe software suc
3. m TH EE Sae Cr D 7 CYPRESS Oa IzGTGKCKCe V O PERFORM CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 1 408 943 2600 www cypress com cypress Copyrights Cypress Semiconductor Corporation 2015 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 Source Code 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 forei
4. 42 A 2 1 Installing and Using the uC JProbe a r nsns nna nnn nnns 42 A 3 Hardware Functional Descrnpton r rasssssssssssssssssssssssssssas 47 n ty POS WOO PA ee 47 Ad PO DP T 47 A33 TOWN IDEE Tt 48 A34 Expansion Connectors ue eege 50 A395 USB Mini B COMmMO Cl Ol NR m 51 AG C DO E T NN E I 51 AS Pioneer Boada EEDS uuu u 2 AA AA HR asus 51 Aog EE tell u u AGA 51 A 3 9 Cypress Ferroelectric RAM E RAM a 51 A 3 10 3 Axis Accelerometer a aaa sasrrssssrsssrsssssssssssssssssssssssssssssissassssa 52 A 3 11 PWM Temperature Sensor eene nennen nennen snnnnai nnns niis ssssa ainsi sss s ssa a ann rris sss arrais iii 52 AS 12 Ainbient Lighi SMSO ERE 52 A 3 13 Serial Interconnection Between PSoC 5LP and PSoC A200M 52 A 3 14 Raspberry Pi Compatible Header 53 PES AO Level e NAO ERROR 54 ee Heeler 55 A4 Using FM24V 10 F RAM c E 56 AAT Addes SOIC ii Emm 56 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 4 UP E CYPRESS Contents A 4 2 Write Read Operation a aras rrrsssssnrrrasssssssrrrsssssssiiissa 56 A 5 Migrating Projects Across Different Pioneer Gereskts a a 58 A 5 1 Arduino Uno Compatible Headers nennen nnn nnn nenne nsn nn nan nnn
5. Launch PSoC Creator and navigate to the following items m Quick Start Guide Choose Help gt Documentation gt Quick Start Guide This guide gives you the basics for developing PSoC Creator projects Simple Component example projects Choose File Open Example Projects These example projects demonstrate how to configure and use PSoC Creator Components To access example projects related to a specific Component place the Component on the TopDesign schematic and right click on the Component Select the Find Example Project option in the context menu that appears Starter Designs Choose File gt New gt Project and select PSoC 4100M PSoC 4200M Starter Design These starter designs demonstrate the unique features of PSoC 4200M B System Reference Guide Choose Help gt System Reference gt System Reference Guide 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 1 4 Getting Started This guide will help you be acquainted with the CY8CKIT 044 PSoC 4 M Series Pioneer Kit m The Installation chapter describes the installation of the kit software
6. OUT 1 LIGHT SENSOR M TMP e E een a SE EL 10D E u2 m C2 PROXIMITY om d a en Ka 4 cs M FM24V10 i y 9 PSoC 5 4 k BEN CY8CK1 i 044 Ps c 4200M J o i i 18 I me e 1 od ei C10 acl c 4 M NANA i DE E A Vile 8 TU 1 T KA cun 4 33 pa d San a ES br GA iF s L21114 unb a Ht I 1052 SHUNT 2 4 152 SHUNT _ 74 NO SHUNT j 73 ger Ye f Aa t LE oi eu ER gt C38 sl j 10 ACCELEROMETER nisl Hd it TERT Way a ALERT 5 Clockwise and counter clockwise gestures are used to make fine color changes Swipe left and swipe right gestures are used to make coarse color changes The swipe up and swipe down gestures are used to change the brightness of the LED See Table 4 2 for details on how the LED behaves for each gesture Note It requires one full circular swipe clockwise or counter clockwise on the Gesture Pad to see the change in LED color However if the swipe is stopped halfway through the circle and the finger is removed from the board no gesture is detected by the PSoC 4200M Note You might get erroneous results if you pick up the PSoC 4 M Series Pioneer Kit in your hand and try 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 Note If you hold the f
7. Bridge Control Panel and any serial port terminal program can use the kit functions This means that the USB enumeration was unsuccessful This can happen if the kit is not powered from the USB host or the kit is not connected to the USB host through the USB cable Verify the USB cable and check if PSoC Programmer is installed on the PC CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 61 A ak ES CYPRESS A 7 Bill of Materials PCB 98 66 mm x 61 70 mm High Tg ENIG Cypress finish 4 layer Color 2 Semiconductor RED Silk WHITE 600 60221 01 C1 62 C3 06 08 013 C14 C 18 C20 C21 C24 C25 C27 C CAP 1UF 16V 2 129 32 C35 37 C38 039 C40 c 01 uFd CERAMIC X5R 0402 DK Corporation 42 C44 C45 C46 C49 C50 22 uFd 16v ER trp AVX Corporation TPSB226K016R0600 pang CAP TANT UE 20V AVX corporation TAJB106KO20RNJ CAP CER 18PF 50V 5 1 18 pF 1 NPO 0402 Murata Electronics GRM1555C1H180FA01D CAP CER 36PF 50V seo o 36 pF CAP CER 36 m C11 C12 C15 C16 C22 C26 7 14 C28 C29 30 C31 C33 C34 1 0 uFd CAP CERAMIC TOUP ereivavuden TMK107BJ105KA T 25V X5R 0603 10 C36 C47 CAP CER 10000PF CAP CER 2200PF 50V CAP CER 0 1UF 16V CAP 10000PF 16V AMBIENT LIGHT Vishay D2 D3 D4 D5 D6 D7 D8 D9 DIODE SCHOTTKY Fairchild PTC RESETTABLE CONN HEADER Protectron 15 2 J1 J4 8x1 RECP FEMALE 8POS 1 P9401 08 21 Electromech GOLD CONN HEADER FMAL Protectron CONN HEADER Protectron 17 1 J3 1
8. H 4 3 1082 na 4 ists ze NY m ponens 18 C30 Jve A A voor DDIO ACCEL EROMETER O C39 Jil x RASPBERRY PI HEADER s15 ENG Ne Ne Ne Nene XU ZE C e n 21 EJ CYPRESS ILIIT Kit Operation 2 Open the desired project in PSoC Creator For this go to File gt Open gt Project Workspace This provides the option to browse to and open your saved project 3 Select the option Build Build Project or pressing Shift F6 to build the project 4 If there are no errors during build program the firmware into the kit by choosing Debug gt Program or pressing Ctrl F5 This programs the device on the PSoC 4 M Series Pioneer Kit 3 3 2 Debugging using PSoC Creator PSoC Creator has an integrated debugger You can start the debugger by selecting Debug Debug or by pressing F5 Refer to section 3 2 of the KitProg User Guide for a detailed explanation on how to debug using PSoC Creator 3 3 3 Programming using PSoC Programmer PSoC Programmer 3 22 2 or later can be used to program existing hex files into the PSoC 4 M Series Pioneer Kit Refer to section 3 3 of the KitProg User Guide for a detailed explanation on how to program using PSoC Programmer 3 4 USB UART Bridge The KitProg on the PSoC 4 M Series Pioneer Kit can act as a USB UART bridge The UART lines between the PSoC 4200M and the KitProg are hard wired on the board with UART_RX assigned to P7 0 and UART TX assigned t
9. No 001 96598 Rev A 48 CYPRESS iS Appendix Current Measurement Jumper To measure the PSoC 4200M power consumption a header is populated in series with the power supply to the PSoC 4200M which can be used to measure current using an ammeter without the need to de solder any components from the board marked 17 in Figure A 15 Figure A 18 Schematics of Current Measurement Jumper N o O CN o o a o wel Hi i a a Tm BD IN N J14 Jumper Settings 1 amp 3 gt 10 Ohm Shunt 2 amp 4 gt 1 Ohm Shunt 3 amp 4 gt Short out shunts Power Monitoring The following two methods are supported for measuring the current consumption of the PSoC 4200M device m When the board is powered through the USB Mini B connector J6 remove jumper J14 and connect an ammeter between terminals 3 and 4 as shown in Figure A 19 Figure A 19 Current Measurement When Powered From USB Connector oE n Oac Mg ay eer eg of MBIEN A PLE RAGS be ERU Yang FEE 53111155 LIGMT SENSOR 8 10 k 8 x g Osa Tm Am yes E con sm CA cs Dn jn ER T Ka PSoC baa PROG yu Ka E BH crece 044 P a 4200M PSoC SLP ous x i VIN T en de s d AN JA 20SeC SLP LE TR Paci mmaC10 NAAN wre Sacis Pagg ei C14 307 cis 1 ak C1 49 o o10 1 916 WM ibis zi ceo cvecsa BLTi LPoss cei C22 E 2 Reg ces 25 c L1 dt rs mid Cas a 1 8 B B6 cag vooA isa i d 4 3 2092 SHUNT
10. P DS Microsoft Sans Set 10 B z U Zz A Z 2 Ah 4 EE Workspace Explorer 1 project 9 x Start Page TopDesign cysch Sh La DI Workspace ThermalManagement gt 4 b x Component Catalog 142 co gt a X Search for aa lu Temperatur nsors and Fan Closed Loop Fan Controller paga PSoC d Fans Analog Temperature Sensing Pal Project Thermal Manageme a Cypress Off Chip 4b pr d PWR_1 j Cypress Component Catalog 33 f9 Thermal Management Syster O apu Header Files Hl ThermalManager h izle Reference 25 3 gq Amplifiers EME Source Files S Resistor 389 Analog MUX El main c 8 T H GE Goran Cl ThermalManager c Bll thermistor Se H a DA f NG Generated Source gd GRISE AGIT D Sa Manual Routing EG PSoC4 g CapSense DACH ADC A L 38a Communications a ADC c E V brag I2C Ey n ADC h ADC Channels ngg 12S d ADC_INT c CI 0 Reference resistor Serial Communication Block ADC_PM c 1 Thermistor Software Transmit UART v1 _ E ADC intClock i i 2 Ground 8 SPI 3 DC i 3 Ji UART SCB mode v1 10 ADC eck e Host Processor Interface Ge Ku oe ADC intClock h I2C b dD L P EI v2 30 mo I2C based Data Logging 5 68 Digital ADC IRQ c 8a Functions in ADC_IRQ h EZI2C i in gt Pe
11. R28 120 ohm RES 120 OHM 1 10W Panasonic ECG Yageo RC0402JR 0710KL M Wu ERJ 2GEJ104X E O 9 0 7 3 ERJ 3EKF1200V 1 0603 SMD RES 30K OHM 1 10W R29 R36 30K 5 0603 SMD RES SMD 220 OHM l R32 220 ohm 1 1 10W 0603 Panasonic ECG 4o isk RES 15K OHM 1 10 Panasonic ECG ne mare Mes Panasonic ECG ERJ 3GEYJ303V ERJ 3EKF2200V ERJ 3GEYJ153V C2 CO co Co CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 63 oon Ere CYPRESS o rate Appendix SW SWITCH TACTILE SW1 SW2 PUSHBUTTON SPST NO 0 05A 12y Panasonic ECG EVQ PETOSK 46 i 040 D Black Electronics IC PWM TEMP SNSR Analog Devices F RAM 1 Mbit 128K X Cypress a PUSBM12VX4 TVS DIODE 5 5VWM NXP 50 l1 U4 NCP1117DTARK IC REG LDO ADJ 1A OoN Semiconductor NCP1117DTARKG G DPAK 1 68QFN PSoC 5LP chip for USB debug channel ES ES and USB Serial interface Cypress 52 1 U6 PSoC 4200M 68TQFP PSoC 4M CY8C4247AZI M485 Semiconductor IC 4BIT NON INV U7 U10 TXS0104ERGYR TRANSLTR 14 QFN Texas instruments TXS0104EROyR IC DIGITAL I2C 54 1 U8 KXTJ2 1009 ACCELEROMETER Kionix Inc KXTJ2 1009 TRI AXIS 12 LGA MOSFET 2P CH 20V l CRYSTAL 32 768KHZ BUMPON 57 4 N A N A CYLINDRICAL 3M 312X 215 BLACK Rectangular Connectors 58 1 J9 E e nd SNE Kobiconn across pins 1 and 6 OMM CLOSE TYPE SSES BLACK Install jumper Rectangular Connectors 59 1 J14 across pins 3 and RES ae Kobiconn bs 6 0MM CLOSE T
12. Input Output lines of the onboard PSoC 5LP device This includes the KitProg USB I2C bridge lines and USB UART bridge lines The additional PSoC 5LP pins are direct connections to the internal programmable analog logic of PSoC 5LP You can use these pins as General purpose input output GPIO also For more details on the KitProg functionality refer to the KitProg User Guide PSoC 4200M This kit is designed to highlight the features of PSoC 4200M 10 pin programming header for PSoC 4200M This header allows you to program debug the PSoC 4200M using an external programmer such as MiniProg3 PSoC 4 M Series Pioneer Kit also has through hole test points to allow you to program and debug external PSoC 4 and PSoC 5LP devices using the KitProg You must remove the zero ohm resistors R51 R53 and R55 to disconnect the connection between KitProg and the onboard PSoC 4200M device before programming an external PSoC Digilent Pmod Peripheral Module compatible header This header allows you to connect to the PSoC 4200 device to Pmod Peripheral Modules though 12C and SPI interfaces Heset Button This button is used to reset the PSoC 4200M device Arduino Uno Shield compatible power header This header powers third party party Arduino Shields This header also has a provision to power the PSoC 4 M Series Pioneer Kit though the VIN input on the header RGB LED The onboard RGB LED can be controlled from the PSoC 4200M device User Button This button can
13. The PSoC 4200M communicates with the accelerometer through an 12C interface Note that the I2C accelerometer is connected on to the same I2C bus on which the KitProg USB I2C bridge and the F RAM is connected The accelerometer is assigned with the 12C address OxOF Refer to the KXTJ2 1009 Datasheet for more information on how to configure the accelerometer A 3 11 PWM Temperature Sensor A PWM temperature sensor is included on the PSoC 4 M Series Pioneer Kit marked 19 in Figure A 15 This sensor is also known as a TMP05 sensor and can indicate the measured temperature by varying the duty cycle of the PWM output generated by the sensor Refer to the TMPO05 Datasheet for more details on the operation of this sensor Note that the sensor is configured to operate in daisy chained mode A 3 12 Ambient Light Sensor The PSoC 4 M Series Pioneer Kit includes an analog ambient light sensor marked 21 in Figure A 15 This is a photodiode configured in photoconductive mode for detecting the changes in the ambient light intensity The photodiode is intended to be connected to the input of a transimpedance amplifier A 220 KQ resistor and a 0 1 uF capacitor are connected across the pins P5 1 and P5 2 to for implementing a transimpedance amplifier Refer to the TEMD6200F X01 datasheet for the electrical characteristics of the photodiode A 3 13 Serial Interconnection Between PSoC 5LP and PSoC 4200M In addition to use as an onboard programmer the P
14. This includes the PSoC Creator IDE to develop and debug the applications and PSoC Programmer to program the hex files on to the device m The Kit Operation chapter describes the major features of the PSoC 4 M Series Pioneer Kit and functionalities such as programming debugging and the USB UART and USB I2C bridges m The Example Projects chapter describes multiple PSoC 4200M code examples that will help you understand how to create your own PSOC 4 projects m The Appendix provides the method to use the Micrium p C Probe tool detailed hardware description method to use the onboard F RAM 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 design 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 B Overview PSoC Portfolio and PSoC Roadmap B Product Selectors PSoC 4 Product Selector In addition PSoC Creator includes a device selection tool m Datasheets Describe and provide electrical specifications for the PSoC 4000 PSoC 4100 PSoC 4200 PSoC 4100M and PSoC 4200M device families m CapSense Design Guide Learn how to design capacitive touch sensing applications with the PSoC 4 family of devices m Application Note
15. Type Size Size Filtered Memory Address Angular Gauges Linear Gauges ji Charts Numeric Indicators gt Miscellaneous Luo ore Advanced Stopped KitProg 171D0E3602213400 Closed C Users rnjt Desktop CY8CKIT 044 Post ES10 CY8CKIT 044 S PSoC Device Symbols Configured 6 Tx 2 716 0 38 KB s Rx 2 716 0 38 KB s 6 These graphical elements are linked to the global variables running on the PSoC 4200M through the e f generated by the PSoC Creator To link the e ffile click the ELF button in the Symbol Browser and navigate to the project e f file The elf file of a project is located at Project Directory gt lt Project Name cydsn gt CortexM0 lt Compiler Version gt lt Debug gt or lt Release gt lt Project Name elf gt Figure A 8 Add New Symbol File Symbol Browser e cor ac von Search by Name Search by Data Display Name CMSIS DAP CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 43 X 7 CYPRESS PERFORM Example Projects 7 Navigate to the c file displayed in the Symbol Browser and drag and drop the global variable in the file to the graphical element in DataScreen to link the variable You can configure to view multiple variables on the same DataScreen Figure A 9 Link Global Variables to Graphical Elements Cl oO Micrium uC Probe o m 2 Fi Home a 9 La MoO Fei X Ld Bring Forward T Group 7 p M ic
16. as well as the corresponding projects It can be used as a reference to exploit these features for other applications according to the needs of the project The PSoC 4200M Pioneer board has an onboard ferroelectric RAM chip that can hold up to 1 Mb of data The chip provides an I2C communication interface for data access It is hardwired to the 12C interface P4 0 and P4 1 of the PSoC 4200M the same lines are routed to the PSoC 5LP 12C interface Because the F RAM device is an I2C slave it can be accessed or shared among various I2C masters on the same lines For more details on the F RAM device refer to the device datasheet A 4 1 Address Selection The slave address of the F RAM device consists of three parts as shown in Figure A 15 slave ID device select and page select Slave ID is an F RAM family specific ID provided in the datasheet of the particular F RAM device For the device used on the PSoC 4200M Pioneer board FM24V10 the slave ID is 1010b Device select bits are set using the two physical pins A2 and A1 in the device The setting of these two pins in PSoC 4200M Pioneer board is controlled by resistors R21 R20 A1 and R23 R22 A2 Because the memory location in F RAM is divided into two pages of 64 KB each the page select bit is used to refer to one of the two pages in which the read or write operations will take place Figure A 25 F RAM I2C Address Byte Structure MSB LSB DG TET e Tee v Slave ID Ju Device ip Page Se
17. be used to provide input to the PSoC 4200M Note that the switch 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 Arduino Uno Shield compatible I O headers The PSoC 4 M Series Pioneer Kit is compatible and operates flawlessly with third party Arduino Shields Raspberry Pi compatible header A header which is compatible with Raspberry Pi Model B is included on the kit for enabling advanced embedded systems A Raspberry Pi can communicate to the PSoC 4200M device using 12C SPI or UART communication protocols One of the applications of this header is to enable the PSoC 4200M to act as an analog input processor for Raspberry Pi The PSoC 4200M with its CapSense capability can also enable user interface functions such as gesture and proximity detection 3 Axis Accelerometer This kit features a 3 Axis digital accelerometer device from Kionix KXTJ2 1009 The accelerometer is interfaced to the PSoC 4200M using the I2C protocol CapSense Proximity Headers These headers are located on both sides of the CapSense Gesture Pad They can be used as individual proximity sensors or can be used together to detect CapSense proximity gestures The example project included with this kit demonstrates the detection of wave up and wave down proximity gestures Remember to connect wires into the proximity headers before using the proximity functionality Note that if
18. kits naya e g e In some cases the pins available on the Pioneer kit headers are a superset of the standard Arduino Uno pins For example J2 contains only one row of pins on the Arduino Uno pin layout while it contains 2 rows of pins on many of the Pioneer series kits Figure A 28 Pioneer series kits pin map Arduino compatible UO headers Arduino compatible CY8CKIT 040 power header 6x1 header CY8CKIT 042 BLE 6x2 header CY8CKIT 042 8 CY8CKIT 044 9x2 header A 5 1 Arduino Uno Compatible Headers Table A 1 J1 Arduino Compatible Header Pin Map I Pioneer Series Kits Arduino Pin CY8CKIT 042 CY8CKIT 040 CY8CKIT 042 BLE CY8CKIT 044 VIN VIN VIN VIN VIN GND GND GND GND GND GND GND GND GND GND V5 0 v3 3 RESET P4 VDD NC CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 58 CYPRESS Appendix Table A 2 J2 Arduino Compatible Header Pin Map Pioneer Series Kits Arduino Pin CY8CKIT 042 CY8CKIT 040 CY8CKIT 042 BLE CY8CKIT 044 Palo P3 0 P2 0 Poo P o Pao SE SH ear lo lo Poo P6 5 P2 2 wo F SE P213 mg a Pw pajan mao die SH Payag LL bgay pais P215 Pa Lj JO N GN oom Por LI St past These pins are also used for on board peripherals See the tables in the On Board Peripherals section below for connection details P3 4 Table A 3 J3 Arduino Compatible Header Pin Map Pioneer Series Kits Ar
19. nsns nna nnns 58 Ao On Board P erlph ralS PET ODE EE 60 PG HiPrIog Status LED Slates AA iaiia 61 AW NAM S e WOM ERO AA 62 FRE VISION PRISON Y t a 66 Document Fe VISION Ban S UO EE 66 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A oafety Information s _ 4 CYPRESS PERFORM The CY8CKIT 044 PSoC 4200M Pioneer 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 For this reason the board may cause interference with 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 044 as shipped from the factory has been verified to meet with the requirements of CE as a Class A product The CY8CKIT 044 board contains electrostatic discharge ESD sensitive devices Electrostatic charges readily accumulate on the human body a
20. the Raspberry Pi is switched on automatically when a Raspberry Pi is connected to the PSoC 4 M Series Pioneer Kit Figure A 23 Level Translators on PSoC 4 M Series Pioneer Kit KitProg 3 axis Accelerometer Always ON Level Translator 1 Raspberry Pi ON when Raspberry Pi is connected CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 54 CYPRESS PERFORM Appendix A 3 16 Test Points The SWD programming pins for the PSoC 4200M are brought out as test points on the PSoC 4 M Series Pioneer Kit You can solder standard 100 mil connectors to these test points to program an external PSoC device using the on board PSoC 5LP Note You must remove the zero ohm resistors R51 R53 and R55 before programming an external PSoC device Figure A 24 SWD Programming Pins Brought as Test Points TT EN r DG nCONV IN 1 5 Yn eid s V LA S pwd Tap K oND SENSOR PROXIMITY R3 Ma F RAM JJ FM24V10 O CYBCS66ELTI L C28 C25 D I zi sai Bios DUE m U6 1 c S THE JE e PL E Ww CY8C424TAZI M485 T f PROXIMITY HI VDD J11 o All power domains VDDA VDDD and VDDIO including VIN 3 3V and GND are also brought as test points for easy probing CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 55 E eme BJ Cypress Appendix AA Using FM24V10 F RAM This chapter describes advanced features of the PSoC 4 M Series Pioneer Kit
21. used to reset the device The user push button is connected to PO 7 of the PSoC 4200M device Both the push buttons connect to ground on activation active low A 3 9 Cypress Ferroelectric RAM F RAM The PSoC 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 KB with an I2C speed up to 1 Mbps The I2C slave address of the F RAM device is 7 bits wide and the two least significant bits are configurable through physical pins These pins are hardwired to 00 on the board By default the address of the F RAM device used on the kit is 0x50 This address can be modified by changing the R21 R20 and R23 R22 resistor pairs The operating voltage range of the F RAM is between 2 V and 3 6 V To prevent the F RAM from operating at voltages greater than 3 6V the power supply to the F RAM is derived from the output of the 3 3 V regulator The I2C lines are connected to the 3 3 V side of the onboard level translator to help F RAM communicate with PSoC 4200M operating at 5 V CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 51 Z CYPRESS Appendix A 3 10 3 Axis Accelerometer The PSoC 4 M Series Pioneer Kit has a 3 Axis accelerometer marked 15 in Figure A 15 The acceleration change detected by this device can be used to determine the direction of motion of the kit
22. 0x1 RECP FMALE 10POS 1 GOLD Electromech CONN HEADER FMAL Protectron CONN HEADR Protectron 20 1 J9 3p jumper n 100 3POS El otromeah CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A C1005X5R1A104K050BA TEMD6200FX01 P9403 18 21 P9401 10 21 P9403 16 21 P9101 03 12 1 Appendix 62 Ps IJ CYPRESS SES Appendix CONN RCPT 1POS CONN HEADER 100 Protectron Status LED LED GREEN CLEAR D Power LED LED 595NM AMB DIFF Avago E CLV1A FKB 25 1 LED3 RGB LED RED GREEN BLUE Cree Inc CJ1M1E1BB7RAS3 PLCC4 SMD 330 ohm FILTER CHIP 330 OHM L1 L2 100MHz 1 5A 0603 Murata Electronics BLM185G331TN1D RES 820 OHM 1 8W 5 0805 SMD ERJ 6GEYJ821V 27 R1 820 ohm Panasonic ECG RES 560 OHM 1 8W 5 0805 SMD n 560 ohm Panasonic ECG ERJ 6GEYJ561V R3 R8 R16 R17 R19 R20 R2 21 2 R24 R26 R31 R34 R38 R4 I N N m JJ O RES 0 0 OHM 1 10W Panasonic ECG ERJ 3GEYOROOV 0 R42 R44 R51 R53 R55 R5 9 R63 R64 0603 SMD 2 2 3 RES 22 OHM 1 10W pone 22E 196 0603 SMD Panasonic ECG ERJ 3EKF22RO0OV 8 2 3 4 R9 R30 R35 2 2K ANN 110W panasonic ECG ERJ 3GEYJ222V R10 R11 1 5K an 1 10W panasonic ECG ERJ 3GEYJ152V R12 R61 R65 10K D CUL 110W banasonic ECG ERJ 3GEYJ103V R13 220K bay Pw a OHM Panasonic ECG ERJ 3GEYJ224V RES 10K OHM 1 16W R14 R15 10K 5 0402 SMD RES 100K OHM 1 10W R18 100K 5 0402 SMD Panasonic ECG
23. 2 4 10 EHLNT mg LI T a El cas 6 os 4 J Gi Le Wi N ht Tg w irio t16 ra KM LED OR WR m When the PSoC 4 M Series Pioneer Kit is powered from an external voltage supply remove the USB cable from J6 Connect the positive terminal of the external voltage supply to the positive terminal of the ammeter and the negative terminal of the ammeter to pin 4 of J14 Connect the negative terminal of the external voltage supply to and GND pin on the board Figure A 20 shows the required connections CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 49 oo SSF Cypress PERFORM ppen IX Figure A 20 Current Measurement When Powered Separately SN VOLTAGE SOURCE Note When the PSoC 4200M is powered separately and not through the USB remove the resistors R63 and R64 to avoid leakage while measuring current A 3 4 Expansion Connectors Arduino Compatible Headers J1 J2 J3 J4 and J12 unpopulated This kit has five Arduino compatible headers 4J1 J2 J3 J4 and J12 Header J1 is marked 10 and header J2 J3 and J4 are marked 13 in Figure A 15 You can develop applications based on the Arduino Shield s hardware The J1 header contains UO pins for reset I O reference voltage IOREF and power supply line The J2 header is an analog port that contains I O pins for SAR ADC comparator and opamp The header J3 also has I O pins that support connection to PSoC 4
24. 200M CAN The J3 header is primarily a digital port that contains I O pins for PWM 12C SPI and analog reference The J4 header is also a digital port that contains I O pins for UART and PWM The J12 header is an Arduino ICSP compatible header for the SPI interface and is not populated Refer to the No Load Components section of the Bill of Materials for the header part number Note Pin P1 7 has a 1 0 uF capacitor connected to it This is provided as a bypass capacitor for the PSoC 4200M SAR ADC Remember to remove this capacitor if you are planning to use this pin for any other purposes Additional Functionality of Header J2 The J2 header is a 9x2 header that supports Arduino Shields Some pins from port 0 port 2 port 3 port 4 and port 6 pins of PSoC 4200M are brought to this header The port 3 and port 4 pins also connect to the onboard CapSense Gesture Pad through 560 ohm resistors When the CapSense feature is not used you may remove these resistors if necessary to help ensure better performance with these pins Functionality of Unpopulated Header J12 The J12 header is a 2x3 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 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 50 Zu E We CYPRESS Appendix Pmod Connector Digilent Pmod Compatible J16 unpopulated This port supports Digilent Pmod P
25. 3 4 NO SHUNT Ser Iu 1 Y 88 3 4 PROAIMITE UE 6 d La 2 W Y w i gt 5 0 NT les nie acchee PLETER ANJ f 5 c3e y UB VK k ww Y A WA w E H Cer veer a ROR OL OKenener rerelonon E LES LIT d NUN OR LIE xs H ANS d EONOQNUONOREOIOE E CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 19 ES CYPRESS Kit Operation This kit has the following peripherals 1 11 12 13 14 15 16 17 18 Power and Status LED The amber power LED is turned on when the kit is connected to a power source The green status LED indicates the status of the KitProg USB Mini B connector The USB cable provided along with the PSoC 4 M Series Pioneer Kit connects between this connector and the PC Power Supply The kit can operate at two voltage levels 3 3 V and 5 V The power selection jumper J9 is used to select between the two voltage levels The kit has an onboard 3 3 V Low Drop Out LDO regulator that converts the 5 V input to 3 3 V KitProg The KitProg is a multi functional system which includes a programmer debugger USB I2C bridge and a USB UART bridge Refer to the KitProg User Guide in the installation folder install Directory NCY8CKIT 044 PSoC 4 M Series Pioneer Kit lt version gt Documentation KitProg User Guide pdf for more details on the KitProg KitProg PSoC 5LP I O Header This header brings out a few
26. 44 Pie 4200 Peet ALE eu PI TOY T LE rr bd v 4 P PT TOTO lee Mer SOUEEN dn S MM ess 7 w i H 8 za L fe 1 LZ INS ra l LL rrr 4 DAE gn 4 4 3 Verify Output To verify the CapSense Proximity example project follow these steps 1 Power the PSoC 4 M Series Pioneer Kit through USB connector J6 2 Program the PSoC 4 M Series Pioneer Kit with the CY8CKIT 044 CapSense Proximity example project 3 Plug in the proximity sensor wire to the proximity sensor header as shown in Figure 4 6 and press the reset switch SW 1 of the kit You should bend the wire to form a loop as shown in Figure 4 5 to get better proximity range CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 26 CYPRESS PERFORM Example Projects Figure 4 6 Bring Hand Close to the Proximity Sensor Green LED fades Green LED brightens 4 Bring the hand closer to the proximity sensor as shown in Figure 4 6 You will see the green LED turn ON 5 As you move your hand closer to the proximity sensor the brightness of the LED increases As you move your hand away from the proximity sensor the brightness of the LED decreases You will get a proximity range of approximately 6cm with the wire supplied with this kit You can achieve higher proximity range by using a larger wire loop Power consumed by PSoC 4200M for this project can be measured using an ammeter as described in the Deep Sleep Blinky project 4 5 Proximity Ge
27. As EF close pC Probe License Manager Installed Licenses Status Name Issue Date Expiration Date Days Remaining Key Action Active Deactivate License Management ID E Purchase Licenses Show Purchased Licenses Activate License FH Settings 4 Check Updates Key OTT Activation EJ exit Activate your product by providing your license key CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 42 CYPRESS PERFORM Example Projects 5 n uC Probe you can drag and drop the desired graphical elements to the DataScreen grid for debugging Figure A 7 Drag and Drop uC Probe Graphical Elements GI QO I Micrium uC Probe o og ie Home a o ELI X Co Bring Forward 7 E d Group 7 H H ng Pu Qiiid ir EAM Micrium a Settings Run Paste x ALS off ny units gt My Zoom Factor uC Probe ver 3 5 15 300 Application Clipboard Arrange Professional Edition DataScreen3 Workspace Explorer e D P Angular Gauges NS screens gt xl Tools 7 A Quadrant 3 D Semicircle 1 4 9 Project a DataScreen3 Sy Semicircle 2 AY Semicircle 3 9 Radial 1 6 Radial 2 gt Add Radial 3 to DataScreen m P Half Donut 1 P Half Donut 2 70 100 Symbol Browser em gar g cor SE I vor E Search by Name Search by Data Type rs RAM Range Min 0 Max FFFFFFFF Writable Controls gl Name
28. Figure 1 4 Code Examples in PSoC Creator Z Start Page PSoC Creator vax Recent Projects Ga CY8CKIT 044 Sensor Hub cywrk E CY8CKIT 044 Accelerometer cywrk E CY8CKIT 044 CapSense Touch Gestures cywrk EZ CY8CKIT 044 cywrk E bootloader cywrk sjuauodulo Create New Project Open Existing Project AsjeusejqQ Getting Started PSoC Creator Start Page Quick Start Guide Intro to PSoC Intro to PSoC Creator PSoC Creator Training Design Tutorials Getting Started With PSoC 3 Getting Started With PSoC 4 Getting Started With PSoC 5LP Getting Started with PSoC 4 BLE Getting Started with PRoC BLE nm Examples and Kits Find Example Project 3j Kits od B Create new workspace for the example project This 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 Example Projects with Sample Code Documentation Sample code a de Enable global interrupts CyGloballntEnable Start PWM and CapSense components Filter Options Device Family i Keyword PSoC 3 i PSoC 4000 Project Name PSoC 4100 PSoC 4200 BLE Extemal Memory PSoC 4100 BLE DIE FindMe PSoC 4200 BLE BLE Glucose Meter PRoC BLE BLE Heart Rate Calle Hot 4100M BLE Heart Rate Sen PSoC 4200M BLE HID Keyboard Hot 5LP DIE HID Mouse BLE Phone Alert BLE Proximity BLE Running Speed Cade
29. LF files are loaded onto your PSoC 4200M device 12 Select Run from the toolbar to view the status of the global variable you want to monitor Figure A 13 Run the uC Probe Project La ef Eg Bring Forward L1 Group 7 E ER Eg send Backward Align afir i ilo Full Settings Run Paste i Screen de X EA ge o OH Kn Units 7 e Zoom Factor I Application Clipboard Arrange 13 Complete the DataScreen design and run the project to see the variable values graphically Figure A 14 uC Probe Project Running ci 9 9 Ambient Light Sensor Data File Home DataScreen1 qm 40 qm 10 212 A 255 FF280AD4 RGB LED Control Using Color Palette Appendix Temperature Sensor Data I I I i i i I I i i i i i I H 1 1 690 1 700 1710 1 720 1 730 1 740 1 780 1 760 1 770 1 780 1780 1200 1810 1 82 820 Accelerometer Data Connected to KitProg 171D0E3602213400 C Users rnjt Desktop CY8CKIT 044 Post ESTOVCY8CKIT 044 Sensor HubiCY8 PSoC Device Symbols Cor CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 46 Cypress ua Appendix A 3 Hardware Functional Description This section provides detailed explanation on individual hardware blocks of the PSoC 4 M Series Pioneer Kit Complete schematic of the PSoC 4 M Series Pioneer Kit can be accessed from the PSoC 4 M Series Pioneer Kit we
30. MR NU H 22 36 Updating the KitProg agilis REDE 22 4 Example PlOlCCUS ce 23 41 Using the Kil Example Projects EE 23 42 Using the Micrium uC Probe Projects asas 25 43 Deep Glep BINKY uuu ER 25 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 3 ES CYPRESS Contents 43 1 Project EE e r 25 4 3 2 Hardware Re e 25 4 do NENG eebe 25 MA CapoOsSn seProxiiily uuu u l mU mm 26 4 4 1 Project RE d e E u 26 442 Hardware Connections EN 26 MEI Te 26 4o i SAC l u AA u u 2 au unu Sa 27 dol Piece d le le uuu Rm mm 27 45 2 Hardware Ree Te 29 Leon ri Die 29 40 TOU ALE AD Sm EE 30 e He ER E de e 30 4 62 Hardware Ree 32 TO NEN TEE 32 LAE ee AA AA 33 ACTA Project D esoipili6i mE TT 33 4 722 Hardware COMMAS CHONG UU GAGANA retenir Vi xen og tr eg tali pu su EE 34 Al NGO ee 34 a Ne a tc 34 ABA PIGJECEDESCIIPUON mte aee 34 4 8 2 Hardware Connections E 35 4 8 3 LAG 35 DE ee E AA KINANA AA 38 Pal CONE Ee 38 A 2 Using the Micrium UCIPIODE 1 73 agapan
31. Operation Figure 3 2 shows the block diagram for the PSoC 4 M Series Pioneer Kit Figure 3 2 Block Diagram of PSoC 4 M Series Pioneer Kit PSoC 4200M Arduino Compatible Input Output Headers Ambient Light PWM Proximity Temp bi 10 pin Sensor Sensor Gesture Pad 32kHz Debug Crystal Status LED C 2 Ca USB SEH KitProg PSoC 4200M Mini B bi Heset Level Translator pce Proximity Le e ton F RAM Debug 3 Axis RGB LED Push Button Accelerometer PSoC 4200M Arduino Compatible Input Output Headers Digilent Pmod Compatible Header Rapsberry Pi Compatible Header Heset But Figure 3 3 PSoC 4 M Series Pioneer Kit Board Diagram 23 13 ZZ l 20 m omi Kap i mi vos EL n 19 BKL DNNEEENFQEENENENEN EECH IL x LIGHT SENSOR u L m OM pan oy ay e w35 En Ais NES EE Lu 2 Nr Zei 3 TES o el N E s s E Le be Ria BUS EA DAWED LED E 1 wass am x i NG 16 CILE cen 5V 3 3V ze PAR Wow of rerce CYBCKIT 044 PSoC sum PIONEER KIT 8 NA NG ai e POK Corm E l obec BLP een dM SU 28 le a 10 NG eC SLE ane 3 LIE DD 1 2 EET T H NE C15 T s JA le 8 po 1 C18 polo eee gn UN s a WERT Erietit t totelag Cat 5 pi C25 L1 E ELTE Car o te D CR CIIN ag A gc Nik 3 1 MEM J vooaG e li32i1110131151 RRE fe SHUNT La i d 4 Nr uv I GA Bl DNA c34 n
32. SoC 5LP is used as a USB Serial interface for the USB UART bridge and USB I2C bridge as shown in Figure A 15 The I2C bus contains firmware controlled resistive pull ups using FET which can be enabled or disabled using the PSoC 5LP pins The USB Serial pins of the PSoC 5LP are also available on the Arduino header therefore the PSoC 5LP can be used to control Arduino 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 between PSoC 5LP and PSoC 4200M for custom PSoC 5LP applications Figure A 21 Schematics of Serial Interface Connections and I2C Pull Up via FET P5LP2 6 P5LP2 7 P5LP12 1 SPI MISO I2C SDA P5LP12 0 SPI SCLK I2C SCL I2C Connection CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 52 55 CE Fey press PERFORM USB I2C SPI SCLK DC SCL KY SPI MISO 12C SDA KY UART TX j R ZERO pn 0 x UARTRX C RA ZERO 74 USB UART RXKK lt EE N AD SPI MOSIQQS RA ZERO ops o R4 RO Tm SPI SSELQQS R AFRO yna 7 A 3 14 Raspberry Pi Compatible Header Appendix RESEK RINARO WxRES x SWDCLK dere RS ANARO COP x The PSoC 4 M Series Pioneer Kit has a Raspberry Pi compatible header marked 14 in Figure A 15 This header J15 is not populated by default Refer to the No Load Compon
33. X X X D You can read from any address location of F RAM by modifying the above command For example to read 8 bytes from address location 0x1234 of F RAM use the following command w 50 12 34 r 50 x x X X x X x Xx p Refer to the Appendix A A to understand how the F RAM communicates with an I2C master Note This project is not configured to operate in an DC multi master environment If you are using Bridge Control Panel tool to read the F RAM data log reset the PSoC 4 M Series Pioneer Kit before using the uC Probe tool to view the data If the COM terminal software is connected it displays an error message to indicate communication failure CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 37 Appendix PERFORM Surd lamog oi eso 2 sdeo jo ated uoee sela 3n L sto LED FTI FEI cto CCH 812 cco cia vaa olada OOOA 0301 Te3sSAI ZHY F v Od ZHN8Y1 TE O AS BE EE 833333 38 m gt AUN KA N RAS adaa Giai cod OD CG COQOOQO T JI DI Ul DI D O ab A Pas o HS3 LS Las lt ZHNOOL D WHO OEE sae nakalog Vag gt O Si 9 PKO td O GWOT ON an c d Jn Cp Bur33es pT rus Gab F T mi n Se idee E SIYW y da id Blo ON3Z 8S DXA Od BI lt GWOT OR aw 4 0d Or gt SOPW IZVZPTPIBAD a Ly UA Od IF lt e ES T 0d Od E x gt OMJZ SM F 0d Cf Od Pt n gan 08 0d 9 S3YW STUN Lb GDA 8 an 1 SCH id SSWdAd AWS PERFORM YPRESS 1 Sch
34. YPE BLACK No load components 50MIL KEYED CONN HEADER 10 PIN CONN HEADER Sullins Connector 61 1 J7 2 PIN HDR FEMALE 2POS 1 I PPPC021LFBN RC Solutions GOLD CONN HEADER FMAL Sullins Connector CONNECTOR CONN FEMALE 6POS Sullins Connector CAP 1UF 16V I C7 C48 0 1 uFd CERAMIC Y5V 0402 TDK Corporation C1005X5R1A104K050BA CAP CERAMIC 1 0UF CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A Cypress CY8C5868LTI LP039 Semiconductor STACKING HEADER RASPBERRY PI Samtec Inc ESQ 113 44 G D 64 A T AJ CYPRES PERFORM Appendix R21 R23 R25 R27 R43 R45 RES 0 0 OHM 1 10W R47 R49 R66 Zero Ohm 0603 SMD Panasonic ECG ERJ 3GEYOROOV RES 4 7K OHM 1 10W 2 R4 R41 4 7K 5 0603 SMD Panasonic ECG ERJ 3GEYJ472V TEST POINT 43 HOLE Keystone 3 TP8 TP9 TP14 BLACK 65PLATEDBLACK Electronics 9001 TP1 TP3 TP4 TP5 TP6 TP7 RED TEST POINT 43 HOLE Keystone 5000 TP10 TP11 TP12 TP13 65 PLATED RED Electronics TVS UNIDIR 350W 5V l 2 TVS1 TVS2 5V 350W SOD 323 Dioded Inc SD05 7 RES 0 0 OHM 1 8W 3 R7Z R56 R57 ZERO 0805 SMD Panasonic ECG ERJ 6GEYOROOV CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 65 Revision History k i i ner CYPRESS PERFORM Document Revision Histor Document Title CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Document Number 001 96598 Issue Date Origin of Description of Chang
35. am the PSoC 4 M Series Pioneer Kit with the CY8CKIT 044 Deep Sleep Blinky example project 3 After programming successfully you will see the green LED toggling state every one second 4 Power off the PSoC 4 M Series Pioneer Kit by unplugging the USB cable Remove the jumper shunt from power measurement jumper of PSoC 4200M on the PSoC 4 M Series Pioneer Kit J14 5 Connect an ammeter across the terminals 3 and 4 of the power measurement header as shown in Figure 4 4 Figure 4 4 Current Measurement When Powered From USB Port BS f 1 Dieu bf Ja AMBIENT LIGHT SENSOR Y 83 7 6 wv ou em e EE a a eis TA CYBCKIT a Sch 4200M KI Ai asi J Y PSeC SLP oU5 PIONEER KIT ZS Y 1 d i comi on 18 iso lt t H Li JA 2 PSoC SLP E E BAT I N F ng i c Fa wei Ca i i oe E etim 33 4 nn etc E a 2 5 0 010 1 KA y c m a vn Xm RUN M p GER 17 ita T thay 34 au ni 1 3 109 SHUNT Z1 M485 10 ENLNT 2 4 4 3 4 NO SHUNT Y RB 3 6 st NX ge m pa v caa ve a gt 3 o Al Bolo A accel EROME TER C39 bi Wi N N Wi N o c Q G lt lt K WK Tal cd ti Ne Leo SA sR CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 25 TILIL Example Projects 6 Plugin the USB cable back to power the PSoC 4 M Series Pioneer Kit 7 Observe the average power consumed by the PSoC 4200M device on the
36. ammeter The measured average power must be less than 260yA at 3 3V Note Detailed explanation on the power measurement header terminals is provided in the Hardware Functional Description section 4 4 CapSense Proximity 4 4 1 Project Description This project demonstrates the proximity sensing capability of the PSoC 4200M device The CapSense scans for an approaching hand every 100ms and enters a low power mode if proximity is not detected This allows the PSoC 4200M to operate at lower average power levels The scanning interval is increased and the CapSense scan is performed every 30ms if proximity is detected The PSoC 4200M gradually increases the brightness of the green LED as the hand approaches the proximity sensor If proximity is not detected for a period more than 3s the PSoC 4200M increases the CapSense scanning interval to 100ms Note The time periods of 30ms and 100ms are dependent on the LFCLK accuracy These time periods can be inaccurate up to 6096 when ILO is used as the clock source for LFCLK Use the ILO Trim Component as 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 Series Pioneer Kit as shown in Figure 4 5 Figure 4 5 Proximity Sensor Connection on PSoC 4 M Series Pioneer Kit TLP bv gt 3v Jb LR d Pie AP PROS wg a Ha X ma N YOCKIT 0
37. bpage or the kit Install directory Figure A 15 Board Highlight of Hardware Components 23 13 22 2 20 oi aln Wa B rs e 19 teur sensorn ramo eo 2 SSS SENSOR 2 PRUKIMI IT Liz a aa b Pe a 6 ep 1 1 eee one ZB 39 S Wees LE a x _ CYBCKIT 044 PSoC cuum IONEER KIT L d maco C Qe i HE I TU d SSC Hi TRE E pati 7 Ifon 11 2 ve dir gt NH cis 2 BL HE l 8 gt T7 hn is Ss eng C24m ka C3 lm ng ci L i kalo Cat LiM ay eh a asana n S RI NINE Te AL fund d LINE Y J NERA AR org LIT se s P dii LTUN jreseesa er o 16 e EY 2 o EN C38 i A DIO E Hoag OS SETER Gs 5 L GU 3 D z re 0 6 mm T Tap ew v eres A d x s bd TE q m 2 d AL j m CJ GC OID GD M e l R E ad f NAR10 1 wA d se rn 05 s id CH CE CAAC C IIIA 7 8 9 10 11 l2 L A 3 1 PSoC 4200M This kit uses the PSoC 4200M CY8C4247AZI M485 family device marked 6 in Figure A 15 PSoC 4 is a scalable and reconfigurable platform architecture for a family of programmable embedded system controllers with an ARM Cortex MO CPU It combines programmable and reconfigurable analog and digital blocks with flexible automatic routing The PSoC 4200M device family based on this platform architecture is a combination of a microcontroller with digital programmable logic programmable analog pro
38. c a or TCP WMs for PSoC 4 tachometer input capture r control registers status registers and a DMA controller ISR for PSoC 4 reducing development d Ready gen aud cd Errors 0 Warnings 1 Notes 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 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 10 g ES Cypress PERFORM 1 3 1 PSoC Creator Code Examples PSoC Creator includes a large number of code example projects These projects are accessible from the PSoC Creator Start Page as shown in Figure 1 4 Example projects 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 5 In the Find Example Project dialog shown in Figure 1 5 you have several options m Filter for examples based on device family or keyword B Select from the list of examples offered based on the Filter Options m View the project documentation for the selection on the Documentation tab m View the code for the selection You can also copy and paste code from this window to your project which can help speed up code development Introduction
39. capacitive Gesture Pad on the board which is connected to PSoC 4200M module pins marked 18 in Figure A 15 The CMOD and CTANK capacitors essential for CapSense functionality are connected on the board A 2 2 nF capacitor is present on the CMOD pin P4 2 for CapSense operation This kit also supports CapSense designs that enable waterproofing On this kit the Shield is connected to the pin or to ground by resistors R57 and R58 respectively By default R58 is mounted on the board which connects the Shield to ground Remove R58 and populate R57 when evaluating waterproofing designs which will connect the Shield to the designated pin PO 1 Proximity Header The PSoC 4 M Series Pioneer board contains two headers J10 and J11 for CapSense Proximity sensor connection marked 16 in Figure A 15 If the proximity functionality is not being used these can be used as standard GPIO pins A 3 7 Pioneer Board LEDs The Pioneer board has three LEDs A green LED LED1 indicates the status of the KitProg See the Troubleshooting section in KitProg User Guide for more information on LED states An amber LED LED2 indicates the status of power supplied to the board The kit also has a general purpose RGB LED LED3 for user applications marked 1 and 11 in Figure A 15 A 3 8 Push Buttons The board contains a reset push button and a user push button marked 9 and 12 in Figure A 15 The reset push button is connected to the XRES pin of PSoC 4200M and is
40. cks Cypress provides pre designed uC Probe project files for all the example projects associated with the PSoC 4 M Series Pioneer Kit except the Deep Sleep Blinky example project These projects can be found in the kit installation directory in the following folder Install Directory NCypressNCY8CKIT 044 PSoC 4 M Series Pioneer Kit 1 0 Firmware PSoC 4200MNuC Probe Workspace Refer to the Appendix for more details on how to use the Micrium yuC Probe tool To learn more about the uC Probe software visit micrium com tools ucprobe overview 4 3 Deep Sleep Blinky 4 3 1 Project Description This project demonstrates the Deep Sleep low power mode of the PSoC 4200M device The PSoC 4200M device is configured to be in Deep Sleep power mode and wakes up once every second The PSoC 4200M toggles the state of the GPIO each time the device wakes up from Deep Sleep power mode The GPIO is connected to the LED on the kit which turns 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 source the Watchdog Timer 4 3 2 Hardware Connections No specific hardware connections are required for this project All connections are hardwired on the board 4 3 3 Verify Output To verify the Deep Sleep Blinky example project follow these steps 1 Power the PSoC 4 M Series Pioneer Kit through USB connector J6 2 Progr
41. cts 4 6 Touch Gestures 4 6 1 Project Description This example project demonstrates the touch gesture recognition capability of the PSoC 4200M device using the CapSense Gesture Pad This Gesture Pad has five buttons arranged similar to a joystick Figure 4 10 shows the CapSense Gesture Pad on the PSoC 4 M Series Pioneer Kit Figure 4 10 CapSense Button Pattern The project gangs all the five CapSense elements of the Gesture Pad and scans them together as a single proximity sensor every 100ms by default When the ganged proximity sensor detects an approaching finger PSoC 4200M turns on the RGB LED and decreases the scanning interval to 10ms When a finger touch is detected the firmware tries to recognize if the finger has performed any touch gestures The PSoC 4200M changes the color of onboard RGB LED in different patterns depending on the detected 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 Violet gt Indigo gt Blue gt Green gt Yellow gt Swipe Clockwise Orange gt Red gt Violet Red gt Orange gt Yellow gt Green gt Blue gt Indigo gt Violet gt Red Swipe Counter clockwise CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 30 a SESJ Cypress IILLIL Example Projects Gei BE Gei mE GO m BO o If a touch is not detected for more than 3 seconds the PS
42. duino Pin CY8CKIT 044 PO 2 Sg P2 7 PO _ SEH SR Q LI AREF P GND GD Cl op N P Iw JL VRE P1 7 SH pajo These m are TE used for on board peripherals See the tables in the On Board Peripherals section below for connection details CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 59 HN Appendix Pioneer Series Kits Arduino Pin CY8CKIT 042 CY8CKIT 040 CY8CKIT 042 BLE CY8CKIT 044 po PO 4 PO 5 P1 4 Fam Fos Pow LI PL Pa De Pro P PH Peg 8 pr Pan These pins are also used for on board peripherals See the tables in the On Board Peripherals section below for connection details A 5 2 On Board Peripherals Table A 5 CapSense Pin Map Pioneer Series Kits CY8CKIT 042 BLE 7 Table A 6 Proximity header Pin Map a Pioneer Series Kits Arduino Pin CY8CKIT 042 CY8CKIT 040 CY8CKIT 042 BLE CYSCKIT 044 P2 0 P2 0 P3 7 PROXIMITY ERE P3 6 Table A 7 RGB LED Pin Map f Pioneer Series Kits Arduino Pin CY8CKIT 042 CY8CKIT 040 CY8CKIT 042 BLE CY8CKIT 044 P116 P32 P2 6 P6 P3 6 P216 Foz P3 7 Pe 5 A Pioneer Series Kits Arduino Pin CY8CKIT 042 CY8CKIT 040 CY8CKIT 042 BLE CY8CKIT 044 I Po 7 aM P2 7 Po 7 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 60 E CYPRESS A 6 KitProg Status LED States Appendix The KitProg Statu
43. e Change 02 26 2015 RNJT Initial version of the kit guide A 04 02 2015 RNJT Updated the Example Projects section Updated the kit name to PSoC 4 M Series Pioneer Kit Updated all images with high resolution images Updated links and cross references Updated the Project Description section Updated the Verify Output section Added Migrating Projects Across Different Pioneer Series Kits section Updated the Expansion Connectors sub section in Appendix section Updated the kit schematics and BOM in Appendix section CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 66
44. e 4 12 Accelerometer Movement in X Axis o0 ET sl LOO X gt wOUT L 4 o PWM TMP GNO SENSOR PROXIMITY Sau ca T Te 5LP 11 HE gt be c7 y I csa a y CYPRESS ks CYBCKIT 944 Ei PSeC SLP eus eg Cosme ii E e c11 c13 Wc E i W P5oC 4200M Cle Wrrtrmmm 33 C18 49 e RN om go tat C22h A L p s n i VDOAL Xs um in o Map LU LI n 2m Mm caper h Y i E Moe Ki DIO ACCELEROMETER S LUE 7 c39 me RASPBERRY PI HEADER Jis CI IA III O LO E WI 9091 910909 O 2K OR Je J ut pilb Un e Zeow 7 ING 5 v ang gt PITE E a bh Went D p pm KY Ay Maa AC AMBIE 4 o E 2 es LIGHT SENSOR PWM TMP GNO pnm o GS SENSOR 43 3 Or uta 10 j PROXIMIT E Ur a RG os OX IMITY Ww pamo MIN3 7 wag E T S 4 rao 5 d l J z J10 Ae Lu ma Log Ge o 9 5V 3 3v pear FM24V10 e PSo d 5LP PROG 3 i U4 Lal E B M mc AS cea a CYPRESS oB B CYBCKIT 044 PSoC 4200M ve PIONEER KIT c8 o Cone Cal C10 e ps e Dt TE tnim aa AA E 9 K d D E E E p ae ue Uni i cY ZT Mu aeo by i m CI ELT TS PROXIMITY IE Nx wm M wm AE Y RG 3 6 r 7 w e Iw NY e aera m A c3e Te poro cCELERO ETER CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 33 CYPRESS FATORUM Example Projects Figure 4 14 Accelerometer Movement in Z axis Table 4 3 LED Colo
45. ematics o Pa 5 C O OQ oF lt lt yc 38 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A Example Projects BSJ Cypress PERFORM Figure A 2 KitProg PSoC 5LP and Programming Interface Schematic Jn AAAAAAAAA ISOW IdS S zId Isd was DZI OSIN IdS I zId Isd 12S ZI N IDS IdS 0 zId Isd EL NUM L zld Isd XN ANH 9 Zlalsa suoT3o uuoo ehptig I T2ies gsS n aiepeeg uorsuedxg OId 5D d S Josa uorT32euuo ZI i108 oz Dnos las O pe ivas oc OSM las Mas I ouaz e qnnm enne enean hm nnnm nnne n nnne nnm nennt nnm haerent nnne nnnm nnne meten nnnm nn ennemi nm ennt entm etenim ener enne nnm enne nme nennen GI ASH MH 103g peareser ere Ed Isd E td Isd L Od iSd O3 7 Od Isd 3O312EdED yng ssed g uws 2 43O031I2EdED ng ssedda DIS 23a ee snan oaz Lee OO d amp d iebbnqeq azeuuriboig d IS Josa
46. ents section of the Bill of Materials for the header part number Alternately you may use the header from Samtec Inc part number ESQ 113 44 G D All the serial communication pins are brought onto this header Note that GPIO pins of the Raspberry Pi are not connected to the PSoC 4 M Series Pioneer Kit using this interface The Raspberry Pi pins are intolerant to voltages above 3 3 V A level translator is included on the board to automatically convert the digital logic voltages to the 3 3 V domain regardless of the power settings on the PSoC 4 M Series Pioneer Kit Figure A 22 PSoC 4 M Series Pioneer Kit Connected to a Raspberry Pi Model B CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 53 CYPRESS DD Appendix A 3 15 Level Translators The PSoC 4 M Series Pioneer Kit has two level translators The level translators are used on this kit to translate digital 5 V logic signals to 3 3 V One level translator connects the 12C and UART signals from PSoC 4200M to the Raspberry Pi compatible header It also connects to the I2C bus of the accelerometer as shown in Figure A 15 The level translator which connects the DC and UART interfaces to the Raspberry Pi is always on This ensures that you can read the accelerometer data without connecting a Raspberry Pi This level translator also connects to the 3 Axis accelerometer and the Cypress F RAM device The level translator which interfaces SPI lines of PSoC 4200M to
47. er from Install Directory NCY8CKIT 044 PSoC 4 M Series Pioneer Kit lt version gt Firmware PSoC 4200MNuC Probe Workspace 4 A pop up window will appear asking you to update the location of the e f file The e f file is located in the project workspace directory under the folder Project Location gt CY8CKIT 044 Sensor HubNCY8CKIT 044 Sensor Hub cydsn CortexM0 lt Compiler Version NDebug CY8CKIT 044 Sensor Hub elf Figure 4 15 Locate the e f file for Sensor Hub Project n CS p C Probe Missing File QU Jh lt CortexM0 ARM GCC 484 Debug gt v 5 Search Debug p uC Probe is unable to find the following file was ime CY amp ECKIT 044 Sensor Hub slf Name 5 Date modified 4 Libraries uC Probe found the following files in your working directory Documents ql Music Name Modified Date i Pictures Z Videos 4 i Computer EL Windows7_0S C 9 CD Drive D 23 Lenovo Recovery Q ax rnjt simba3 2 n Gia Network File name gt Files elf Please select one of them to update your workspace Browse Cancel Update 5 Click on Settings button from toolbar and select Cypress PSoC Prog under Communication tab in Settings window Select the KitProg in the drop down corresponding to option Port and click OK Refer to step 9 of the Appendix section Using the Micrium uC Probe for detailed explanati
48. eripheral Modules marked 8 in Figure A 15 Pmods are small I O interfaces that connect with embedded control boards through either 6 or 12 pin connectors The PSoC 4 M Series Pioneer Kit supports the 6 pin Pmod type 2 SPI interface For Digilent Pmod Peripheral Modules go to www digilentinc com This header is not populated on the PSoC 4 M Series Pioneer board You must populate this header before connecting Pmod Peripheral Modules Refer to the No Load Components section of the Bill of Materials for the header part number PSoC 5LP GPIO Header J8 An 8x2 header is provided on the board to bring out several pins of PSoC 5LP to support advanced features such as a low speed oscilloscope and a low speed digital logic analyzer marked 5 in Figure A 15 This header also contains the USB UART bridge pins and USB I2C bridge pins that can be used when these pins are not accessible on the Arduino headers because a Shield is connected A 3 5 USB Mini B Connector The PSoC 5LP connects to the USB Mini B connector of a PC through a Mini B connector marked 2 in Figure A 15 which can also be used to power the PSoC 4 M Series Pioneer Kit A resettable polyfuse is used to protect the computer s USB port from shorts and over current If more than 500mA is drawn from the USB Mini B connector the fuse will automatically break the connection until the short or overload is removed A 3 6 CapSense Circuit CapSense Gesture Pad The kit has a five element
49. es and displays the results in a graphical format as shown in Figure 4 17 This allows real time monitoring of data in the system The firmware changes the brightness of the onboard RGB LED according to the changes made in the RGB Palette in uC Probe tool The firmware also logs the temperature and acceleration data onto the onboard F RAM device every one second Data is stored in the format temperature data integer part temperature data fractional part x axis acceleration LSB x axis acceleration MSB y axis acceleration LSB y axis acceleration MSB z axis acceleration LSB z axis acceleration MSB If the F RAM is full the firmware rewrites the data from the beginning of the F RAM The firmware also reads back the data logged to F RAM every one second and sends it through UART This data can be read using the KitProg USB UART bridge Refer to the KitProg User Guide to learn how to use the KitProg USB UART bridge CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 34 oo IJ Cypress PERFORM Example Projects 4 8 2 Hardware Connections No specific hardware connections are required for this project All connections are hardwired on the board 4 8 3 Verify Output 1 Power the PSoC 4 M Series Pioneer Kit through USB connector J6 2 Program the PSoC 4 M Series Pioneer Kit with CY8CKIT 044 Sensor Hub project 3 Open the Sensor Hub Micrium uC Probe workspace CY8CKIT 044 uC Probe Sensor Hub wspx on your comput
50. es of our products CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 2 Contents CYPRESS PERFORM COMENS acs 3 Salely HELL AA PA 6 General Safety Instructions Aa 6 fs lace Co Be o PAA AA R AHAB AA ASAP APAN O SAPA AA 7 lal Ee 7 la e te BR EE 8 EC POCO EE 10 1 3 1 PSoC Creator Code Examples nennen nennen nennen sns nnnesi i rrr nnn nnns 11 Le dique age u 12 1339 NL cole o e ET AA AA AA 12 tA etno e Mu 12 1 5 Additional Learning Feelt a ana aa ALANGAN 12 16 Technical SUPPO uu 13 e Do Umen OMY GUE ONS ENTE 13 UE AO AA AA E RR 14 2 elt meet 15 SC a R eh o SE 15 Be EE AA PRA PAH 15 ca MIS c Eee i em 17 3 4189 17 ira m P 18 31 IBON of OPO aa E 18 SP KI Oa TU AA AA AA E 21 3 3 Programming and Debugging PSoC 4200M Device aa 21 3 39 1 Programming using PSoC Creator nnne nennen nnn nns sn na a nnns anna annis 21 3 3 2 Debugging using PSOC Creator nenne nnn nean n nnns nina ann n nnns naar nnns 22 3 3 3 Programming using PSoC Programmer 22 sg MES Ui i Leet 22 3 UB LE rie
51. gn 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 software and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as specified 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 MATERIAL 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 systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges Use ma
52. grammable interconnect high performance analog to digital conversion opamps with comparator mode and standard communication and timing peripherals The PSoC 4200M products will be fully compatible with members of the PSoC 4 platform for new applications and design needs The programmable analog and digital subsystems allow flexibility and in field tuning of the design For more information refer to the PSoC 4200M web page and the PSoC 4200M Family Datasheet A 3 2 PSoC 5LP An onboard PSoC 5LP CY8C5868LTI LP039 is used to program and debug PSoC 4200M device marked 4 in Figure A 15 The PSoC 5LP connects to the USB Mini B connector of the PC through 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 CY8C58LPxx family offers a modern method of signal acquisition signal processing and control with high accuracy high bandwidth and high flexibility Analog capability spans the range from thermocouples near DC voltages to ultrasonic signals For more information visit the PSoC 5LP web page Also refer to the CY8C58LPxx Family Datasheet CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 47 am SX CYPRESS FESTEN Appendix A 3 3 Power System The power supply system on this board is versatile allowing the input supply to come from the following sources m DV power fr
53. h as angular gauges or numeric indicators This allows you to use the uC Probe as an effective debug tool because it does not halt the CPU A 2 1 Installing and Using the uC Probe 1 Visit the Micrium website to download the Student Edition of the uC Probe software You can also purchase a license for Professional Edition of uC Probe from Micrium to access all the features in this software The Windows installer setup for uC Probe is available at micrium com download ucprobe 3 0 trial version Note You have to register an account with Micrium to download this software 2 Install the uC Probe on your computer 3 Open Micrium uC Probe from Start gt Micrium gt uC Probe gt Micrium uC Probe Note Refer to the uC Probe User Manual for detailed information on the uC Probe You can access this from Start gt Micrium gt uC Probe gt User Manual Figure A 5 Micrium pu C Probe in Start Menu A Micrium a k uC Probe _ Home Page P Micrium uC Probe A Target Manual Pg Uninstall Micrium uC Probe ppa User Manual 4 The PSoC 4 M Series Pioneer Kit gives you a 1 month free license for the uC Probe Professional Edition Refer to the uC Probe License Card for the uC Probe license key To activate the license click on File gt Activation In the License Manager window type in the license key and press Activate as shown in Figure A 6 Figure A 6 uC Probe Activation mom Home dE New Workspace Open B H Save K Save
54. inger in close proximity to the Gesture Pad without touching the sensors you will observe that the RGB LED blinks every 3 seconds This is because the PSoC 4200M firmware switches to the 100ms scan interval mode if touch is not detected for more than 3 seconds and turns off the LED Since the finger is in the range of proximity sensor after this event PSoC 4200M turns the LED back on and switches to the 10ms scan interval mode Power consumed by PSoC 4200M for this project can be measured using an ammeter as described in the Deep Sleep Blinky project CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 32 CYPRESS IIT Example Projects 4 7 Accelerometer 4 7 1 Project Description This example project shows a method to interface the onboard digital accelerometer with the PSoC 4200M device The accelerometer is assigned with the I2C address OxOF The firmware configures the accelerometer to generate an interrupt if motion is detected PSoC 4200M reads the accelerometer data whenever the accelerometer generates an interrupt This information is used to change the color and intensity of the onboard RGB LED depending on the direction of motion of the kit Table 4 3 shows the RGB LED color corresponding to the direction of motion The intensity of the RGB LED is directly proportional to the magnitude of acceleration experienced by the sensor Figure 4 12 shows the accelerometer orientation with respect to the kit Figur
55. it with this example project 7 Choose Debug gt Program in PSoC Creator 8 If the device is already acquired programming will complete automatically the result will appear in the PSoC Creator status bar at the bottom left side of the screen If the device is yet to be acquired the Select Debug Target window will appear Select KitProg lt serial numbers and click the Port Acquire button as shown in Figure 4 2 Figure 4 2 Port Acquire KitProg 171D0E3602213400 POWER 3 VOLTAGE ADC 3445 FREQUENCY 2000000 PROTOCOL SWD KitProg Version 2 10 9 After the device is acquired it is shown in a tree structure below the KitProg serial numbers Click the Connect button 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 EL KitProg 171D0E3602215400 PSoC 4200M CY8C4247AZI M485 E Teer van ME psoc 2200M ARM CMO Silicon ID QxX0BB11477 Cypress ID Qx112D 1141 Revision PRODUCTION Target unacquired OK CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 24 s J CYPRESS PERFORM Example Projects 4 2 Using the Micrium pC Probe Projects The Micrium uC Probe is a revolutionary software development tool that incorporates Micrium s proprietary Graphical Live Watch to graphically visualize the internals of any embedded system With uC Probe you can test your embedded design effortlessly with a few mouse cli
56. ivers hardware files and user documents 2 If you have downloaded the ISO file mount it in 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 the extracted content or the mounted ISO if Autorun from CD DVD is not enabled on the PC 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 3 Click Install CY8CKIT 044 to start the kit installation as shown in Figure 2 1 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 15 ees EN ES Installation Figure 2 1 Kit Installer Screen enum Bj CYPRESS Ef PERFORM CY8CKIT 044 2014 Cypress Semiconductor Corporation All rights reserved 4 Select the folder in which you want to install the CY8CKIT 044 kit related files Choose the directory and click Next 5 When you click Next the CY8CKIT 044 installer automatically installs the required software if it is not present on your computer Following is the required software a PSoC Creator 3 2 or later This software is available separately from www cypress com psoccreator b PSoC Programmer 3 22 2 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 P
57. lect select 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 structure as a quick reference Figure A 26 F RAM Single Byte and Multiple Byte Write Packet Structure Single Byte Write Start Data Stop B Slave Address TTL Address MSB Address LSB Data Byte BH By F RAM ii Acknowledge Multi Byte Write Start By Master By F RAM A B Slave Address LO Address MSB ZI Address LSB LU Data Byte ELE Data Byte B Acknowledge CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 56 LDA CYPRESS PERFORM Appendix Figure A 27 F RAM Single Byte and Multiple Byte Read Packet Structure Current Address Read No Start Address Acknowledge Stop Slave Address X 1 Data Byte afe By F RAM Acknowledge Data Sequential Read No Start Address Acknowledge Acknowledge Stop Slave Address X 1 Data Byte Data Byte he By F RAM Acknowledge Data Selective Random Read Start No Address Start Address Acknowledge Slave Address 0 Address MSB B Address LSB Slave Address X 1 Data Byte RB By F RAM As the figures show operations start with the slave address followed by the memory address For write operations the bus master sends the slave address and memory address followed by one or more data bytes Each byte of data is written
58. m 83 RI Pr al pa GOU LKA E Pset SLP PROG 00000 mr T To vu mg CCT TAN EZ LT pa nG e em 5ng p us zg z Z z z 8 8 A pa E 3 2 6 y nm Q Ski 4 5 3 Verify Output To verify the Proximity Gestures example project follow these steps 1 2 3 Power the PSoC 4 M Series Pioneer Kit through USB connector J6 Program the PSoC 4 M Series Pioneer Kit with the CY8CKIT 044 Proximity Gestures example project Connect the proximity sensor wires as shown in Figure 4 9 and press the reset switch of the kit SW1 You should bend the wire to form a loop as shown in Figure 4 9 to get better proximity range Bring your hand close to the proximity sensors The RGB LED will turn ON with white color The brightness of the LED will increase as you bring your hand closer to the proximity sensors Wave the hand at a close proximity from the 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 Wave the hand at a close proximity from the top sensor to the bottom sensor DOWN gesture to see the LED color change in the order Red Blue Green Red one color at a time with each wave Power consumed by PSoC 4200M for this project can be measured using an ammeter as described in the Deep Sleep Blinky project CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 29 A EP CYPRESS Haba Example Proje
59. mpletely from one end to the other over the proximity Sensors Note The time periods of 20ms and 200ms are dependent on the LFCLK accuracy These time periods can be inaccurate up to 60 when ILO is used as the clock source for LFCLK Use the ILO Trim Component as demonstrated in the Deep Sleep Blinky project to achieve higher accuracy with ILO CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 27 CYPRESS PERFORM Example Projects Figure 4 7 Proximity Gesture Recognition with PSoC 4 M Series Pioneer Kit Wave DOWN gesture With each wave DOWN gesture RGB LED color changes in the order Red Blue Green Red With each wave UP gesture RGB LED color changes in the order Red Green gt Blue gt Red Table 4 1 Gestures and Actions Action LED Color Change DOWN Red Blue Green Red CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 28 SEB Cypress IIT Example Projects 4 5 2 Hardware Connections Connect five inch wires provided with this kit to proximity jumpers J10 and J11 on the PSoC 4 M Series Pioneer Kit as shown in Figure 4 9 Figure 4 9 Proximity Sensor Connection on PSoC 4 M Series Pioneer Kit ma ee ee s ED p n ke A4 ang re NES g O Jess eC roaa e e gem _ AMB TEN N2 e a ak t SENS AS ECH m y m ics i TNT 8 va n RS 4 R B d e T ja CR wu es osn 2 H II
60. nce HIE Shared Memory Bootloadable BLE Shared Memory Bootloader ELE Temperature Measurement DIE Time5ync Boost Example Bootloadable PSoC4 Example Bootloader PSoC4 Example CAM Basic Example CAN Basic PA Example CAM Ful Example CAN Full PA Example CapSense CSD Design CapSense CSD P4 CapSense CSD P4_Example_WithTuner CapSense CSD PA LowPower CapSense CSD P4 Proximity Design CapSense CSD P4 Trackpad Gestures Cap5ense CDD WithTuner t while iu LED CONTROL Start CapSense CSD Start Initialize baselines CapSense CSD InitializeAllBaselines Update all baselines CapSense CSD UpdateEnabledBaselines Start scanning all enabled sensors CapSense CSD ScanEnabledWidgets Wait for scanning to complete while CapSense CSD IsBusy i Loop until condition true CharLCD_CustomFont S CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A n 11 B CYPRESS EI Introduction 1 3 2 Kit Example Projects You can access the installed kit example projects from the PSoC Creator Start Page To access these example projects expand the Kits under the section Examples and Kits then expand the specific kit to see the example projects Refer to the Using the Kit Example Projects section for a detailed explanation on how to access the kit example projects 1 3 8 PSoC Creator Help
61. nd any equipment which can cause a discharge without detection Permanent damage may occur to devices subjected to high energy discharges Proper ESD precautions are recommended to avoid performance degradation or loss of functionality Store unused CY8CKIT 044 boards in the protective shipping package End of Life Product Recycling The end of life cycle for this kit is five years from the date of manufacture mentioned on the back of the box Contact the nearest recycler to discard the kit General Safety Instructions ESD Protection ESD can damage boards and associated components Cypress recommends that the user 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 CY8CKIT 044 board 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 surface CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 6 1 Introduction 2P CYPRESS PERFORM Thank you for your interest in the CY8CKIT 044 PSoC 4 M Series Pioneer Kit The PSoC 4 M Series Pioneer Kit enables customers to evaluate and develop projects using the PSoC 4200M device family PSoC 4200M device family is an expansion to the PSoC 4 device family
62. nge amp Colors 0 EE 0 0 mmm 0 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 44 7 CYPRESS PERFORM 9 Select the File menu of the uC Probe and click Settings Figure A 11 uC Probe Settings eGioeeo Open H Save ba Save As CH Close Ek Activation EJ exit d New Workspace A Check Updates 7 User s Manual This document descri application including symbol Browser Communication Set Workspace Explorer Virtual Controls and Layout Design Tools Associating Symbol uC OS III Kernel Aw This document descri in the embedded tarn Example Projects 10 Select the Communication tab from the Settings window Click the Cypress PSoC Prog option and select the KitProg lt serial number gt from the drop down menu Select OK to close the dialog box Figure A 12 KitProg Connection in uC Probe pg C Probe Settings uong iunuiuo T jesauan Bj Endianness Little Endian Big Endian Interfaces None C Cloud Only Target Resident Code SI Cp CN Rs 232 ij use Debug Interfaces CS I Link i CMSIS DAP LI Cypress PSoC Prog Statistics C symbols sec bytes zer Settings Port Data Collection KitProg OAT 5022A01 1A3400 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 45 oo J CYPRESS PERFORM 11 Program the same project for which the E
63. o P7 1 on PSoC 4200M For more details on the KitProg USB UART functionality refer to the KitProg User Guide 3 5 USB I2C 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 hardwired on the board to the 12C lines of the KitProg The USB I2C supports I2C speeds of 50 kHz 100 kHz 400 kHz and 1 MHz For more details on the KitProg USB 12C functionality refer to the KitProg User Guide 3 6 Updating the KitProg Firmware The KitProg firmware normally does not require any update You can use the PSoC Programmer software to update the KitProg firmware Refer to the KitProg User Guide for a detailed explanation on how to update the KitProg firmware CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 22 4 Example Projects a CYPRESS PERFORM The CY8CKIT 044 PSoC 4 M Series Pioneer Kit includes six example projects This chapter explains how to use these example projects 4 1 Using the Kit Example Projects To access the example projects download and install the CY8CKIT 044 PSoC 4 M Series Pioneer Kit setup file from the kit web page After installation the example projects are available in the Firmware folder in the installation directory Follow these steps to open and use the example projects 1 Launch PSoC Creator from Start gt All Programs gt C
64. o be used for bootloading the PSoC 4200M device 21 Ambient Light Sensor This is a photodiode connected in photoconductive mode to detect variations in the ambient light intensity The conductivity of this sensor increases when the ambient light intensity increases and results in a higher current flow through the sensor The PSoC 4200M internal opamps are used to implement a current to voltage converter to detect these current variations The resultant output voltage is measured using the internal SAR ADC of the PSoC 4200M device to determine the ambient light intensity Refer to the TEMD6200FX01 datasheet from Vishay Semiconductors for more information on the electrical characteristics of the sensor 22 32 kHz Crystal Oscillator The PSoC 4 M Series Pioneer Kit has a 32 kHz crystal oscillator to provide an accurate low frequency clock for the 4200M device 23 10 pin programming header for PSoC 5LP This header is used to program debug the PSoC 5LP using an external programmer such 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 USB I2C bridge and a USB UART bridge The Cypress PSoC 5LP device is used to implement KitProg functionality The KitProg is integrated in most PSoC development kits For more details on the KitProg functionality refer to the KitProg User Guide in the kit installa
65. oC 4200M turns off the RGB LED CapSense scanning interval is changed to 200ms when the proximity is detected Note The time periods of 10ms and 100ms are dependent on the LFCLK accuracy These time periods can be inaccurate up to 6096 when ILO is used as the clock source for LFCLK Use the ILO Trim Component as demonstrated in the Deep Sleep Blinky project to achieve higher accuracy with ILO Note Clockwise and counter clockwise gestures can be initiated from any sensor except sensor 5 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 31 Jj CYPRESS TILLIE Example Projects 4 6 2 Hardware Connections No specific hardware connections are required for this project All connections are hardwired on the board 4 6 3 Verify Output 1 Powerthe PSoC 4 M Series Pioneer Kit through USB connector J6 2 Program the PSoC 4 M Series Pioneer Kit with CY8CKIT 044 Touch Gestures project 3 Bring your finger closer to the Gesture Pad to see the RGB LED turn ON with white color 4 Move your finger on the Gesture Pad on PSoC 4 M Series Pioneer Kit as mentioned in Table 4 2 to observe the corresponding LED color and intensity changes The RGB LED changes the color once after the completion of a gesture For example if you complete a clockwise gesture the RGB LED changes the color to Indigo if the previous color was Violet Figure 4 11 Verify CapSense Touch Gestures e ut oE TY ci Jd dch 5 i 4 AMBIENT Wu gt
66. od compatible I O header J16 PSoC 4200M reset button Arduino compatible power header J1 RGB LED User button Arduino compatible O headers U2 J3 J4 Raspberry Pi compatible header J15 3 Axis Accelerometer CapSense Proximity headers J10 J1 1 PSoC 4200M current measurement jumper J14 CapSense Gesture Pad PWM Temperature Sensor Cypress F RAM 1 Mb FM24V10 G Ambient Light Sensor 32 768 kHz crystal PSoC SIP program and debug header J5 BS NTO 28 ees Sz EA E a s pe ORG E200 secas seo c IM Arduino Uno R3 gt xt 223284 2229 222232 Ill PSoC 4 M Series Pioneer Kit z gao NG BB Digilent Pmod CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 9 _ ES Cypress PERFORM Introduction 1 3 PSoC Creator PSoC Creator is a state of the art easy to use IDE It introduces revolutionary hardware and software codesign powered by a library of preverified and precharacterized PSoC Components TM as shown in Figure 1 3 With PSoC Creator you can m Drag and drop Components to build your hardware system design in the main design workspace M Codesign your application firmware with the PSoC hardware m Configure Components using configuration tools m Explore the library of 100 Components m Access Component datasheets Figure 1 3 PSoC Creator Features File Edit View Project Build Debug Tools Window Help 9 oF id di 2 sa ma X 2 G ek 200 AQ L Debg zL o
67. om onboard USB connector m 5 V to 12 V VIN power from Arduino Shield B DV power from the Raspberry Pi The PSoC 4 M Series Pioneer Kit is powered at 5 V directly from the USB power supply An LDO is used to output 3 3 V to power the PSoC 4200M device marked 3 in Figure A 15 These voltages are selected through the J9 jumper as shown in Figure A 16 Figure A 16 Schematics of LDO and Power Selection Jumper V5 0 V3 3 D4 h wan NCP1117DTARKG St 2 VIN VOUT 4 D6 1 22 uFd 16v 0 4 uF Short 1 and 2 for 3 3V setting Short 2 and 3 for 5V setting The input to the LDO can be from either the USB or the VIN pin in the Arduino header Protection Circuits The power supply rail has reverse voltage overvoltage short circuit and excess current protection features as shown in Figure A 17 Figure A 17 Power Supply Block Diagram with Protection Circuits I O Header 5V Vin 3 3V e e DV Current measurement 73 VBUS Power Selection header 2 jumper PTC RPi 5V Raspberry Pi KitProg 10 Pin Header Prog Header l PSoC 4200M 10 Pin Prog Header m A PTC resettable fuse is connected to protect the computer s USB Mini B connectors from shorts and over current m OHing diodes prevent damage to components when the board is powered from different voltage sources at the same time m ESD protection is provided for the USB Mini B connector CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc
68. on Cypress 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 Document Conventions Table 1 1 Document Conventions for Guides Convention O Courier New Displays file locations user entered text and source code Gen 2nd Weg Italics Displays file names and reference documentation Read about the sourcefile hex file in the PSoC Creator User Guide Bracketed Bold Displays keyboard commands in procedures Enter or Ctrl C File gt Open Represents menu paths File gt Open gt New Project Times New Roman Displays an equation 24 2 4 Text in gray boxes Describes Cautions or unique functionality of the product Bold Displays commands menu paths and icon names in procedures Click the File icon and then click Open CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 13 E _ Cypress i PERFORM Installation 1 8 Acronyms Table 1 2 Acronyms Used in this Document LDO Low Drop Out voltage regulator EE CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 14 2 Installation S CYPRESS PERFORM This chapter describes the steps to install the software tools and packages on a PC for using the CY8CKIT 044 PSoC 4 M Series Pioneer Kit This includes the IDE on which the projects will be built and used for prog
69. on on how to connect to the KitProg from uC Probe 6 Run the uC Probe project by clicking the Run button on the toolbar Figure 4 16 Run the uC Probe Project La bill O D et Di Bring Forward L1 Group TB LILA E m Send Backward Align Full Settings Paste x A p e olis Screen Application Clipboard Arrange Kn Units 7T AN Zoom Factor Hi CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 35 PET C SSF Cypress ILIIL Example Projects 7 You can monitor the sensor data in the uC Probe as shown in Figure 4 17 Figure 4 17 Global Variables Values Displayed on uC Probe C geg Ambient Hal Sensor Data n RGB LED Control Using Color Palette Temperature Sensor Data Accelerometer Data 8 Vary the light intensity falling on the ambient light sensor to observe the change in ambient light intensity shown in the uC Probe 9 Move the kit in different directions to observe the accelerometer data change in the uC Probe 10 Move the pointer on the RGB palette in the uC Probe window to change the color of the onboard RGB LED similar to the color shown by the RGB palette Note Since the LED physically cannot show a black color change in the RGB palette to darker side reduces the brightness of onboard RGB LED The RGB LED might not show the true color for all color combinations 11 Open a COM terminal soft
70. r Corresponding to Direction of Motion Direction of Motion RGB LED Color X axis Green Blue Note If the kit is moved in multiple axes the PSoC 4200M modulates the intensity of RGB LED color corresponding to each axis depending on the acceleration detected on that axis For example if kit is moved in both x and y axis the RGB LED shows a combination of red and green colors 4 7 2 Hardware Connections No specific hardware connections are required for this project All connections are hardwired on the board 4 7 3 Verify Output 1 Power the PSoC 4 M Series Pioneer Kit through USB connector J6 2 Program the PSoC 4 M Series Pioneer Kit with CYSCKIT 044 Accelerometer project 3 Move the PSoC 4 M Series Pioneer Kit in different directions to see the RGB LED glow as described in Table 4 3 4 8 Sensor Hub 4 8 1 Project Description This example project demonstrates the capability of the PSoC 4200M device to function as a sensor hub device The PSoC 4200M can interface with multiple digital and analog sensors In this example project the PSoC 4200M interfaces an I2C based accelerometer a PWM based temperature sensor and an ambient light sensor This example project requires the associated uC Probe project files to show the output The firmware measures the ambient temperature ambient light and the accelerometer values from the sensors and stores them in global variables uC Probe software from Micrium reads these global variabl
71. ramming 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 CY8CKIT 044 PSoC 4 M Series Pioneer Kit software 1 Download the PSoC 4 M Series Pioneer Kit software from www cypress com CY8CKIT 044 The kit software is available in three different formats for download a CY8CKIT 044 Kit Complete Setup This installation package contains the files related to the kit 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 b CY8CKIT 044 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 c CY8CKIT 044 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 dr
72. ri m Ge d Reg By ke Send Backward 7 sam M H t Screen X AOT omg 2H Units Q Zoom Factor T rie m eee s Application Clipboard Arrange Professional Edition DataScreen3 Workspace Explorer vi DS Screens 3l Tools 4 Ula Projects l DataScreen3 gt Add the selected symbol to the node OX Scatter X Y Chart gar ge cor eu cse wor J Search by Name Search by Data Type s s RAM Range Min 0 Max FFFFFFFF Name a Writable Controls Type Size Size Filtered Memory Address e Maiit N A 1f E y IYA N Angular Gauges acclerometer configure unsigned char 1 0x2000012F H Keesen accRequest unsigned char 1 1 0x20000130 oneSecondTrigge unsigned char 1 1 0x20000131 BN Numeric indicators temperatureFrectional unsigned char i 1 Di 0x2000012E Ki Miscellaneous uC Probe RGBPalette long unsigned int 4 4 0x200000CC f 3 Advanced uC Probe temperaturelnteger signed char 1 1 0x20000126 UC Probe x dirMovement short int 2 2 0x20000128 amp stopped KitProg 171D0E3602213400 Closed C Users rjt Desktop CYSCKIT 044 Post ES10 CYSCKIT_044_S PSoC Device Symbols Configured 6 Tx 2 716 0 38 KB s Rx 2 716 0 38 KB s 8 You can click on the graphical elements to bring up the settings for each individual graphical element as shown in Figure A 10 Figure A 10 Settings for Graphical Elements Ra
73. roduct Installation Overview window as shown in Figure 2 2 Click Next after you select the installation type CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 16 Z CYPRESS 10 EES Installation Figure 2 2 Product Installation Overview e es Product Installation Overview Choose the install type that best suits your needs Choose the type of installation Product CY8CKIT 044 PSoC 4 M Series Pioneer Kit Installation Type Typical Installs tk Custom rr V A T Read the License agreement and select accept the terms in the license agreement to continue with installation Click Next When the installation begins a list of packages appears on the installation page A green check mark appears next to each package after successful installation Enter your contact information or select the check box Continue Without Contact Information Click Finish to complete the CY8CKIT 044 kit software installation After the installation is complete the kit contents are available at the following location Install Directory NCY8CKIT 044 PSoC 4 M Series Pioneer Kit Default location Windows 7 64 bit C Program Files x86 Cypress CY8CKIT 044 PSoC 4 M Series Pioneer Kit Windows 7 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 step
74. s 4 inches each m Two proximity sensor wires 5 inches each m Micrium uC Probe license card m Quick Start Guide Note The Micrium uC Probe license is valid only for one month from the date of activation CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 7 A a ES Cypress TIT Introduction Figure 1 1 Kit Contents Y8CKIT 044 QUICK START GUIDE PSOC 4 MSERIES PIONEER KIT Kit Contents PSoC 4 M Series Pioneer board 2 USB Standard A to Mini B cable nh IO 3 Four jumper wires 4 inches each 4 Two proximity sensor wires 5 inches each oh 5 Micrium s pC Probe license card 6 Quick Start Guide this document Mea XE US Inspect the contents of the kit if you find any part missing contact your nearest Cypress sales office 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 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 8 CYPRESS ILIII Introduction Figure 1 2 PSoC 4 M Series Pioneer Kit Markup 23 13 22 21 20 Power and Status LED USB connector J6 System power supply jumper J9 and LDO 3 3V PSoC 5LP programmer and debugger CY8C58681TI LPO39 PSoC SLP I O header J8 PSoC 4200M CY8C4247AZI M485 PSoC 4200M program and debug header J13 Digilent Pm
75. s LED on the development kit indicates the status of the KitProg operation using different blink rates Table A 9 shows the KitProg LED States and the corresponding status of the KitProg Table A 9 Meaning of KitProg LED States E User Indication Senge Action Required by User LED blinks fast Frequency 4 00 Hz LED blinks slow Frequency 0 67 Hz LED blinks very fast Frequency 15 0 Hz LED is ON LED is OFF LED starts blinking at power up if bootloadable file is corrupt Entered Bootloader mode by holding the kit Reset button during kit power up SWD operation is in progress Any 12C traffic Kit s COM port connect disconnect event one blink USB enumeration successful Kit is in the idle state waiting for commands Power LED is ON Bootload the KitProg cyacd file in PSoC Programmer connect to the kit open the Utilities tab and press Upgrade Firmware button Release the Reset button and re plug power if you entered this mode by mistake If the mode entry was intentional bootload the new cyacd file using the Bootloader Host tool shipped with PSoC Creator In PSoC Programmer watch the log window for status messages for SWD operations In the Bridge Control Panel the LED blinks on DC command requests In BCP or any other serial port terminal program distinguish the kit s COM port number by the blinking LED when the port is connected or disconnected PSoC Creator PSoC Programmer
76. s Logic CLFC d 8a Registers 7 Utilit rd OC Fan Controller y in CLFC h Display I CLFC_INT c Ports and Pins H CLFC_DataSend c CLFC_DataSend c System gt Thermal Management Supportfor up to 16 PWM controlled 4 wire brushless DC fans for ie 4 PSoC 3 PSaC BLP devices and up to 6 fans for PSoC RTD Calculator v1 20 Thermistor Calculator v1 20 _ Features h CLFC_DataSend h CLFC FW PWM1 i e CLFC FW PWMI n CLFC FW PWM1 le CLFC FW PWM1 CLFC FW PWM2 il CLFC FW PWM2 Individualor banked PWM outputs with tachometer inputs Supports 25 kHz 50 kHz or user specified PWM frequencies Tal Th T 3 a Supports fan speeds up to 25 000 RPM 4 E II h amin Cup Supports 4 pole and 6 pole motors Supports fan stall rotor lock detection on all fans Supports firmware controlled or hardware controlled fan speed n CLFC FW PWM2 regulation for PSoC 3 PSoC SLP c CLFC FW PM Show output from All K Supportsfimware controlled fan speed regulation for PSoC 4 EH CLFC_FW_PWM3 Log file for this session is d S Customizable alert pin for fan faul reporting CLFC_FW_PWM3 n CLFC_FW_PWM3 General Description ic CLFC FW PWM3 NG a The Fan Controller componentenables designers to quickly and easty develop fan controler 4 IN D 7 4 sol The componentis a m evelsolubon that encapsulates al necessary Jess
77. s 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 webpage for a list of all available PSoC Creator code examples To access code examples from within PSoC Creator see PSoC Creator Code Examples m Technical Reference Manuals TRM Provide detailed descriptions of the architecture and registers in each PSoC 4 device family CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 12 E 4 CYPRESS PERFORM Introduction Development Kits L CY8CKIT 042 and CY8CKIT 040 are easy to use and inexpensive development platforms These kits include connectors for Arduino compatible Shields and Digilent Pmod Peripheral Modules L CY8CKIT 049 is a very low cost prototyping platform for sampling PSoC 4 devices L CY8CKIT 001 is a common development platform for all PSoC family devices L MiniProg3 device provides an interface for flash programming and debug m Knowledge Base Articles KBA Provide design and application tips from experts on using the device For instance KBA93541 explains how to use CY8CKIT 049 to program another PSoC 4 B PSoC Creator Training Visit www cypress com go creatorstart creatortraining for a comprehensive list of video trainings on PSoC Creator B Learning from Peers Visit www cypress com forums to meet enthusiastic PSoC developers discussing the next generation embedded systems
78. s outlined in the Example Projects chapter 2 3 Uninstall Software The software can be uninstalled using one of the following methods Go to Start gt All Programs gt Cypress gt Cypress Update Manager and select the Uninstall button that corresponds to the kit software Go to Start gt Control Panel gt Programs and Features for Windows 7 or Add Remove Programs for Windows XP select the Uninstall Change button CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 17 3 Kit Operation d s CYPRESS PERFORM This chapter introduces you to PSoC 4 M Series Pioneer Kit features 3 1 Theory of Operation The PSoC 4 M Series Pioneer Kit is built around the PSoC 4200M device Figure 3 1 shows the block diagram of the PSoC 4200M device Refer to the PSoC 4200M datasheet for details on device features Figure 3 1 PSoC 4200M Block Diagram CPU Subsystem PSoC4200M FLASH SRAM ROM DataWire m 8 KB DMA 128 KB 16 KB KE s 8 m CL CT Interconnect Multi Layer AHB em eem Qj Peripheral Interconnect MMIO LU i all ss em LCD 2x LP Comparator e 4x SCB I2C SPI UART SAR ADC 12 bit TCPWM 2x Capsense 8x eset Reset Control Test DFT Logic DFT Analoc IOSS GPIO 8x ports Power Modes Active Sleep CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 4 CYPRESS PERFORM Kit
79. stures 4 5 1 Project Description This project demonstrates the proximity gesture detection capability of the PSoC 4200M device using CapSense The PSoC 4 M Series Pioneer Kit has two headers which are used to connect proximity wires These wires are used as proximity sensors to detect an approaching hand The firmware gangs both proximity sensors and scans them as a single proximity sensor every 200ms by default If the ganged proximity sensor detects the presence of an approaching hand then PSoC 4200M checks the magnitude of the signal produced by the proximity sensor If the proximity signal is less than the threshold value the RGB LED on the kit is maintained at a minimum brightness If the proximity signal is greater than the threshold value the brightness of the RGB LED on the kit is varied according 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 detected the firmware checks for hand gestures Two types of gestures are recognized by the firmware UP gesture and DOWN gesture Figure 4 7 shows the UP and DOWN gestures The color of the RGB LED is changed based on the recognized gesture The RGB LED turns off if proximity is not detected for more than 3 seconds CapSense scanning interval is changed to 200ms when the proximity is detected Note The gesture is registered only when the hand moves co
80. that offers more flash GPlOs and programmable analog and digital blocks PSoC 4200M device is a true programmable embedded system on chip integrating custom analog and digital peripheral functions memory and an ARM Cortex MO microcontroller on a single chip The programmable analog and digital peripheral functions allow higher flexibility in field tuning of the design and faster time to market The PSoC 4 M Series Pioneer Kit offers footprint compatibility with Arduino Shields 6 pin Digilent Pmod Peripheral Modules and Raspberry Pi boards This kit features two CapSense Proximity headers a CapSense Gesture Pad an ambient 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 RAM This kit supports operating voltages of 3 3 V or 5 V You will use PSoC Creator to develop and debug your PSoC 4200M device projects PSoC Creator is Cypress 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 1 1 Kit Contents The CY8CKIT 044 PSoC 4 M Series Pioneer Kit contains the following as shown in Figure 1 1 m PSoC 4 M Series Pioneer board m USB Standard A to Mini B cable B Four jumper wire
81. these inputs are not used for proximity sensing then the connectors and the associated l Os are available for general purpose use Current Measurement Jumper This jumper can be used to measure the current consumed by the PSoC 4200M device by connecting an ammeter between the pins 3 and 4 of the jumper Remember to connect the jumper between pin 3 and pin 4 if the current measurement functionality is not used CapSense Gesture Pad The CapSense Gesture Pad is a five element CapSense peripheral specifically intended for touch gesture recognition This peripheral can be used to detect swipe left swipe right swipe up swipe down clockwise swipe and counter clockwise swipe gestures Note The Gesture Pad can also be used as five individual capacitive touch buttons The Gesture Pad is not intended to be used as a radial slider CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 20 E 4 CYPRESS PERFORM Kit Operation 19 PWM Temperature Sensor The kit features a digital temperature sensor from Analog Devices TMP05 This sensor measures the ambient temperature and reports it to the PSoC 4200M device by varying duty cycle of the PWM output generated by the sensor 20 F RAM This kit features a Cypress F RAM device of 1 Mb capacity The F RAM is connected to the 12C interface of the PSoC 4200M device The Cypress F RAM device can be used similar to an external EEPROM memory for data logging operations The F RAM can als
82. tion directory Install Directory NCY8CKIT 044 PSoC 4 M Series Pioneer Kit lt version gt Documentation KItProg User Gurde pdt 3 3 Programming and Debugging PSoC 4200M Device The PSoC 4 M Series Pioneer Kit can be programmed and debugged using the KitProg Before programming the device ensure that PSoC Creator and PSoC Programmer software are installed on the PC See the Install Software section for more information 3 3 1 Programming using PSoC Creator 1 Connect the USB cable into the USB connector J6 as shown in Figure 3 4 The kit enumerates as a composite device if you are plugging in the PSoC 4 M Series Pioneer Kit to your PC for the first time Figure 3 4 Connect USB Cable to J6 CONV ints 5 LINGA NAT ern PR PT 094 AMBIENT o 2 E Ae eg eg eg VONT C PROXIMITY H a 3V o a t w EES I T H 5 ees ete m C FIRAN pou t pea sa C SLP ga 4 ae E e CYPE i od c Al CY8CK Al 044 PSo C 4200M P eC SLP eU5 IONEER KIT AC N d bay t jenen 16 d Ae T el MES 24v 9 Le LL NE C13 2 C14 a c es un iet 33 i y 1 CTA dliiiiiiliii geen H C20 Greg 5868LT diis t KT SCH cgo m e d SE x 0 o ra Ko lt z 3 t2 0h2 s x M 5 IGND O 606 Sa www NL e GAER 7 9 LL WI PT NG US NS i 2 i E CHE ei e IT CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A z 3 4 N SHUNT E ee ze PROXIMITY LE i
83. to consecutive locations in the memory and the memory generates an acknowledgement condition For Current Address Read and Sequential Read the bus master sends only the slave address The memory address used is the same address that was set by the previous Write or Selective Read operation For Selective Read operations after receiving the complete slave address and memory address the memory will begin shifting data from the current address on the next clock Note The example project Sensor Hub uses the onboard F RAM See the Sensor Hub project to understand how to communicate with the F RAM device using PSoC 4200M device You can also communicate with the F RAM using the Bridge Control Panel BCP software similar to the way you communicate with any other DC slave device Refer to the kitProg User Guide for more details on how to use the BCP to communicate with an 12C slave device CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 57 ES CYPRESS PESTERA Appendix A 5 Migrating Projects Across Different Pioneer Series Kits All Cypress Pioneer series kits are Arduino Uno compatible and have some common on board peripherals such as RGB LED CapSense and User Switch However the pin mapping in each of the boards is different due to differences in pin functions of the PSoC device used This section lists the pin maps of the Pioneer series kits to allow for easy migration of projects across different
84. ware on your PC such as HyperTerminal or PUTTY and connect to the KitProg 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 Flow Control option to None Observe that the data written to the F RAM is read back and displayed in the COM terminal software as shown in Figure 4 18 CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 36 E UJ CYPRESS ILIIT Example Projects Figure 4 18 F RAM Data Read by PSoC 4200M lo LS IR Edit View Call Transfer Help D Data Written location Sensor Data 00 CF FF Data Written location Sensor Data 00 CE FF Data Written location Sensor Data 00 CC FF Data Written location Sensor Data 00 DA FF Data Written location Sensor Data 00 D FF Data Written location Sensor Data 00 DI FF Data Written location Sensor Data 00 DA FF Data Written location Sensor Data 00 D5 FF Connected 0 00 12 Auto detect 1152008 N 1 SCROLL CAPS MN Capture Print echo 13 You can read the data logged by the PSoC 4200M to the F RAM using the Bridge Control Panel BCP software and KitProg Refer to the Chapter 5 of the KitProg User Guide to learn how to use KitProg USB I2C bridge with BCP Type in the following command in BCP to access the F RAM data from address location 0x0000 of the F RAM w 20 DO DO EF OO st X x X
85. y be limited by and subject to the applicable Cypress software license agreement Trademarks F RAM and PSoC Creator are trademarks and CapSense and PSoC are registered trademarks of Cypress Semiconductor Corporation All other trademarks are the property of their respective owners Purchase of DC components from Cypress or one of its sublicensed Associated Companies conveys a license under the Philips 12C Patent Rights to use these components in an I2C system provided that the system conforms to the DC Standard Specification as defined by Philips As from October 1st 2006 Philips Semiconductors has a new trade name NXP Semiconductors 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 featur
86. ypress gt PSoC Creator version gt PSoC 2 Creator lt version gt 3 Onthe Start page click CY8CKIT 044 under Examples and Kits gt Kits A list of example projects appears as shown in Figure 4 1 4 Click on the desired example project select a location to save the project and click OK Figure 4 1 Open Example Project from PSoC Creator XI Start Page No workspace open PS oC C rea tor TM Getting Started PSoC Creator Start Page Quick Start Guide Intro to PSoC Intro to PSoC Creator PSoC Creator Training Design Tutorials Getting Started With PSaC 3 Getting Started With P5oC 4 Getting Started With Piot 5LP Getting Started with PSoC 4 BLE Getting Started with PRoC BLE squauodula sjaatse1eq Ej Kits CY8CKIT 003A 2 1 CY8CKIT 017 CAN LIN Expansion Board Kit 2 0 CY8CKIT 040 CY8CKIT 042 Ej CY8CKIT 44 BI CYBCKIT 044 Accelerometer cywrk Ef CYSCKIT_ ur Proximity cywrk EH CY8CKIT 044 Deep Sleep Blinky cywrk E CYBCKIT_ 044 Proximity Gestures cywrk E CYBCKIT 044 Sensor Hub cywrk Ef CYSCKIT 044 Touch Gestures cywrk CY8CKIT 044 PSoC 4 M Series Pioneer Kit Guide Doc No 001 96598 Rev A 23 AP CYPRESS TITI Example Projects 5 Build the example project by choosing Build 5 Build Project Names A hex file is generated after the build process 6 Connect the PSoC 4 M Series Pioneer Kit to the PC using the USB cable connected to connector J6 as shown in Figure 3 4 to program the k
Download Pdf Manuals
Related Search
CY8CKIT 044_PSoC4M S..
Related Contents
SD83x4/x6E Friedrich CP06 User's Manual Mode d`emploi - Roland Central Europe User Manual 1 - 取扱説明書ダウンロード Copyright © All rights reserved.
Failed to retrieve file