background image

PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A

46

Figure A-21.  EZ-BLE Connections

The EZ-BLE PRoC Module includes the following connections to PSoC 4000S and KitProg2:

UART connections to PSoC 4000S through zero-ohm resistors R28 and R27 (see 

Figure A-21

 

and 

Table A-7

). Please note that R28 and R27 are not loaded by default.

I2C connections to KitProg2 and PSoC 4000S (see

 

Table A-7

).

SWD connections to KitProg2 through the DPDT switch SW4. The SWD connections are shared 
between the PSoC 4000S and EZ-BLE devices.

P1_0

P1_1

/XRES

BLE_XRES

BLE_SCL

BLE_SDA

RESET

I2C_SCL

I2C_SDA

R59

ZERO

R20

ZERO

R17

ZERO

R14

ZERO

R26

ZERO

R58

ZERO

Summary of Contents for CY8CKIT-145-40XX

Page 1: ...CY8CKIT 145 40XX PSoC 4000S Prototyping Kit Guide Doc 002 11504 Rev A Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 www cypress com ...

Page 2: ...BILITY AND FITNESS FOR A PARTICULAR PURPOSE To the extent permitted by applicable law Cypress reserves the right to make changes to this document without further notice Cypress does not assume any liability arising out of the application or use of any product or circuit described in this document Any information provided in this document including any sample design information or programming code ...

Page 3: ...cumentation Conventions 13 1 8 Acronyms 14 2 Software Installation 15 2 1 Before You Begin 15 2 2 Install Software 15 2 3 Uninstall Software 18 3 Kit Operation 19 3 1 Theory of Operation 19 3 2 KitProg2 22 4 Code Examples 25 4 1 Using the Kit Example Projects 25 A Appendix 28 A 1 Hardware Functional Description 28 A 2 Schematics 47 A 3 Bill of Materials 47 A 4 Programming the PSoC 4000S Prototypin...

Page 4: ...s a Class A product General Safety Instructions ESD Protection ESD can damage boards and associated components Cypress recommends that you 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 PSoC 4000S Prototyping Kit is sensitive to ESD Hold the ...

Page 5: ...PSoC 4000S device into your end system The board includes the following features 3 CapSense buttons 5 Segment CapSense slider LEDs to provide feedback Onboard CMOD CTANK CintA and CintB capacitors to enable CapSense development Bypass capacitor to ensure high quality analog to digital conversions No Load by default A push button to provide a simple user input Load capacitors to connect the 32 kHz ...

Page 6: ... 002 11504 Rev A 6 Introduction 1 1 Kit Contents The PSoC 4000S Prototyping Kit contains PSoC 4000S Prototyping board and Quick Start Guide The PSoC 4000S Prototyping board is as shown in Figure 1 1 Figure 1 1 PSoC 4000S Prototyping Board ...

Page 7: ...c 002 11504 Rev A 7 Introduction 1 2 Board Details The PSoC 4000S Prototyping board consists of the blocks as shown in Figure 1 2 Also Figure 1 3 shows the pin mapping for kit headers Figure 1 2 PSoC 4000S Prototyping Board Block Diagram ...

Page 8: ...PSoC 4000S Prototyping Kit Guide Doc 002 11504 Rev A 8 Introduction Figure 1 3 PSoC 4000S Prototyping Board Pin Details ...

Page 9: ...you can 1 Drag and drop Components to build your hardware system design in the main design workspace 2 Co design your application firmware with the PSoC hardware 3 Configure Components using configuration tools 4 Explore the library of 100 Components 5 Access Component datasheets Figure 1 4 PSoC Creator Features PSoC Creator also enables you to tap into an entire tool ecosystem with integrated com...

Page 10: ...Figure 1 6 In the Find Example Project dialog shown in Figure 1 6 you have several options Filter for examples based on a device family or keyword Select from the list of examples offered based on the Filter Options View the project documentation for the selection on the Documentation tab View the code for the selection on the Sample Code tab You can also copy and paste code from this window to yo...

