background image

CY8CKIT-038 PSoC 4200 Family Processor Module Kit Guide, Doc. #  001-85916 Rev. **

31

Example Projects

5.3.2

Hardware Connections

The example project requires the I2C character LCD to be configured as shown in the following
table:

5.3.2.1

Connections in PSoC Creator (LowPowerDemo.cydwr file)

5.3.2.2

Physical Connections on CY8CKIt-001 DVK

Connect P1[6] (SwitchPin) to any of the switches (SW1 or SW2), and P1[7] (SleepLED) to any of the
LEDs of the CY8CKIT-001 DVK as shown in 

Figure 5-7 on page 32

.

5.3.3

Verify Output

Build and program the code example, and reset the device.

When powered or during normal operation, "Low Power Demo" is displayed on the LCD and the 
LED is in ON state.

When P1[6] (SwitchPin) is pressed, the LCD display turns off, LED turns off, and finally, the 
device goes to sleep.

Pin Name

Port Name

Reset

P3[5]

SCB_SCL

P4[0]

SCB_SDA

P4[1]

Summary of Contents for CY8CKIT-038

Page 1: ...8CKIT 038 PSoC 4200 Family Processor Module Kit Guide Doc 001 85916 Rev Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 408 943 2600 http www cypress com ...

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

Page 3: ...play_SAR_ADC 21 5 1 1 Project Description 21 5 1 2 Hardware Connections 23 5 1 2 1 Connections in PSoC Creator VoltageDisplay_SAR_ADC cydwr file 23 5 1 2 2 Physical Connections on CY8CKIt 001 DVK 23 5 1 3 SAR ADC Configuration 24 5 1 4 Verify Output 25 5 2 Project IntensityLED 26 5 2 1 Project Description 26 5 2 2 Hardware Connections 27 5 2 2 1 Connections in PSoC Creator IntensityLED cydwr file ...

Page 4: ...Contents 5 4 1 Project Description 34 5 4 2 Hardware Connections 35 5 4 2 1 Connections in PSoC Creator CapSense cydwr file 36 5 4 3 Verify Output 36 A Appendix 39 A 1 Schematic 39 A 2 Bill of Materials BOM 40 A 3 Pin Assignment Table 41 A 4 Regulatory Compliance Information 42 ...

Page 5: ...y 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 038 as shipped from the factory has been verified to meet with requirements of CE as a Class A product The CY8CKIT 038 contains electrostatic discharge ESD sensitive devices Electrostatic charges readily...

Page 6: ...n ESD workstation If one is not available use appropriate ESD protection by wearing an antistatic wrist strap attached to chassis ground any unpainted metal surface on your board when handling parts Handling Boards CY8CKIT 038 boards are 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 av...

Page 7: ...u can purchase this kit and download example projects at http www cypress com go CY8CKIT 038 Inspect the contents of the kit if you find any part missing contact your nearest Cypress sales office for help www cypress com support 1 2 PSoC Creator Cypress s PSoC Creator software is a state of the art easy to use software development integrated design environment IDE It introduces a hardware and soft...

Page 8: ... PDF Creation Date Origin of Change Description of Change 05 10 2013 SRYP Initial version of kit guide Table 1 2 Document Conventions for Guides Convention Usage Courier New Displays file locations user entered text and source code C cd icc Italics Displays file names and reference documentation Read about the sourcefile hex file in the PSoC Designer User Guide Bracketed Bold Displays keyboard com...

Page 9: ...00 Processor Module Kit version 2 2 Install Hardware No hardware installation is required for this kit The processor module is designed to be used in con junction with the CY8CKit 001 2 3 Install Software When installing the CY8CKIT 038 PSoC 4200 Family Processor Module Kit the installer checks if your system has the required software These include PSoC Creator PSoC Programmer Windows Installer NE...

Page 10: ...Module Kit Guide Doc 001 85916 Rev Getting Started 2 5 Verify Kit Version To know the kit revision look for the white sticker on the bottom left on the reverse of the kit box If the revision reads CY8CKIT 038 Rev then you own the latest version ...