Page 11: ...eloping PSoC Creator projects Simple Component Code Examples Choose File Code Example These examples demonstrate how to configure and use PSoC Creator Components To access examples related to a specific Component right click on the Component in the schematic or in the Component Catalog Select the Find Code Example option in the context menu that appears System Reference Guide Choose Help System Re...

Page 12: ...Describe and provide electrical specifications for the PSoC 4000 PSoC 4100 PSoC 4200 PSoC 4100M PSoC 4200M PSoC 4200L and PSoC 4000S device families CapSense Design Guide Learn how to design capacitive touch sensing applications with the PSoC 4 family of devices Application Notes and Code Examples Cover a broad range of topics from basic to advanced Many of the application notes include code examp...

Page 13: ...1 7 Documentation Conventions Table 1 1 Document Conventions for Guides Convention Usage Courier New Displays file locations user entered text and source code C cd icc Italics Displays file names and reference documentation Read about the sourcefile hex file in the PSoC Designer User Guide File Open Represents menu paths File Open New Project Bold Displays commands menu paths and icon names in pro...

Page 14: ...ouble Pole Double Throw ESD Electrostatic Discharge GPIO General Purpose Input Output I2C Inter Integrated Circuit IDAC Current DAC IDE Integrated Development Environment LED Light Emitting Diode PRoC Programmable Radio on Chip PSoC Programmable Systems on Chip TCPWM Timer Counter Pulse Width Modulator SAR Successive Approximation Register SCB Serial Communication Block SRAM Static Random Access M...

Page 15: ...our PC b CY8CKIT 145 40XX Kit Complete Setup This installation package contains the files related to the kit along with Cypress prerequisite software such as PSoC Creator and PSoC Programmer 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 c CY8CK...

Page 16: ...the directory and click Next Figure 2 1 Kit Installer Screen 5 When you click Next the installer automatically installs the required software if it is not present on your computer Following are the required software a PSoC Creator 3 3 CP3 or later This software is available separately from www cypress com psoccreator b PSoC Programmer 3 24 2 or later This is installed as part of PSoC Creator insta...

Page 17: ...er your contact information or select the check box Continue Without Contact Information Click Finish to complete the CY8CKIT 145 40XX PSoC 4000S Prototyping kit software installa tion 10 After the installation is complete the kit contents are available at the following location Install_Directory CY8CKIT 145 40XX PSoC 4000S Prototyping Kit Default location Windows 7 64 bit C Program Files x86 Cypr...

Page 18: ...ng one of the following methods Go to Start All Programs Cypress Cypress Update Manager Cypress Update Manager and select the Uninstall button that corresponds to the kit software Go to Start Control Panel Programs and Features for Windows 7 or Add Remove Programs for Windows XP choose the product and select the Uninstall Change button ...

Page 19: ... PSoC 4000S device Figure 3 1 shows the block diagram of the PSoC 4000S device Refer to the PSoC 4000S datasheet for details on device fea tures Figure 3 1 PSoC 4000S Block Diagram Flash 16KB to 32KB SRAM 2KB to 4KB Programmable Interconnect and Routing GPIO x8 PSoC 4 One Chip Solution Cortex M0 48 MHz Programmable Digital Blocks SCB x2 TCPWM x5 Programmable Analog Blocks MCU Subsystem Advanced Hi...

Page 20: ...ate the CapSense buttons functionality of the PSoC 4000S device All the I Os used for implementing the CapSense Buttons and corresponding LEDs are exposed through the headers J1 and J10 2 CapSense Slider and LEDs A 5 segment linear slider SLD0 SLD1 SLD2 SLD3 and SLD4 with corresponding LEDs LED4 LED5 LED6 LED7 and LED8 are provided on a breakout board to demonstrate the CapSense Slider functionali...

Page 21: ...t SWD devices After the board is snapped J5 can be used to program debug the PSoC 4000S EZ BLE PRoC Module using an external programmer such as MiniProg3 J4 can be used to program any other external target device using onboard PSoC 5LP KitProg2 13 KitProg2 PSoC 5LP Programmer and Debugger U1 The CY8C5868LTI LP039 PSoC 5LP device U1 serving as KitProg2 is a multi functional system which includes a ...

Page 22: ...ogrammer software are installed on the computer See the Software Installation chapter on page 15 for more information 3 2 1 Programming and Debugging Using PSoC Creator 1 Connect the prototyping board to the computer through the PCB USB connector J8 as shown in Figure 3 3 The kit enumerates as a composite device if you are plugging in the PSoC 4000S Prototyping Kit to your PC for the first time Th...

Page 23: ...m the firmware into the kit by choosing Debug Program or by pressing Ctrl F5 as shown in Figure 3 5 This programs the device on the PSoC 4000S Prototyping board PSoC Creator has an integrated debugger You can start the debugger by selecting Debug Debug or by pressing F5 Refer to the Debugging Using PSoC Creator section in the KitProg2 User Guide for a detailed explanation on how to debug using PSo...

Page 24: ... emulated USB Mass Storage device For more details on KitProg2 Mass Storage Programmer refer to the KitProg2 User Guide 3 2 4 USB UART Bridge The KitProg2 on the PSoC 4000S Prototyping board can act as a USB UART bridge The UART lines between the PSoC 4000S and the KitProg2 are hard wired on the board through the snappa ble area with UART_RX assigned to P3 1 and UART_TX assigned to P3 0 on PSoC 40...

Page 25: ...sit PSoC 3 4 5 Code Examples which lists all PSoC Creator code examples available across application notes kits and PSoC Creator 4 1 Using the Kit Example Projects Follow these steps to open and use the example projects 1 Launch PSoC Creator from Start All Programs Cypress PSoC Creator version PSoC Creator version 2 On the Start page click CY8CKIT 145 40XX under Examples and Kits Kits A list of ex...

Page 26: ...nnector J8 as shown in Figure 3 3 6 Choose Debug Program in PSoC Creator to program the code example 7 If the device is already acquired programming will complete automatically and 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 KitProg2 serial number and click the Port...

Page 27: ...r slider with five segments and three CapSense buttons CapSense linear slider and buttons data is sent to the CapSense Tuner or EZ BLE PRoC Module using I2C communication The CapSense linear slider touch position and buttons status is used to turn ON OFF corresponding LEDs on the kit It also demonstrates connec tivity between the EZ BLE PRoC Module acting as a Peripheral and GATT server device and...

Page 28: ... User One amber LED LED2 Power One amber LED LED3 KitProg2 Status User push button SW2 connected to GPIO of PSoC 4000S and EZ BLE devices Reset button SW1 connected to XRES pin of PSoC 4000S and EZ BLE devices User push button SW3 connected to GPIO of KitProg2 Current measurement jumper J3 footprint only External reference capacitor C3 SAR ADC bypass No Load by default CapSense capacitors CMOD C10...

Page 29: ...PSoC 4000S Prototyping Kit Guide Doc 002 11504 Rev A 29 Figure A 1 PSoC 4000S Prototyping Board Pin Details ...

Page 30: ...y based on this platform architecture is a combination of a microcontroller with digital programmable logic programmable analog programmable interconnect high performance analog to digital conversion opamps with comparator mode and standard communication and timing peripherals The PSoC 4000S products are fully compatible with members of the PSoC 4 platform for new applications and design needs The...

Page 31: ...e target PSoC 4000S device EZ BLE PRoC Module KitProg2 PSoC 5LP connects to the USB port of the computer through the PCB USB connector and to the SWD interface of the target PSoC 4000S device EZ BLE PRoC Module See the KitProg2 User Guide for additional details and functions provided by the KitProg2 Figure A 3 Schematic of PSoC 5LP Kitprog2 ...