Page 11: ... PSoC 4200 family device by using the example project VoltageDisplay_SAR_DAC Follow this procedure to program a project on to the PSoC 4200 family device 1 Connect the PSoC 4200 family processor module on the CY8CKIT 001 DVK 2 Apply the power to the CY8CKIT 001 DVK using either the battery connections or a wall power unit using 12V AC adapter 3 Connect the MiniProg3 to a host PC s USB High Speed p...

Page 12: ...the example project VoltageDisplay_SAR_ADC from the Kits folder present on the Startup page of PSoC Creator Figure 3 2 Kit Projects in the PSoC Creator Startup Page 5 Create a folder in the desired location and click OK 6 The project opens up in PSoC Creator and gets saved in that folder 7 Go to Tools menu select Options ...

Page 13: ...CY8CKIT 038 PSoC 4200 Family Processor Module Kit Guide Doc 001 85916 Rev 13 Kit Operation Figure 3 3 Tools Options 8 Go to Program Debug 9 Select Port Configuration and select MiniProg3 ...

Page 14: ...Processor Module Kit Guide Doc 001 85916 Rev Kit Operation 10 Configure MiniProg3 using the settings below 11 Build the project by selecting the Build option Figure 3 4 Build Option 12 Click the Program icon Figure 3 5 Program Option ...

Page 15: ... Rev 15 Kit Operation In some cases when you click the Program tab the following window pops up Click on Port Acquire Click Connect and then select OK to program the device 13 After successful programming a prompt message is displayed in the output window See Figure 3 6 ...

Page 16: ...38 PSoC 4200 Family Processor Module Kit Guide Doc 001 85916 Rev Kit Operation Figure 3 6 Successful Programming Message in Output Window Note Refer to Example Projects chapter on page 21 for more example projects ...

Page 17: ...16 bit Counter Timer PWMs with centre aligned capability Peripherals PSoC 4200 Family Device 32 bit AHB Lite CPU Memory Peripheral Interconnect MMIO System Interconnect Single Layer AHB SRAM 4 kB SRAM Controller SWD TC NVIC IRQMX Cortex M0 48 MHz FAST MUL SROM 4 kB ROM Controller FLASH 32 kB Read Accelerator SPCIF Programmable Digital UDB UDB UDB UDB x4 Programmable I O LCD SMX SAR 12 bit x1 Progr...

Page 18: ...ardware Fixed function special blocks CSD CapSense block with shield driver for waterproofing and digi tal LCD drive on all pins Clocking Trimmed IMO and ILO clock sources Deep Sleep Hibernate and Stop low power modes Figure 4 2 CY8CKIT 038 PSoC 4200 Family Processor Module Board ...

Page 19: ... Hardware The CY8CKIT 038 PSoC 4200 family processor module board has the following four blocks 44 Pin TQFP package PSoC 4200 family device Four 2 16 headers which connect to the CY8CKIT 001 DVK Main Board CMOD circuitry for CapSense application Single Wire Debug SWD connector ...

Page 20: ...20 CY8CKIT 038 PSoC 4200 Family Processor Module Kit Guide Doc 001 85916 Rev Hardware ...

Page 21: ...12 on CY8CKIT 001 in the LCD Power OFF position 5 1 1 Project Description This example project measures an analog voltage controlled by the potentiometer The project uses the internal SAR ADC configured for a 12 bit operation the ADC range is 0 to VDDA The results are displayed on the I2C character LCD Figure 5 1 Schematic and Flow Diagram of VoltageDisplay_SAR_ADC ...

Page 22: ...22 CY8CKIT 038 PSoC 4200 Family Processor Module Kit Guide Doc 001 85916 Rev Example Projects ...

Page 23: ...following table 5 1 2 1 Connections in PSoC Creator VoltageDisplay_SAR_ADC cydwr file 5 1 2 2 Physical Connections on CY8CKIt 001 DVK Because it uses the potentiometer the jumper VR_PWR J11 should be in place This connects the potentiometer to the VDDA Connect the output of the VR pin to P2 7 Voltage_Input input pin as shown in Figure 5 3 on page 25 Pin Name Port Name Reset P3 5 SCB_SCL P4 0 SCB_S...