Page 32: ...nd install a 2 pin jumper in the supplied holes of J3 2 Connect an ammeter across the 2 pin jumper to measure the current to the PSoC 4000S device This method can be used either with USB power or with the power supplied to one of the VTARG pins but NOT when supplying power to one of the VDD pins After measuring the current consumption populate the resistors R22 and R23 for normal operation of the ...

Page 33: ...ngle in line headers J1 and J2 Both are 1 22 pin headers and include all of the I Os available on the PSoC 4000S device These headers support all of the avail able ports GND VDD and connections to passive elements and user input devices The J1 and J2 headers support 100 mil spacing so you can solder connectors to connect the target board to any development breadboard The CapSense Slider signals an...

Page 34: ...7 P1_3 BTN TX GPIO Button Tx J1_08 P1_4 BTN0 GPIO Button 0 Rx J1_09 P1_5 BTN1 GPIO Button 1 Rx J1_10 P1_6 BTN2 GPIO Button 2 Rx J1_11 P1_7 GPIO SAR ADC Bypass Capacitor J1_12 P3_0 UART RX GPIO UART Receive J1_13 P3_1 UART TX GPIO UART Transmit J1_14 P3_2 SWDIO GPIO SWD Data J1_15 P3_3SWDCLK GPIO SWD Clock J1_16 P3_4 LED9 GPIO Button 0 LED J1_17 P3_5 LED10 GPIO Button 1 LED J1_18 P3_6 LED11 GPIO Bu...

Page 35: ...d GPIO J2 Pin Signal Description J2_01 VDDA Power J2_02 GND Ground J2_03 P0_0 SLD0 GPIO Slider 0 Rx J2_04 P0_1 SLD1 GPIO Slider 1 Rx J2_05 P0_2 SLD2 GPIO Slider 2 Rx J2_06 P0_3 SLD3 GPIO Slider 3 Rx J2_07 P0_4 UART_RX GPIO UART Receive J2_08 P0_5 UART_TX GPIO UART Transmit J2_09 P0_6 SLD4 GPIO Slider 4 Rx J2_10 P0_7 USER BUTTON GPIO User Button J2_11 P2_0 LED4 GPIO Slider 0 LED J2_12 P2_1 LED5 GPI...

Page 36: ... two boards are separated The J6 and J7 headers support 100 mil spacing so you can solder connec tors to connect the KitProg2 board to any development breadboard Figure A 7 J6 and J7 Headers Table A 3 Pin Details of J4 Header PSoC 5LP KitProg2 Header J4 Pin Signal Description J4_01 VTARG Power J4_02 GND Ground J4_03 KP_P12_4 RESET KitProg2 GPIO Target XRES J4_04 KP_P12_3 SWDCLK KitProg2 GPIO Targe...

Page 37: ...8 10 pin Program and Debug Header Table A 5 Pin Details of J6 Header PSoC 5LP KitProg2 Header J6 Pin Signal Description J6_01 VBUS Power J6_02 GND Ground J6_03 KP_P12_5 GPIO J6_04 KP_P12_0 I2C_SCL J6_05 KP_P12_1 I2C_SDA J6_06 KP_P12_7 UART_RX J6_07 KP_P12_6 UART_TX Table A 6 Pin Details of J7 Header PSoC 5LP KitProg2 Header J7 Pin Signal Description J7_01 GND Ground J7_02 KP_P3_0 GPIO J7_03 KP_P3_...

Page 38: ...PRoC module This button can be used for general user inputs or to control different states in an application including waking up the device from sleep or deep sleep Figure A 9 User Button on the Board Reset Button The Kit contains a push button SW1 connected to the XRES pins on the target PSoC 4000S and EZ BLE devices When this button is pressed the XRES lines of the PSoC 4000S and EZ BLE are conn...

Page 39: ...C 5LP device This can be used to switch between different modes of KitProg2 such as Programmer Debugger Mass storage pro grammer Bootloader and Custom application Refer to the KitProg2 User Guide for more details This button can also be used as general purpose button in custom application for PSoC 5LP device Figure A 11 PSoC 5LP Mode Switch Button ...

Page 40: ...s Three CapSense buttons BTN0 BTN1 and BTN2 are provided on a breakout board to demonstrate the CapSense button functionality of PSoC 4000S device All the I Os used for implementing the CapSense Buttons are exposed though the headers J1 and J10 Figure A 12 CapSense Buttons ...

Page 41: ...not glow when the board is powered from VDD or VTARG directly The amber Status LED LED3 Indicates the KitProg2 status connected to P1 4 of the KitProg2 PSoC 5LP device For more details on the KitProg2 status LED refer to the KitProg2 User Guide The blue LED LED1 This is the user LED connected to P2 5 of the target PSoC 4000S device Slider LEDs LED4 LED5 LED6 LED7 LED8 The LEDs corresponding to fiv...

Page 42: ...PSoC 4000S Prototyping Kit Guide Doc 002 11504 Rev A 42 Figure A 14 Power LED Figure A 15 Status LED Figure A 16 User LED ...

Page 43: ...PSoC 4000S Prototyping Kit Guide Doc 002 11504 Rev A 43 Figure A 17 EZ BLE LED Figure A 18 Slider LEDs ...

Page 44: ...PSoC 4000S Prototyping Kit Guide Doc 002 11504 Rev A 44 Figure A 19 Button LEDs ...

Page 45: ...rystal oscillator is not placed on the board it can be soldered on pins P0 5 and P0 4 of PSoC 4000S Figure A 20 System Capacitors Circuit Diagram A 1 2 11 EZ BLE PRoC Module The board includes an EZ BLE PRoC Module which is loaded by default The EZ BLE PRoC Mod ule is a fully integrated 10 10 1 8 mm fully certified programmable module designed for ease of use and reduced time to market It contains...

Page 46: ...ro ohm resistors R28 and R27 see Figure A 21 and Table A 7 Please note that R28 and R27 are not loaded by default I2C connections to KitProg2 and PSoC 4000S see Table A 7 SWD connections to KitProg2 through the DPDT switch SW4 The SWD connections are shared between the PSoC 4000S and EZ BLE devices P1_0 P1_1 XRES BLE_XRES BLE_SCL BLE_SDA RESET I2C_SCL I2C_SDA R59 ZERO R20 ZERO R17 ZERO R14 ZERO R2...

Page 47: ... version Hardware CY8CKIT 145 40XX Schematic pdf A 3 Bill of Materials Refer to the BOM files in the following paths in the kit software installed Install_Directory CY8CKIT 145 40XX PSoC 4000S Prototyping Kit version Hardware CY8CKIT 145 40XX PCBA BOM xlsx Table A 7 EZ BLE Connections EZ BLE Connections EZ BLE PSoC 4000S KitProg2 Description BLE_TX P1_5 P0_4 UART_RX BLE_RX P1_4 P0_5 UART_TX BLE_SD...

Page 48: ... device via the 10 pin JTAG header or the 5 pin SWD header To do this connect wires or a 5 pin 100 mil spaced header to J5 or a 10 pin JTAG header to J11 on the target board The PSoC 4000S Prototyping Kit supports both power cycle and reset programming modes Figure A 23 Connecting CY8CKIT 145 40XX to MiniProg3 Note CY8CKIT 002 MiniProg3 is not part of the PSoC 4000S Prototyping Kit contents and ca...

Page 49: ...y Document Revision History Document Title CY8CKIT 145 40XX PSoC 4000S Prototyping Kit Guide Document Number 002 11504 Revision ECN Issue Date Origin of Change Description of Change 5423470 09 01 2016 SSHH New Kit Guide A 5713267 04 26 2017 SHEA Updated logo and copyright ...

Reviews:

Related manuals for CY8CKIT-145-40XX