Page 24: ...The code waits for each sample processes it and displays the result on the LCD Range is set to VSSA to 2 VREF 3 3 V in single ended mode because the potentiometer output is a single ended signal that can go from 0 to VDDA Therefore at 12 bit resolution the ADC resolves in steps of VDDA 2 Voltage reference should be set to VDDA 2 supply voltage when the input range is set to VSSA to VDDA It is set ...

Page 25: ...functionality When you turn the potentiometer the voltage value changes Figure 5 3 VoltageDisplay_SAR_ADC Project Demonstration You can also verify the voltage on the potentiometer using a precision multimeter Note The potentiometer connects to a differential ADC which works in the single ended mode This means the ADC input is measured against internal VSSA Any offset in the measurement can be pos...

Page 26: ...ct Description This example code uses pulse width modulators PWM to illuminate an LED When the pulse width of the PWM varies the LED brightness changes By continuously varying the pulse width of the PWM the example code makes an LED go from low brightness to a high brightness and back Figure 5 4 Intensity LED Project Flow Diagram ...

Page 27: ...6 Rev 27 Example Projects 5 2 2 Hardware Connections 5 2 2 1 Connections in PSoC Creator IntensityLED cydwr file 5 2 2 2 Physical Connections on CY8CKIT 001 DVK Connect the output pin P1 5 LED to any one of the LEDs present on the CY8CKIT 001 DVK as shown in Figure 5 5 ...

Page 28: ...ects 5 2 3 Verify Output When the example code is built and programmed into the device reset the device by pressing the Reset button or power cycling the board The project output is LED1 glowing with a brightness con trol that changes with time Figure 5 5 IntensityLED Project Demonstration ...

Page 29: ...LowPowerDemo 5 3 1 Project Description This project demonstrates the low power functionality of PSoC 4200 family processor module The project implements a firmware based code which continuously monitors a switch to put the system into sleep or wake up mode Figure 5 6 LowPowerDemo Schematic and Flow diagram ...

Page 30: ...ple Projects Start Initialize interrupts and I2C character LCD Display Low Power Demo on LCD And turn on the LED Switch press Switch off the LED Turn off the LCD display Put the system into sleep Switch press Wake up the system Turn on the LCD display Switch on the LED No No Yes Yes ...

Page 31: ... CY8CKIt 001 DVK Connect P1 6 SwitchPin to any of the switches SW1 or SW2 and P1 7 SleepLED to any of the LEDs of the CY8CKIT 001 DVK as shown in Figure 5 7 on page 32 5 3 3 Verify Output Build and program the code example and reset the device When powered or during normal operation Low Power Demo is displayed on the LCD and the LED is in ON state When P1 6 SwitchPin is pressed the LCD display tur...

Page 32: ...or Module Kit Guide Doc 001 85916 Rev Example Projects When P1 6 SwitchPin is pressed the second time the device returns to Active mode and the LCD display turns on and LED turns on Figure 5 7 a LowPowerDemo Project Demonstration Active Mode ...

Page 33: ...CY8CKIT 038 PSoC 4200 Family Processor Module Kit Guide Doc 001 85916 Rev 33 Example Projects Figure 5 7 b LowPowerDemo Project Demonstration Low Power Mode LCD display is off LED is off ...

Page 34: ...form to build CapSense based projects using PSoC 4200 family processor The example uses two CapSense buttons and one 5 element slider provided on the board Each capacitive sensor on the board is scanned using the Cypress CSD algorithm The but tons are pre tuned in the example code to take care of factors such as board parasitic Figure 5 8 CapSense Schematic and Flow Diagram ...

Page 35: ...apSense configurations are shown in the following table Pin Name Port Name Reset P3 5 SCB_SCL P4 0 SCB_SDA P4 1 Button0 P0 5 Button1 P0 6 Slider0 P0 0 Slider1 P0 1 Slider2 P0 2 Slider3 P0 3 Slider4 P0 4 Start Initialize CapSense and I2C character LCD Display Btn0 Btn1 Slider on LCD Button0 press Yes Display OFF on LCD Display ON on LCD No Button1 press Yes Display OFF on LCD Display ON on LCD No S...

Page 36: ... cydwr file 5 4 3 Verify Output Build and program the code example and reset the device The LCD displays the status of the two buttons as ON or OFF The LCD also shows the slider touch position as a percentage When you touch a button the LCD displays ON when you remove the finger from the button the LCD displays OFF as shown in Figure 5 9 ...

Page 37: ...finger position is displayed as a percentage on the LCD Figure 5 10 CapSense Slider Demo Note You can also use the Character LCD provided with CY8CKIT 001 to implement your own designs using the PSoC 4200 Family Processor Module Example projects using the Character LCD are not provided with this kit To use the Character LCD move jumper J12 on CY8CKIT 001 to LCD Power ON ...

Page 38: ...38 CY8CKIT 038 PSoC 4200 Family Processor Module Kit Guide Doc 001 85916 Rev Example Projects ...

Page 39: ...8 44 PIN TQFP B Title Size Document Number Rev CYPRESS SEMICONDUCTOR 2012 630 60048 01 05 CY8CKIT 038 44 PIN TQFP B R3 NO LOAD R6 NO LOAD 0603 R11 4 7K J5 HDR 1x5 1 1 3 3 2 2 4 4 5 5 R2 NO LOAD C6 2200 pF U2 FXMAR2104 VCCB 1 GND 7 A1 4 VCCA 2 A0 3 B3 9 B2 10 OE 8 A2 5 A3 6 B1 11 B0 12 TP2 RED 0603 R9 7 15K J3 Header 2x16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 20 22 24 26 28 30 23 19 17 27 29 25...

Page 40: ...J 3GEY0R00V 10 1 R8 2 7 K RES 2 7K OHM 1 10W 5 0603 SMD Panasonic ECG ERJ 3GEYJ272V 11 1 R9 7 15 K RES 7 15 K OHM 1 10W 1 0603 SMD Panasonic ECG ERJ 3EKF7151V 12 2 R10 R11 4 7 K RES 4 7 K OHM 1 10W 5 0603 SMD Panasonic ECG ERJ 3GEYJ472V 13 5 TP2 TP3 TP4 TP5 TP6 RED TEST POINT 43 HOLE 65 PLATED RED Keystone Electronics 5000 14 1 TP1 BLACK TEST POINT 43 HOLE 65 PLATED BLACK Keystone Electronics 5001...

Page 41: ... 41 P1 4 GPIO LCD CSD CTB 42 P1 5 GPIO LCD CSD CTB 43 P1 6 GPIO LCD CSD 44 P1 7 GPIO LCD CSD EXT_REF PORT 2 2 P2 0 GPIO LCD CSD SARMUX 3 P2 1 GPIO LCD CSD SARMUX 4 P2 2 GPIO LCD CSD SARMUX 5 P2 3 GPIO LCD CSD SARMUX 6 P2 4 GPIO LCD CSD SARMUX PWM 7 P2 5 GPIO LCD CSD SARMUX PWM 8 P2 6 GPIO LCD CSD SARMUX PWM 9 P2 7 GPIO LCD CSD SARMUX PWM PORT 3 11 P3 0 GPIO LCD CSD SCB1 PWM 12 P3 1 GPIO LCD CSD SC...

Page 42: ...ectromagnetic compatibil ity EMC regulations EN 55022 2010 Class A Emissions EN 55024 2010 Class A Immunity OTHER 1 VSS DIGITAL GROUND 19 VDDD DIGITAL SUPPLY 1 8 5 5 V 32 XRES CHIP RESET active low 33 VCCD REGULATED SUPPLY Connect TO 1 uF Cap or 1 8 V 34 VDDD DIGITAL SUPPLY 1 8 5 5 V 35 VDDA ANALOG SUPPLY 1 8 5 5V 36 VSSA ANALOG GROUND 10 VSS DIGITAL GROUND Port Pin Pin Name Description ...

Reviews: