all | frequencies |
|
|
exhibits | applications |
---|---|---|---|---|---|
manuals |
app s | submitted / available | |||||||
---|---|---|---|---|---|---|---|---|
1 |
|
Manual part 1 | Users Manual | 5.58 MiB | / January 01 2015 | |||
1 |
|
Manual part 2 | Users Manual | 4.64 MiB | / January 01 2015 | |||
1 | Operational Description | / January 01 2015 | ||||||
1 | Parts List/Tune Up Info | / January 01 2015 | ||||||
1 | Block Diagram | / January 01 2015 | ||||||
1 | RF Exposure Info | / January 01 2015 | ||||||
1 | External Photos | / January 01 2015 | ||||||
1 | Internal Photos | / January 01 2015 | ||||||
1 | ID Label/Location Info | / January 01 2015 | ||||||
1 | Cover Letter(s) | / January 01 2015 | ||||||
1 | Operational Description | / January 01 2015 | ||||||
1 | Cover Letter(s) | / January 01 2015 | ||||||
1 | Schematics | / January 01 2015 | ||||||
1 | Test Setup Photos | / January 01 2015 | ||||||
1 | Test Report | / January 01 2015 |
1 | Manual part 1 | Users Manual | 5.58 MiB | / January 01 2015 |
CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide Doc. # 001-93731 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 Copyrights Cypress Semiconductor Corporation, 2014. 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. 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 foreign), 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 may be limited by and subject to the applicable Cypress software license agreement. CySmart, F-RAM, PRoC, Programmable System-on-Chip, and PSoC Creator are trademarks, and PSoC and CapSense are registered trademarks of Cypress Semiconductor Corporation. All other products and company names mentioned in this document may be the trademarks of their respective holders. Purchase of I2C components from Cypress or one of its sublicensed Associated Companies conveys a license under the Philips I2C Patent Rights to use these components in an I2C system, provided that the system conforms to the I2C 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 features of our products. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 2 Contents Safety Information 6 1. Introduction 11 Kit Contents ...............................................................................................................11 1.1 Board Details .............................................................................................................12 1.2 1.3 PSoC Creator.........................................................................................................15 1.4 Getting Started...........................................................................................................16 Additional Learning Resources..................................................................................16 1.5 1.5.1 Beginner Resources.......................................................................................16 1.5.2 Application Notes ...........................................................................................16 1.5.3 PSoC Creator Example Projects....................................................................17 1.5.4 Component Datasheets .................................................................................17 1.5.5 Bluetooth Learning Resources.......................................................................17 1.5.6 Learning From Peers .....................................................................................17 1.5.7 Other Related Resources...............................................................................18 Technical Support......................................................................................................18 Documentation Conventions......................................................................................18 Acronyms...................................................................................................................19 1.6 1.7 1.8 2. Software Installation 20 Before You Begin.......................................................................................................20 Install Software ..........................................................................................................20 Uninstall Software......................................................................................................23 2.1 2.2 2.3 3. Kit Operation 3.1 3.2 3.3 3.4 24 Theory of Operation...................................................................................................24 BLE Pioneer Kit USB Connection..............................................................................26 Placing Modules on Baseboard .................................................................................26 Programming and Debugging BLE Device ................................................................27 3.4.1 Programming and Debugging using PSoC Creator .......................................27 3.4.2 Programming using PSoC Programmer.........................................................30 Updating BLE Dongle for CySmart PC Tool ..............................................................33 3.5 USB-UART Bridge .....................................................................................................36 3.6 USB-I2C Bridge .........................................................................................................37 3.7 3.8 Updating the Onboard PSoC 5LP Programmer Firmware.........................................40 3.9 Measure Coin Cell Power Consumption....................................................................40 4. Example Projects 4.1 4.2 42 Using Example Projects.............................................................................................42 CapSense Slider and LED.........................................................................................47 4.2.1 Project Description .........................................................................................47 4.2.2 Hardware Connections...................................................................................50 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 3 Contents 4.3 4.4 4.5 4.6 4.2.3 Flow Chart......................................................................................................51 4.2.4 Verify Output ..................................................................................................52 CapSense Proximity ..................................................................................................62 4.3.1 Project Description .........................................................................................62 4.3.2 Hardware Connections...................................................................................64 4.3.3 Flow Chart......................................................................................................66 4.3.4 Verify Output ..................................................................................................67 BLE Central Mode .....................................................................................................73 4.4.1 Project Description .........................................................................................73 4.4.2 Hardware Connections...................................................................................76 4.4.3 Flow Chart......................................................................................................77 4.4.4 Verify Output ..................................................................................................78 BLE Dongle and LED Control ....................................................................................81 4.5.1 Project Description .........................................................................................81 4.5.2 Hardware Connections...................................................................................82 4.5.3 Flow Chart......................................................................................................83 4.5.4 Verify Output ..................................................................................................84 Direct Test Mode (DTM) ............................................................................................84 4.6.1 Project Description .........................................................................................84 4.6.2 Hardware Connection ....................................................................................86 4.6.3 Verify Output ..................................................................................................87 88 Pioneer Baseboard ....................................................................................................88 5.1.1 PSoC 5LP ......................................................................................................88 5.1.2 Power System ................................................................................................88 5.1.3 Programming Interface...................................................................................94 5.1.4 Expansion Connectors ...................................................................................95 5.1.5 USB Mini-B Connector ...................................................................................98 5.1.6 CapSense Circuit ...........................................................................................99 5.1.7 Pioneer Board LEDs ....................................................................................101 5.1.8 Push Buttons................................................................................................102 5.1.9 Cypress Ferroelectric RAM (F-RAM) ...........................................................103 5.1.10 Serial Interconnection Between PSoC 5LP and BLE Module ......................104 5.1.11 Bluetooth Module Headers...........................................................................105 BLE Module Board...................................................................................................106 5.2.1 PSoC 4 BLE or PRoC BLE ..........................................................................106 5.2.2 Bluetooth Module Headers (20-Pin and 24-Pin Headers)............................107 5.2.3 Wiggle Antenna............................................................................................108 5.2.4 Antenna Matching Network ..........................................................................109 5.2.5 BLE Passives ...............................................................................................110 5.2.6 Test Points.................................................................................................... 111 BLE Dongle Board ...................................................................................................111 5.3.1 Power System ..............................................................................................112 5.3.2 USB Type A Plug .........................................................................................113 5.3.3 User LED......................................................................................................114 5. Hardware 5.1 5.2 5.3 6.1 6.2 6.3 6. Advanced Topics 115 Using PSoC 5LP as USB-UART Bridge ..................................................................115 Using PSoC 5LP as USB-I2C Bridge ......................................................................126 Developing Applications for PSoC 5LP ...................................................................134 6.3.1 Building a Bootloadable Project for PSoC 5LP ............................................134 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 4 Contents 6.3.2 Building a Normal Project for PSoC 5LP......................................................143 PSoC 5LP Factory Program Restore Instructions ...................................................144 6.4.1 PSoC 5LP is Programmed with a Bootloadable Application ........................144 Using FM24V10 F-RAM...........................................................................................150 6.5.1 Address Selection ........................................................................................151 6.5.2 Write/Read Operation ..................................................................................151 CySmart iOS/Android Application............................................................................152 CySmart PC Tool.....................................................................................................160 6.4 6.5 6.6 6.7 A. Appendix 168 Schematics ..............................................................................................................168 Board Layout ...........................................................................................................176 Bill of Materials (BOM).............................................................................................184 KitProg Status LED States.......................................................................................194 Adding BLE module compatible headers on your own baseboard ..........................195 A.1 A.2 A.3 A.4 A.5 Revision History 196 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 5 Safety Information The CY8CKIT-042-BLE Bluetooth Low Energy (BLE) 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. Due to 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 critical RF devices. The CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit is intended for use as a development, demonstration and evaluation platform for hardware or software in a laboratory environment. The kit is not intended for general consumer use. Cypress recommends that the kit only be used in a shielded room. 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-042-BLE boards contain electrostatic discharge (ESD) sensitive devices. Electrostatic charges readily accumulate on the human body and any equipment, which can cause a discharge without detection. Permanent damage may occur on devices subjected to high-energy discharges. Proper ESD precautions are recommended to avoid performance degradation or loss of functionality. Store unused CY8CKIT-042-BLE 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 your nearest recycler to discard the kit. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 6 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 the chassis ground (any unpainted metal surface) on the board when handling parts. Handling Boards CY8CKIT-042-BLE 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 available. Do not slide the board over any surface. Battery Care and Use Use the correct size and type of battery specified in this guide. Keep battery contact surfaces and battery compartment contacts clean by rubbing them with a clean pencil eraser or a rough cloth each time you replace batteries. Remove the battery from a device when it is not expected to be in use for several months. Make sure that you insert the battery into your device properly, with the + (plus) and (minus) terminals aligned correctly. Do not place the battery next to metallic objects such as keys and coins. Never throw the battery into fire. Do not open up the battery. Do not short the battery. Do not subject the battery to high temperatures or high humidity. Store the battery in a dry place. Do not recharge a battery unless it is marked rechargeable. Battery Disposal Batteries can be safely disposed of with normal household waste. Never dispose of batteries in fire because they can explode. It is important not to dispose of large amounts of batteries in a group. Used batteries are often not completely dead. Grouping used batteries together can bring these live batteries into contact with one another, creating safety risks. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 7 Regulatory Compliance Information The kit contains devices that transmit and receive radio signals in accordance with the spectrum regulations for the 2.4-GHz unlicensed frequency range. Cypress Semiconductor Corporation has obtained regulatory approvals for this kit to be used in specific countries. These countries include United States (FCC Part 15), Canada (IC RSS210) and Japan (JRF/ TELEC). Additional regional regulatory agency approval may be required to operate these throughout the world. This kit as shipped from the factory has been tested and found to comply with the limits/
requirements for following compliances:
FCC as a class B digital device, pursuant to part 15 of the FCC Rules. This Class B digital apparatus complies with Canadian ICES-003 CAUTION: Any changes or modifications not expressly approved by the party responsible for compliance could void the users authority to operate the equipment. Only the PCB antenna(s) that were certified with the module may be used. Other antennas may be used only if they are of the same type and have the same or lower gain. The module must be recertified as a Class II permissive change if the module is built into a different device than the EVB (evaluation board) it was certified with THE MANUFACTURER IS NOT RESPONSIBLE FOR ANY RADIO OR TV INTERFERENCE CAUSED BY UNAUTHORIZED MODIFICATIONS TO THIS EQUIPMENT. SUCH MODIFICATIONS COULD VOID THE USER'S AUTHORITY TO OPERATE THE EQUIPMENT. Regulatory statements and Product Labeling United States (FCC) This equipment complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. The CY8CKIT-142 PSoC 4 BLE and CY5671 PRoC BLE modular transmitter must be labeled with its own FCC ID number, and, if the FCC ID is not visible when the module is installed in to another device, then the outside of the device into which the module is installed must also display a label referring to the enclosed module. This exterior label can use wording such as the following:
Contains FCC ID: WAP-CY8CKIT-142 and WAP-CY5671, The enclosed device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference and (2) this device must accept any interference received, including interference that may cause undesired operation. Any similar wording that expresses the same meaning may be used. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 8 CAUTION: The changes or modifications not expressly approved by the party responsible for Compliance could void the users authority to operate the equipment and must not be co-located or operating in conjunction with any other antenna or transmitter. Canada (IC) This device complies with Industry Canada license-exempt RSS standard(s). Operation is subject to the following two conditions: (1) this device may not cause interference, and (2) this device must accept any interference, including interference that may cause undesired operation of the device. This equipment complies with radio frequency exposure limits set forth by Industry Canada for an uncontrolled environment. CAUTION: Any changes or modifications not expressly approved by the party responsible for com-
pliance could void the users authority to operate the equipment. This Module is labelled with its own IC ID. If the IC ID Certification Number is not visible while installed inside another device, then the device should display the label on it referring the enclosed module. In that case, the final end product must be labelled in a visible area with the following:
Contains Transmitter Module IC 7922A-CY8CKIT142 and 7922A-CY5671 OR Contains IC: 7922A-CY8CKIT142 and 7922A-CY5671 Le prsent appareil est conforme aux CNR d'Industrie Canada applicables aux appareils radio exempts de licence. L'exploitation est autorise aux deux conditions suivantes: (1) l'appareil ne doit pas produire de brouillage, et (2) l'utilisateur de l'appareil doit accepter tout brouillage radiolectrique subi, mme si le brouillage est susceptible d'en compromettre le fonctionnement. Cet quipement est conforme aux limites d'exposition aux radiofrquences dfinies par Industrie Canada pour un environnement non contrl. Ce module est tiquet avec son propre ID IC. Si le numro de certification IC ID n'est pas visible lorsqu'il est install l'intrieur d'un autre appareil, l'appareil doit afficher l'tiquette sur le module de rfrence ci-joint. Dans ce cas, le produit final doit tre tiquet dans un endroit visible par le texte suivant:
Contains Transmitter Module IC 7922A-CY8CKIT142 and 7922A-CY5671 OR Contains IC: 7922A-CY8CKIT142 and 7922A-CY5671 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 9 Japan (TELEC) CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 10 1. Introduction Thank you for your interest in the CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit. This kit is designed to showcase the functionality and ease-of-use of the PSoC 4 BLE and PRoC BLE devices while developing Bluetooth Low Energy (Bluetooth Smart) applications. Cypress's BLE solu-
tion has an easy-to-use, intuitive GUI to configure the BLE protocol stack using the BLE component available in the Cypress standard integrated development environment (IDE), PSoC Creator. The CySmart PC tool allows emulation of a BLE Central device and quick access to peripheral connec-
tions and debugging. The solution is a true single-chip solution with an integrated balun, Cypress's industry-leading capacitive sensing technology, an analog front end (AFE) for biometric sensors, and digital peripherals suited to a wide variety of applications. Designed for flexibility, this kit offers foot-
print compatibility with several third-party Arduino shields. The kit includes a provision to populate an extra header to support Digilent Pmod peripheral modules. In addition, the board features a CapSense slider, an RGB LED, a push-button switch, an integrated USB programmer, a program and debug header, an F-RAM, and USB-UART/I2C bridges. 1.1 Kit Contents The BLE Pioneer Kit contains the following items, as shown in Figure 1-1. BLE Pioneer Baseboard preloaded with the CY8CKIT-142 PSoC 4 BLE Module CY5671 PRoC BLE Module CY5670 CySmart USB Dongle Quick start guide USB standard A to mini-B cable Four jumper wires (4 inch) and two proximity sensor wires (5 inch) Coin cell CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 11 Figure 1-1. Kit Contents Introduction If any part of the kit is missing, contact your nearest Cypress sales office for help: www.cypress.com/
go/support. 1.2 Board Details The BLE Pioneer baseboard consists of the blocks shown in Figure 1-2. 1. RGB LED 2. BLE module reset button 3. CapSense proximity header 4. User button 5. CapSense slider 6. Arduino compatible I/O header (J2) 7. Arduino compatible power header (J1) 8. Digilent Pmod compatible I/O header (J5) 9. Cypress F-RAM 1 Mb (FM24V10-G) 10.PSoC 5LP - programmer and debugger (CY8C5868LTI-LP039) 11. PSoC 5LP I/O header (J8) 12.Coin cell holder (bottom side) 13.USB connector (J13) 14.Power LED 15.Status LED 16.System power supply jumper (J16) - LDO 1.9 V~5 V 17.Arduino compatible I/O header (J3/J4) CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 12 18.BLE power supply jumper (J15) - for current measurement 19.BLE module headers (J10/J11) Figure 1-2. BLE Pioneer Baseboard Introduction CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 13 Figure 1-3 shows a markup of the onboard components, where red BLE module denotes the PSoC 4 BLE module and black BLE module denotes the PRoC BLE module. Figure 1-3. BLE Module Markup Introduction
CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 14 The dongle board consists of the blocks shown in Figure 1-4. Figure 1-4. BLE Dongle Markup Introduction
1.3 PSoC Creator PSoC Creator is a state-of-the-art, easy-to-use integrated design environment (IDE). It is a revolutionary hardware and software co-design environment, powered by a library of preverified and precharacterized PSoC Components. With PSoC Creator, you can:
Drag and drop PSoC Components to build a schematic of your custom design Automatically place and route components and configure GPIOs Develop and debug firmware using the included component APIs 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-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 15 Introduction 1.4 1.5 1.5.1 1.5.2 Getting Started This guide will help you get acquainted with the BLE Pioneer Kit:
The Software Installation chapter on page 20 describes the installation of the kit software. This includes the PSoC Creator IDE for development and debugging applications, PSoC Programmer for programming hex files, and the CySmart PC tool for BLE host emulation. The Kit Operation chapter on page 24 describes the major features of the BLE Pioneer Kit such as USB-UART and USB-I2C bridges and functionalities such as programming and debugging. The Example Projects chapter on page 42 describes multiple PSoC 4 BLE and PRoC BLE code examples that will help you understand how to create your own BLE application using the BLE component and device. The Hardware chapter on page 88 details the hardware content of the kit and dongle, and the hardware operation. The Advanced Topics chapter on page 115 explains the functionality of the kit features, such as the USB-UART bridge, USB-I2C bridge, F-RAM, iOS app, and the CySmart PC tool. The Appendix on page 168 provides schematics, board layouts, KitProg LED status, and the bill of materials (BOM). Additional Learning Resources Visit www.cypress.com/go/psoc4ble and www.cypress.com/procble for additional learning resources including datasheets, technical reference manuals, and application notes. Visit www.cypress.com/go/cysmart for information on the CySmart PC tool. Beginner Resources PSoC Creator Training: www.cypress.com/go/creatorstart/creatortraining Application Notes Visit www.cypress.com/appnotes to view a growing list of application notes for PSoC 3, PSoC 4, PSoC 4 BLE, PRoC BLE, and PSoC 5LP. Visit this site for PSoC 4BLE and PRoC BLE application notes. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 16 1.5.3 PSoC Creator Example Projects These simple example projects demonstrate how to configure and use PSoC Creator components. To open an example project in PSoC Creator, go to File > Example Project (see Figure 1-5) and choose the required example project. Figure 1-5. PSoC Creator Example Projects Introduction 1.5.4 Component Datasheets Right-click a component and select Open Datasheet (see Figure 1-6). Visit this page for the BLE component datasheet. Figure 1-6. Opening Component Datasheet 1.5.5 Bluetooth Learning Resources The Bluetooth Developer Portal provides material by the Special Interest Group (SIG) for learning various aspects of the Bluetooth Low Energy protocol and systems. Some of them are:
Training videos GATT profiles Bluetooth community forum 1.5.6 Learning From Peers Cypress Developer Community Forums: Visit www.cypress.com/forums CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 17 Introduction 1.5.7 1.6 Other Related Resources Digilent PMod: www.digilentinc.com/pmods/
Arduino: http://arduino.cc/en/Main/ArduinoBoardUno Technical Support For assistance, go to our support web page, www.cypress.com/support, or contact our customer support at +1 (800) 541-4736 Ext. 2 (in the USA) or +1 (408) 943-2600 Ext. 2 (International). 1.7 Documentation Conventions Table 1-1. Document Conventions for Guides Convention Courier New Italics
[Bracketed, Bold]
File > Open Bold Times New Roman Text in gray boxes Usage Displays file locations, user entered text, and source code:
C:\...cd\icc\
Displays file names and reference documentation:
Read about the sourcefile.hex file in the PSoC Creator User Guide. Displays keyboard commands in procedures:
[Enter] or [Ctrl] [C]
Represents menu paths:
File > Open > New Project Displays commands, menu paths, and icon names in procedures:
Click the File icon and then click Open. Displays an equation:
2 + 2 = 4 Describes cautions or unique functionality of the product. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 18 1.8 Acronyms Table 1-2. Acronyms Used in this Document Acronym Definition Introduction ADC API BD address BLE CD CDC COM DVD ESD F-RAM GUI GPIO I2C IAS IDAC IDE ISO LDO LED LP LPT PrISM PRoC PRM PSoC PWM QFN RGB SAR SPI SWD UART USB USB CDC Analog-to-Digital Converter Application Programming Interface Bluetooth Device address Bluetooth Low Energy Compact Disc Communications Device Class Communication Port Digital Video Disc Electrostatic Discharge Ferroelectric Random Access Memory Graphical User Interface General Purpose Input/Output Inter-Integrated Circuit Immediate Alert Service Interconnecting Digital-Analog Converter Integrated Development Environment International Organization for Standardization Low Drop Out (voltage regulator) Light-Emitting Diode Low Power Line Print Terminal Precise Illumination Signal Modulation Programmable Radio-on-Chip Protocol Service Multiplexer Programmable Systems-on-Chip Pulse-Width Modulation Quad Flat No-lead (package) Red Green Blue Successive Approximation Register Serial Peripheral Interface Serial Wire Debug Universal Asynchronous Receiver Transmitter Universal Serial Bus Universal Serial Bus Communications Device Class CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 19 2. Software Installation 2.1 2.2 This chapter describes the steps to install the software tools and packages on a PC for using the BLE Pioneer Kit. This includes the IDE in which the projects will be built and used for programming the kit. Before You Begin All Cypress software installations require administrator privileges. Ensure you have the required privileges on the system for successful installation. Before you install the kit software, close any other Cypress software that is currently running. Install Software Follow these steps to install the BLE Pioneer Kit software:
1. Download the BLE Pioneer Kit software from www.cypress.com/CY8CKIT-042-BLE. The kit software is available in the following formats:
a. CY8CKIT-042-BLE Kit 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-042-BLE 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-042-BLE DVD ISO: This file is a complete package, stored in a DVD-ROM image format, that 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 similar to a virtual CD/DVD using virtual drive programs such as Virtual CloneDrive and MagicISO. This file includes all the required software, utilities, drivers, hardware files, and user documents. 2. If you have downloaded the ISO file, mount it on a virtual drive; if you do not have a virtual drive to mount, extract the ISO contents using the appropriate ISO extractor (such as MagicISO or PowerISO). Double-click cyautorun.exe in the root directory of the extracted content or 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 Setup or Kit Only file, then go to step 4 for installation. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 20 3. Click Install CY8CKIT-042-BLE Kit to start the kit installation, as shown in Figure 2-1. Figure 2-1. Kit Installer Screen Software Installation 4. Select the folder in which you want to install the CY8CKIT-042-BLE kit-related files. Choose the directory and click Next. 5. When you click Next, the CY8CKIT-042-BLE Kit installer automatically installs the required software, if it is not present on your computer. The following software packages are required:
Note: For the Setup Only installer package, download and install the following prerequisites. a. PSoC Creator 3.1 or later: Download the latest version from www.cypress.com/psoccreator. b. PSoC Programmer 3.21.1 or later: This is installed as part of PSoC Creator installation
(www.cypress.com/programmer). c. CySmart 1.0 or later: Download the latest version from www.cypress.com/go/cysmart. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 21 6. Choose the Typical/Custom/Complete installation type in the Product Installation Overview window, as shown in Figure 2-2. Click Next after you select the installation type. Figure 2-2. Product Installation Overview Software Installation 7. Read the license agreement and select I accept the terms in the license agreement to continue with installation. Click Next. 8. 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. 9. Click Finish to complete the CY8CKIT-042-BLE kit installation. 10.Enter your contact information or select the Continue Without Contact Information check box. Click Finish to complete the CY8CKIT-042-BLE kit installation. 11. After the installation is complete, the kit contents are available at the following location:
<Install_Directory>\CY8CKIT-042-BLE Kit Default location:
Windows 7 (64-bit): C:\Program Files (x86)\Cypress\CY8CKIT-042-BLE Kit Windows 7 (32-bit): C:\Program Files\Cypress\CY8CKIT-042-BLE Kit Note: For Windows 7/8/8.1 users, the installed files and the folder are read only. To use the installer example project, follow the steps outlined in the Example Projects chapter on page 42. The kit installer also installs the CySmart PC tool for PC. This software, along with the dongle, allows the PC to emulate as a BLE Central device. Refer to CySmart PC Tool on page 160 for more details on how to use the CySmart PC tool. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 22 Software Installation 2.3 Uninstall Software The software can be uninstalled using one of the following methods:
Go to Start > All Programs > Cypress > Cypress Update Manager > Cypress Update Manager; select the Uninstall button. Go to Start > Control Panel > Programs and Features for Windows 7 or Add/Remove Programs for Windows XP; select the Uninstall/Change button. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 23 3. Kit Operation This chapter introduces you to the BLE Pioneer kit and the features that will be used as part of the kit operation. We will discuss features such as USB connection, programming/debugging, and programmer firmware update. The chapter also describes the USB-UART and USB-I2C bridges along with the PC tools that can be used to communicate with the BLE device on the kit. 3.1 Theory of Operation Figure 3-1, Figure 3-2, and Figure 3-3 show the block diagrams for the BLE Pioneer baseboard, BLE module board, and BLE dongle. Figure 3-1. BLE Pioneer Baseboard Block Diagram BLE/Arduino Compatible Headers Status LED Green PSoC 5LP 10 pin Prog. header Reset SW
(Push Button) User SW
(Push Button) BLE SWD 10 pin Prog. header Proximity wire connector USB Mini B D+ / D-
VBUS PSoC 5LP Programmer/Serial Communication BLE Reset SWD I2C / SPI / UART ESD Protection PSoC 5LP I/Os 16 pin Expansion header Power LED Red MOSFET Protection ckt FRAM I2C I2C pull-up via FET RGB LED VCC LDO ORing Diodes VDD Jumper BLE current measuring
~3V BLE Module I/Os 24 pin header PRoC BLE/
PSoC 4 BLE BLE Module I/Os 20 pin header ORing Diodes Voltage Ctrl 3 pin Jumper Coin cell Battery holder MOSFET Protection ckt PMOD header 6 pin PMOD header CapSense Slider 5 Segment VIN 3.3V BLE/Arduino Compatible Headers The BLE Pioneer board acts as the baseboard for the PSoC 4 BLE (red module) and PRoC BLE
(black module). The Pioneer board contains a PSoC 5LP that is used as an onboard programmer or debugger, and for the USB-Serial interface. The baseboard is Arduino form-factor compatible, enabling Arduino shields to be connected on top of the board to extend the functionality of BLE modules. The board also features a 1-Mb F-RAM, an RGB LED, a five-segment CapSense slider, a proximity header, a user switch, and a reset switch for the PSoC 4 BLE and PRoC BLE devices on the module. The Pioneer board supports three voltage levels: 1.9 V, 3.3 V, and 5 V. The baseboard can also be used as a standalone programmer to program and debug other PSoC 4 BLE/PRoC BLE devices using serial wire debug (SWD), and as a USB-Serial bridge. The firmware on PSoC 5LP device enables bootloading PSoC 5LP over USB to upgrade the firmware. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 24 Kit Operation Figure 3-2. BLE Module Block Diagram BLE I/Os 20 pin Header (Digital, Power and Ground Pins) KHz Crystal MHz Crystal 4 pin header Power GPIO Decaps VREF PRoC BLE/
PSoC 4 BLE RX/ TX/ Gnd Test points VDDD/A/R Decaps Power GPIO Power Ferrite Bead SAR Bypass Cap CMOD CTANK RF matching BLE I/Os 24 pin Header (Analog, Power and Ground Pins) This kit includes two modules boards. These boards act as a basic breakout board for the CY8C4247LQI-BL483 and CYBL10563-56LQXI BLE silicon. The PSoC 4 BLE and PRoC BLE Modules are identical except for the silicon. In addition to including the PSoC 4 BLE and PRoC BLE devices, the module boards also contain the BLE passives (resistors, capacitors, external crystals, and antenna-matching network), an onboard antenna, and headers for connecting to the baseboard. The BLE dongle is the host's wireless interface for the BLE device or project on the baseboard. The dongle has a PRoC BLE device, to allow BLE connection with other kits. It also contains a PSoC 5LP, to be used as an onboard programmer or debugger, and for the USB-Serial interface, as shown in Figure 3-3. The dongle has a USB A-type plug to connect the PSoC 5LP to the USB port of the host PC. The PSoC 5LP then communicates with the PRoC BLE device over UART or multiplexed I2C or an SPI bus. The board also features a user LED, a user switch, and a reset switch for the PRoC BLE device. The dongle is powered directly through the USB port (VBUS) at 5.0 V. The BLE dongle can also be used as a standalone programmer to program and debug other PSoC devices (outside the dongle board) using SWD, and as a USB-Serial bridge after removing the resistor between the SWD pins of PSoC 5LP and PRoC BLE. Figure 3-3. BLE Dongle Block Diagram USB 2.0 Type-A Plug Power PSoC 5LP 68QFN D+ / D-
SWD I2C UART SPI EXTRA GPIO Protection Circuits STATUS LED POWER LED Test Points CRYSTALS MATCHING CIRCUIT USER Button USER LED XRES Button PRoC BLE 56QFN RF SWD 10-Pin Programming XRES Header CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 25 Kit Operation 3.2 BLE Pioneer Kit USB Connection The BLE Pioneer kit connects to and powers from a PC over the USB interface (J13). The kit enu-
merates as a composite device, as shown in Table 3-1. Note: Ensure that you install the kit installer on the system for successful enumeration. To download and install the BLE Pioneer Kit, visit www.cypress.com/go/CY8CKIT-042-BLE. Table 3-1. BLE Pioneer Kit Enumerated Interfaces Port Description USB Composite Device USB Input Device KitProg KitProg USB-UART Composite device Programmer and debugger USB-I2C bridge, programmer USB-UART bridge, which appears as a COM# port Figure 3-4. KitProg Driver Installation (appearance may differ depending on Windows platform) 3.3 Placing Modules on Baseboard Plug the BLE module into the baseboard on headers J10 and J11, while keeping the antenna directed outside of the baseboard. Note that the two parallel headers J10 and J11 are not equal
(24-pin and 20-pin, respectively) and will not allow the BLE module to be inserted in the opposite direction. Figure 3-5. Baseboard with J10 and J11 Headers to Connect BLE Modules CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 26 To remove the BLE modules from the BLE Pioneer kit, hold the BLE Pioneer kit in one hand and the BLE module in the other, as shown in Figure 3-6, and pull it out using a rocking motion. Figure 3-6. Remove BLE Module Connected on BLE Pioneer Kit Kit Operation 3.4 3.4.1 Programming and Debugging BLE Device The BLE Pioneer kit and BLE dongle can be programmed and debugged using the onboard PSoC 5LP programmer and debugger. Before programming the device, ensure that PSoC Creator and PSoC Programmer are installed on the PC. See the section Install Software on page 20 for more information. Programming and Debugging using PSoC Creator 1. To program the BLE Pioneer kit, plug the USB cable into the programming USB connector, J13, and connect it to the USB port on the PC, as shown in Figure 3-7. The kit will enumerate as a composite device. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 27 Figure 3-7. Connect USB Cable to J13 Kit Operation 2. To program the BLE dongle, plug the dongle into the USB port of the PC, as shown in Figure 3-8. The dongle will enumerate as a composite device. Figure 3-8. Connect BLE Dongle to PC 3. The onboard PSoC 5LP uses SWD to program the PSoC 4 BLE or PRoC BLE device. See Figure 3-9 for this implementation. Figure 3-9. SWD Programming PSoC 4 BLE/PRoC BLE using PSoC 5LP Mini USB D+
D-
PSoC 5LP SWDCLK SWDIO Reset PSoC 4 BLE/
PRoC BLE CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 28 Kit Operation 4. To load the desired example project, open PSoC Creator and go to File > Open > Project/
Workspace. This will provide the option to browse to and open your saved project. 5. Build the project by choosing Build > Build <Project Name> or [Shift] [F6], as shown in Figure 3-10. Figure 3-10. Build an Example Project 6. If there are no errors during build, program the firmware into the kit by choosing Debug >
Program or pressing [Ctrl] [F5], as shown in Figure 3-11. This will program the device on the BLE Pioneer Kit/BLE dongle and it will be ready for use. If debugging is needed on the project, go to step 6. Figure 3-11. Programming Device From PSoC Creator 7. To debug the project using PSoC Creator, choose Debug > Debug or press [F5]. 8. When the project is built and programmed into the device on the BLE Pioneer kit/BLE dongle, PSoC Creator will enter the Debug mode; you can use it to debug your application. For more details on using the debug features, see the Cypress application note Getting Started with PSoC 4 BLE. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 29 Kit Operation 3.4.2 Programming using PSoC Programmer PSoC Programmer (3.21 or later) can be used to program existing hex files into the BLE Pioneer kit or BLE dongle. To do this, follow these steps. 1. To program the BLE Pioneer kit, plug the USB cable into the programming USB connector, J13, and connect it to the PC USB port, as shown in Figure 3-7. The kit will enumerate as a composite device. Figure 3-12. Connect BLE Pioneer Kit to PC 2. To program the BLE dongle, plug the dongle to the USB port of the PC, as shown in Figure 3-13. The kit will enumerate as a composite device. Figure 3-13. Connect BLE Dongle to PC 3. Go to Start > All Programs > Cypress > PSoC Programmer <version> > PSoC Programmer
<version>. The PSoC Programmer window will open as shown in Figure 3-13. Note: BLE projects support PSoC Programmer 3.21 or later. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 30 Figure 3-14. PSoC Programmenr GUI Kit Operation 4. Click the File Load button at the top left corner of the window. Browse for the desired hex file and click Open. Figure 3-15. Select Hex File 5. Go to File > Program to start programing the kit with the selected file. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 31 Note: If the hex file for a device is selected and programmed on the kit with a different device, then PSoC Programmer will throw an error of device mismatch and terminate programming. Figure 3-16. Program Hex File to Kit Kit Operation 6. When the programming is finished successfully, indicated by a PASS message on the status bar, the kit is ready for use. Close PSoC Programmer. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 32 Kit Operation 3.5 Updating BLE Dongle for CySmart PC Tool The dongle, shown in Figure 3-17, provides a BLE Central mode capability using the CySmart PC tool (see CySmart PC Tool on page 160) on the PC. The CySmart PC tool is used to connect and validate the example projects loaded on the BLE Pioneer Kit (baseboard with one of the modules) through BLE. The CySmart PC tool on the PC is the interface with which to configure the dongle and analyze the BLE data transferred after connecting with a BLE peripheral. Figure 3-17. Dongle After being connected to the PC through the USB port, the dongle enumerates as a composite device, similar to the BLE Pioneer kit. When enumerated, it allows similar features, such as programming/debugging of the onboard PRoC BLE, USB-UART bridge, and USB-I2C bridge. Additionally, the interface is used to communicate with the CySmart PC tool and emulate a BLE Central device on PRoC BLE. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 33 Kit Operation The dongle works along with the CySmart PC tool, as shown in Figure 3-18. The CySmart PC tool is installed as part of the BLE Pioneer Kit installation and can be opened from Start > All Programs >
Cypress > CySmart <version> > CySmart <version>. The tool operation is explained in CySmart PC Tool on page 160. Figure 3-18. Dongle Interface on CySmart PC Tool If the dongle contains custom firmware on PRoC BLE, the original CySmart firmware can be programmed back to restore the CySmart functionality. It is not required to use the 10-pin programming header on the dongle for this purpose. The dongle must be connected through the USB and enumerated as KitProg. To do this, follow these steps:
1. Connect the dongle to the USB port on the PC. 2. Open PSoC Programmer by going to Start > All Programs > Cypress > PSoC Programmer
<version> > PSoC Programmer <version>. 3. When PSoC Programmer opens, it will automatically detect the KitProg on the dongle. Note that every BLE dongle KitProg ID will start with the string 'BLE'. Click the File Load button and browse to the location of the BLE_Dongle_CySmart.hex file. The hex file is located at:
C:\Program Files (x86)\Cypress\CY8CKIT-042-BLE Kit\<version>\Firmware\
BLE Dongle\Hex Files\
Note: If Cypress releases new versions of the CySmart PC tool and the BLE dongle firmware, then the CySmart PC tool will display a message requesting to update the firmware on the BLE dongle, as shown in the following figures. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 34 Figure 3-19. Update Dongle Firmware with Hex from Latest Kit Installer Kit Operation Figure 3-20. Update Dongle Firmware with Hex from Web In this scenario, choose the hex file from the respective location and update the dongle firmware with the following steps. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 35 Figure 3-21. Open Hex File Kit Operation 4. Ensure the other settings match as shown in Figure 3-21. Click the Program button to start programming. The status bar at the bottom of the PSoC Programmer window will show the programming status and the result (Pass/Fail). Figure 3-22. Programming Hex File to Dongle 3.6 5. After programming is completed successfully, the dongle firmware is updated and can be used to connect to the CySmart PC tool. USB-UART Bridge The onboard PSoC 5LP on both the baseboard and dongle acts as a USB-UART bridge to transfer and receive data from the PSoC 4 BLE or PRoC BLE device to the PC via the COM terminal software. When the USB mini-B cable is connected to J13 of the baseboard or the dongle is connected to the PC, a device named KitProg USB-UART is available under Ports (COM & LPT) in the Device Manager. To use this functionality, a project supporting UART communication must be created on the BLE device. More details are available in the section Using PSoC 5LP as USB-UART Bridge on page 115. For both the baseboard and the dongle, the UART lines are hardwired onboard between the PSoC 5LP and BLE Modules. No external UART connection between the two devices is needed. Simply CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 36 place the UART component in the PSoC 4 BLE or PRoC BLE and assign the UART pins as shown in Table 3-2. Kit Operation Table 3-2. UART Pin Assignment in BLE Devices for USB-UART Bridge Pin BLE Pioneer Kit BLE Dongle UART_RX UART_TX P1_4 P1_5 P1_4 P1_5 Table 3-3 lists the specifications supported by the USB-UART bridge. Table 3-3. Specifications Supported by USB-UART Bridge Parameter Baud Rate Data Bits Parity Stop Bits Flow Control File Transfer Protocols sup-
ported Supported Values 1200, 2400, 4800, 9600, 19200, 38400, 57600, and 115200 8 None 1 None Xmodem, 1K Xmodem, Ymodem, Kermit, and Zmodem (only speeds greater than 2400 baud) 3.7 USB-I2C Bridge The PSoC 5LP also functions as a USB-I2C bridge. In this role, PSoC 5LP communicates with PSoC 4 BLE/PRoC BLE using an I2C interface, and sends that data over the USB to the USB-I2C software utility running on the PC, called the Bridge Control Panel (BCP). This feature is available for both the BLE Pioneer Kit and the BLE dongle. The BCP is available as part of the PSoC Programmer installation. This software can be used to send and receive USB-I2C data from the PSoC 5LP. When the USB mini-B cable is connected to header J13 on the BLE Pioneer Kit or when the dongle is connected to the PC, the KitProg USB-I2C is available under Connected I2C/SPI/RX8 Ports in the BCP, as shown in Figure 3-23. To open BCP in your system, go to Start > All Programs > Cypress > Bridge Control Panel. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 37 Figure 3-23. Bridge Control Panel Kit Operation To use the USB-I2C functionality, select the KitProg USB-I2C in the BCP. On successful connection, the Connected and Powered tabs turn green, as shown in Figure 3-24. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 38 Figure 3-24. KitProg USB-I2C Connected in Bridge Control Panel Kit Operation USB-I2C is implemented using the USB and I2C components of PSoC 5LP. For the BLE Pioneer Kit, the SCL (P12_0) and SDA (P12_1) lines from the PSoC 5LP are connected to the SCL (P3_5) and SDA (P3_4) lines of the BLE module header. For the dongle, the SCL (P12_0) and SDA (P12_1) lines from the PSoC 5LP are connected to the SCL (P3_5) and SDA (P3_4) lines. The USB-I2C bridge currently supports I2C speed of 50 kHz, 100 kHz, 400 kHz, and 1 MHz. See Using PSoC 5LP as USB-I2C Bridge on page 126 to build a project that uses the USB-I2C bridge functionality. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 39 Kit Operation 3.8 Updating the Onboard PSoC 5LP Programmer Firmware The BLE Pioneer kit and BLE dongle contains the PSoC 5LP programmer (KitProg) required for pro-
gramming, debugging and communication over the COM port. The KitProg normally does not require any update. If an update is required, then PSoC Programmer will display a warning message when the kit or dongle is connected to it, as shown in Figure 3-25. Figure 3-25. Update KitProg To update the KitProg, go to the Utilities tab on PSoC Programmer and click Upgrade Firmware, as shown in Figure 3-26. Figure 3-26. Update KitProg from PSoC Programmer 3.9 Measure Coin Cell Power Consumption To measure the power consumption of a project with coin cell, connect the coin cell directly to the BLE modules, as shown in Figure 3-27. The baseboard is designed with additional circuits to protect the PSoC 4 BLE/PRoC BLE device and the F-RAM in Arduino environment. Note that power consumption measurements on the baseboard will also include the power consumed by these additional circuits. After you have programmed your application on the CY8CKIT-142 PSoC 4 BLE Module or the CY5671 PRoC BLE Module, remove the BLE module from the baseboard and connect the coin cell
(Figure 3-27). This setup enables an accurate power consumption measurement for the application. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 40 Kit Operation The other pins on the BLE module can be used to build the desired application. Connect the positive terminal of the coin cell to pin J2.2 and negative terminal to pin J2.4 using wires. Figure 3-27. Powering the BLE Module using a Coin Cell Connect an ammeter in series with the battery to measure the power consumption as shown in Figure 3-28. Figure 3-28. Current Measurement of BLE Module when Powered from a Coin Cell CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 41 4. Example Projects This chapter demonstrates the functionality of the PSoC 4 BLE and PRoC BLE devices using the BLE Pioneer kit-based example projects. To access these example projects, download and install the kit setup file from the kit web page. The example projects are available in the firmware folder under the installed directory. The Cypress BLE device comes in two variants:
PSoC 4 BLE: The PSoC 4 BLE product family is the new wireless member of the PSoC 4 architecture platform. The family provides a full programmable analog and digital system and a complete schematic view of PSoC Creator. The PSoC 4 BLE family provides a 32-bit ARM Cortex-M0 based MCU subsystem with programmable analog and digital peripherals, such as universal digital blocks (UDBs), 12-bit SAR ADC, opamp, LP comparator, IDACs, UART, I2C, SPI, and timer/counter/PWM block. It also has a dedicated CapSense block (in select part numbers) to implement the touch-sensing solution, with a practical system SNR of 100:1. PRoC BLE: This family provides prebuilt part numbers for applications such as human interface devices (HID), remote control, trackpad, and toys. PRoC BLE also supports up to two-finger gestures for trackpad and remote control applications. The PRoC BLE product family enriches the PRoC wireless capacitive touch devices with the Bluetooth Low Energy protocol. The PRoC BLE family has embedded gestures (in select part numbers) to implement the touch-sensing solution for trackpad implementation. It also provides a 32-bit ARM Cortex-M0 based MCU subsystem with analog and digital peripherals, such as 12-bit SAR ADC, UART, I2C, PWMs, and timer/counter/PWM blocks. The family uses a special PSoC Creator schematic view for easy configuration of PRoC BLE devices. 4.1 Using Example Projects Follow these steps to open and use the example projects:
1. Launch PSoC Creator from Start > All Programs > Cypress > PSoC Creator 3.1 > PSoC Creator 3.1. 2. On the Start Page, choose Examples and Kits > Kits > CY8CKIT-042-BLE. A list of example projects appears, as shown in Figure 4-1. Projects named with the prefix 'PSoC_4_BLE_' work on the BLE Pioneer kit with the PSoC 4 BLE Module; projects named with the prefix
'PRoC_BLE_' work on the BLE Pioneer kit with the PRoC BLE Module. 3. Click on the desired example project. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 42 Figure 4-1. Open Example Project from PSoC Creator Example Projects 4. Select the folder where you want to save the project and click OK. 5. BLE projects use a public device address set in the BLE component GUI to advertise and scan, depending on the role: peripheral or central mode. If there are other kits in close proximity, which have the same public device address, then wrong devices may be connected or connections can fail. To prevent this, you can change the Public device address (and preferably Device name) in the BLE component. To do this, double-click the BLE component in TopDesign, go to the GAP Settings tab, and choose the General setting. Add the desired public device address (non-zero) and device name in the respective fields, as shown in Figure 4-2. Click OK. Alternatively, you can select the 'Silicon generated' device address by selecting the check box. This way, the BD address is generated using the silicon ID, unique to each silicon. Click OK. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 43 Figure 4-2. Change BLE Public Device Address and Name Example Projects 6. Build the example project by choosing Build > Build <Project Name>, as shown in Figure 4-3. A hex file will be generated. Figure 4-3. Build Project from PSoC Creator 7. To program the kit with this example project, connect the baseboard to the PC by plugging it into the USB mini-B connector (J13) on the baseboard, as described in BLE Pioneer Kit USB Connection on page 26. Ensure that the correct BLE Module (PSoC 4 BLE or PRoC BLE) is placed on the baseboard, depending on the project opened. 8. Choose Debug > Program in PSoC Creator, as shown in Figure 4-4. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 44 Figure 4-4. Program Device in PSoC Creator Example Projects 9. If the device is not yet acquired, PSoC Creator will open the programming window. Select KitProg and click the Port Acquire button, as shown in Figure 4-5. Note: The string following 'KitProg' is the serial ID for the programmer on the kit. Each kit will have a unique serial ID. If various kits are connected to the same system, the serial ID can be used to select the correct kit to program the firmware. Additionally, the serial ID starting with 'BLE'
belongs to the dongle (see Updating BLE Dongle for CySmart PC Tool on page 33) and provides visual confirmation for dongles connected to the system. Figure 4-5. Port Acquire 10.After the device is acquired, it is shown in a structure below the KitProg. Click the Connect but-
ton and then OK to exit the window and start programming, as shown in Figure 4-6. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 45 Figure 4-6. Connect Device From PSoC Creator and Program Example Projects Note: As stated previously, the BLE Pioneer kit supports both Cypress BLE devices: PSoC 4 BLE and PRoC BLE. Thus, there are two versions of each of the kit example projects demonstrating the same functionality. Projects named with the prefix PSoC_4_BLE_ work with the PSoC 4 BLE Module placed on the baseboard. Projects named with the prefix PRoC_BLE_ work with the PRoC BLE Module placed on the baseboard. Ensure that the correct module is placed on the baseboard before programming the device with the corresponding kit example projects. The description, hardware configurations, and verification method of the kit example projects explained in the following sections are valid for both PSoC 4 BLE and PRoC BLE devices. Unless explicitly mentioned, the theory and usability for these example projects should be considered the same for both the modules/devices. This document refers to the BLE Pioneer kits, dongle, and PC/mobile as BLE Central or peripheral devices. A BLE Central device is normally the master and requests/commands data from the peripheral device. BLE-enabled phones and PCs are one such example. BLE peripheral devices, on the other hand, store the actual data and send it to central devices when requested. Examples include BLE-enabled sensors, proximity beacons, and so on. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 46 4.2 4.2.1 Example Projects CapSense Slider and LED Project Description This project demonstrates BLE connectivity between the BLE Pioneer kit (acting as a peripheral and server device) and BLE dongle or mobile device running the CySmart application (acting as a central and client device). This project demonstrates following:
Advertisement with timeout Connection with any BLE Central device Two custom services in single profile Data transfer over BLE custom service using notifications, read, and write Low-power mode implementation for battery operation The BLE profile in this project consists of two BLE custom services: CapSense and RGB LED. The CapSense service consists of one custom characteristic, termed as CapSense Slider. The CapSense slider characteristic is used to send one byte data, ranging from 0 to 100, as notification to the client device. This data is the finger location read by the CapSense component on the five-
segment slider (CSS1) present on the kit. This characteristics supports notification, which allows the BLE server to send data to the connected client device whenever new data is available. The RGB LED service also consists of one custom characteristic, termed as RGB LED Control. This characteristic supports two operations, read and write, through which the connected client device can read data as well as write a new value to the characteristic. This data has four byte val-
ues indicating red, green, blue, and intensity values for the onboard RGB LED. These properties for the custom service/characteristics are configured in the BLE component under the Profiles tab, as shown in Figure 4-7. Figure 4-7. Attributes Configuration in BLE Component for Custom Services CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 47 Example Projects The project consists of the following files:
main.c/.h These files contain the main function, which is the entry point and execution of the firmware appli-
cation. It also contains function definition for initialization of the system and reading the CapSense slider data from the CapSense component. BLEApplications.c/.h These files contain all the macros and function definitions related to BLE communication and operation. It contains the event callback function definition that is registered with the BLE compo-
nent startup and used by the component to send BLE-related events from the BLE stack to the application layer for processing. It contains a method to send CapSense notifications to the client device and process the Read and Write commands on the RGB LED characteristic by the client device. It updates the BLE Connection parameter, which is important for low-power mode usage. HandleLowPower.c/.h These files contain the function to handle low-power mode. This function is continuously called in the main loop and is responsible for pushing the BLE hardware block (BLESS) as well as the CPU to Deep Sleep mode as much as possible. The wakeup source is either the BLE hardware block Link Layer internal timer or the interrupt from the user button press (SW2). This allows for very low power mode implementation and operation using a coin cell. Additionally, the PRoC BLE version of this project consists of the RGB_PRSm.c/.h file, which con-
tains the function to drive the software-based PrISM method and drive the color and intensity on the RGB LED. This is the default firmware that comes in the BLE modules shipped with the kit. Two projects demonstrate this functionality on two different devices:
PSoC_4_BLE_CapSense_Slider_LED works with the PSoC 4 BLE Module PRoC_BLE_CapSense_Slider_LED works with the PRoC BLE Module. The PSoC 4 BLE project implements RGB color and intensity control using the PRiSM component whereas the PRoC BLE uses the software implementation of the PRiSM mode. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 48 Figure 4-8. TopDesign for PSoC_4_BLE_CapSense_Slider_LED Project Example Projects Figure 4-9. TopDesign for PRoC_BLE_CapSense_Slider_LED Project CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 49 4.2.2 Hardware Connections No specific hardware connections are required for this project because all connections are hardwired on the board. Ensure that the correct BLE Module is placed on the baseboard corresponding to the project being used. PSoC_4_BLE_CapSense_Slider_LED works with the PSoC 4 BLE Module. PRoC_BLE_CapSense_Slider_LED works with the PRoC BLE Module. Example Projects The pin assignment PRoC_BLE_CapSense_Slider_LED.cydwr in the Workspace Explorer, as shown in Figure 4-10. in PSoC_4_BLE_CapSense_Slider_LED.cydwr/
this project for is Table 4-1. Pin Assignments for CapSense Slider and LED Project Pin Name Port Name CapSense CMOD CapSense Slider 1 CapSense Slider 2 CapSense Slider 3 CapSense Slider 4 CapSense Slider 5 BLUE GREEN RED User_Button P4_0 P2_1 P2_2 P2_3 P2_4 P2_5 P3_7 P3_6 P2_6 P2_7 Figure 4-10. Pin Selection for CapSense Slider and LED Project CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 50 4.2.3 Flow Chart Figure 4-11 shows the flow chart of the code implemented. Figure 4-11. CapSense Slider and LED Project Flow Chart Example Projects System initialized. Wait for interrupt from User Button to Wakeup Start Advertisement Advertisement Time-out?
NO NO Connected to BLE Central device before timeout?
YES Process BLE Events Put system to low power mode and wait for interrupt from BLE Link Layer CapSense Slider Swipped?
YES Notifications Enabled?
YES NO YES Send finger position over CapSense custom service NO Extract Data and change color/
brightness on LED. Keep LED ON for set time YES Received RGB LED Data?
NO YES BLE Connection Still Present?
NO System in Deep Sleep and waiting for User button press CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 51 Example Projects 4.2.4 Verify Output The project can be verified by two methods: using the CySmart PC tool and dongle or using the CySmart iOS/Android BLE app. To install and use the CySmart PC tool, see CySmart PC Tool on page 160. To install and use the CySmart iOS/Android app, see CySmart iOS/Android Application on page 152. 4.2.4.1 CySmart PC Tool To verify the CapSense and LED project using the CySmart PC tool, follow these steps:
Note: See CySmart PC Tool on page 160 to learn how to use the tool. 1. Connect the dongle to one of the USB ports on the PC. 2. Start the CySmart PC tool on the PC by going to Start > All Programs > Cypress > CySmart
<version> > CySmart <version>. You will see a list of dongles connected to it. If no dongle is found, click Refresh. Select the BLE dongle and click Connect. Figure 4-12. Connect to BLE Dongle 3. Place either the PSoC 4 BLE Module or PRoC BLE Module, on the BLE Pioneer kit, depending on the project chosen. 4. Power the BLE Pioneer kit through the USB connector J13. 5. Program the BLE Pioneer kit with the CapSense and LED example projects. Follow steps in Using Example Projects on page 42 to program the device. 6. After programming successfully, press the user button (SW2) on the BLE Pioneer kit to start the advertisement. Advertisement is indicated by a blinking red LED on the baseboard. Note: The project has an advertisement timeout of 30 seconds. If the BLE client device does not connect to this peripheral within 30 seconds of starting the advertisement, the system goes back to low-power mode. Press SW2 again to restart the advertisement. 7. On the CySmart PC tool, click Start Scan to see the list of available BLE peripheral devices. You can confirm your device by the device name and Bluetooth address on the list. This should be same as the one configured in the BLE component GUI. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 52 8. After the available devices are listed, double-click the BLE Slider and LED device to connect, or click BLE Slider and LED and then click Connect. Figure 4-13. Connect to BLE Slider and LED Peripheral Example Projects 9. When the connection is made, the CySmart PC tool will display a message for the Update Con-
nection parameters. This is the request from the BLE peripheral to update the existing connec-
tion parameters, such as connection interval, latency, and supervision timeout, to a new value. Select Yes, as shown in Figure 4-14. Figure 4-14. Update Connection Parameter Option Note: If you select No, the project will still work. However, the current consumption will be higher due to faster connection interval. 10.If the connection is successful, you will see another tab opening besides the Master tab. Click Discover All Attributes to find all the services and attributes supported by the BLE peripheral. Figure 4-15. Discover All Attributes CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 53 Example Projects 11. When all the attributes are listed, locate the attribute with a UUID value of 0xCAA2, which is the characteristic under CapSense Slider custom service. It will also have a Client Characteristic Configuration descriptor (UUID 0x2902). The properties of the descriptor appear in the Attribute Details window, as shown in Figure 4-16. Click Read Value to read the existing Client Character-
istic Configuration Descriptor (CCCD) value. Figure 4-16. Read CCCD for CapSense Slider Characteristic 12.Modify the Value field of CCCD to '01:00' and click Write Value. This enables the notifications on the CapSense Slider characteristic. The notifications received are displayed in the Value field of the CapSense Slider characteristic. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 54 Figure 4-17. Write CCCD to Enable Notifications Example Projects 13.Swipe your finger on the CapSense slider on the BLE Pioneer kit, as shown in Figure 4-19 and see the notification values in the CapSense Slider value field, as shown in Figure 4-18. Figure 4-18. CapSense Slider Notification Received Figure 4-19. CapSense Slider CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 55 14.Modify the Value field of the Client Characteristic Configuration descriptor to '00:00' to disable notifications. Figure 4-20. Disable Notifications Example Projects 15.Now, locate the UUID value of 0xCBB1, which is the RGB LED Control characteristic. Under the Attribute Details tab on the right, the read and write properties are enabled. Click Read Value to read the existing 4-byte onboard RGB LED color information, as shown in Figure 4-21. The first three bytes have the color values Red, Green, and Blue; the fourth byte is the overall intensity value, all in the range of hexadecimal 0x00 to 0xFF. Figure 4-21. Read RGB LED Control Characteristic Value CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 56 Example Projects 16.Modify the four bytes of data in the Value field and click Write Value. You will see the corresponding change in the color and intensity of the RGB LED on the BLE Pioneer kit, as shown in Figure 4-22. The RGB LED will be on for 3 seconds before switching off to conserve power. Note: If the BLE Pioneer kit is powered from a coin cell and not the USB Vbus, then the color mixing and intensity will vary. This is because the coin cell provides a lower driving voltage for RGB LEDs. Figure 4-22. Write RGB LED Control Characteristic Value Figure 4-23. RGB LED Control with PSoC 4 BLE Module and PRoC BLE Module CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 57 17.To disconnect from the device, click Disconnect, as shown in Figure 4-24. Figure 4-24. Disconnect from the Device Example Projects 18.To connect to this peripheral again, restart advertising by pressing the user button (SW2) on the BLE Pioneer kit. Advertising is indicated by the blinking red LED. 4.2.4.2 CySmart iOS/Android App To verify the CapSense and LED project using the CySmart mobile application (see CySmart iOS/
Android Application on page 152), follow these steps:
1. To verify the PSoC_4_BLE_CapSense_Slider_LED project, plug in the PSoC 4 BLE Module on the baseboard. Figure 4-25. BLE Pioneer Kit with PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 58 To verify the PRoC_BLE_CapSense_Sider_LED project, plug in the PRoC BLE Module on the baseboard. Figure 4-26. BLE Pioneer Kit with PRoC BLE Module Example Projects 2. Plug the BLE Pioneer kit into the PC to power using the J13 USB connector. 3. Program the kit with the CapSense and LED example projects. See Using Example Projects on page 42 for programming instructions. 4. Press the user button (SW2) on the BLE Pioneer kit to start the advertisement. This is indicated by the blinking red LED on the BLE Pioneer kit. 5. Open the application on the mobile device. If Bluetooth is not enabled on the device, the application will ask to enable it. 6. After Bluetooth is enabled, the application will automatically search for available BLE peripherals and list them. Select the BLE Slider and LED peripheral as shown in Figure 4-27. Figure 4-27. BLE Slider and LED Peripheral CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 59 7. When connected, the application will list the supported profiles by the peripherals. Scroll and select the CapSense page, as shown in Figure 4-28. Figure 4-28. CapSense Service Page Example Projects 8. Swipe your finger on the CapSense slider on the BLE Pioneer kit and see a similar response on the CapSense page in the CySmart application (Figure 4-29). Figure 4-29. CapSense Slider CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 60 9. Press the back button in the top left corner of the application to return to the service selection page. Scroll and tap on the RGB LED service shown in Figure 4-30. Figure 4-30. RGB LED Service Page Example Projects 10.On the RGB LED service page, swipe over the color gamut to see a similar color response on the BLE Pioneer kit RGB LED. The slider below the color gamut controls the intensity of the RGB LED color. The RGB LED will be on for 3 seconds before switching off. This is done to conserve power. If the BLE Pioneer kit is powered from the coin cell and not the USB Vbus power, then the color mixing and intensity will vary. This is because the coin cell provides a lower driving voltage for RGB LEDs. Figure 4-31. RGB LED Control with PSoC 4 BLE Module and PRoC BLE Module CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 61 4.3 4.3.1 Example Projects 11. To disconnect from the BLE Pioneer kit, return to the CySmart app home screen by pressing the back button. 12.To reconnect to the peripheral, press the user button (SW2) on the BLE Pioneer kit again and then scan for devices using CySmart mobile app. CapSense Proximity Project Description This project demonstrates BLE connectivity between the BLE Pioneer kit (acting as a peripheral and server device) and the BLE dongle or mobile device running the CySmart application (acting as a central and client device). This project demonstrates the following:
Advertisement with timeout Connection with any BLE Central device One custom service Data transfer over BLE custom service using notifications Low-power mode implementation for coin cell operation The BLE profile in this project consists of a single BLE custom service, called CapSense. The CapSense service consists of a custom characteristic, termed as CapSense Proximity. The CapSense proximity characteristic is used to send one byte data, ranging from 0 to 255, as notification to the client device. This data is the difference count read by the CapSense component on the one-wire proximity sensor (J14) connected on the kit. This characteristics supports notification, which allows the BLE server to send data to the connected client device whenever new data is available. The properties for the custom service/characteristics are configured in the BLE component under the Profiles tab, as shown in Figure 4-32. Figure 4-32. Attributes Configuration in BLE Component for CapSense Proximity CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 62 Example Projects The project consists the following files:
main.c/.h These files contain the main function, which is the entry point and execution of the firmware appli-
cation. It contains function definition for initialization of the system and reading the CapSense proximity data from the CapSense component. BLEApplications.c/.h These files contain all the macros and function definitions related to BLE communication and operation. It contains the event callback function definition that is registered with the BLE compo-
nent startup and used by the component to send BLE-related event from the BLE stack to the application layer for processing. It contains a method to send CapSense notifications to the client device. It updates the BLE Connection parameter, which is important for low-power mode usage. HandleLowPower.c/.h These files contain the function to handle low-power mode. This function is continuously called in the main loop and is responsible for pushing the BLE hardware block (BLESS) as well as the CPU to Deep Sleep mode as much as possible. The wakeup source is either the BLE hardware block Link Layer internal timer or the interrupt from the user button press (SW2). This allows for very low-power mode implementation and operation using a coin cell. The red LED is used as the status LED and provides visual confirmation on advertising or connection states. A blinking red LED indicates advertising state. Two projects demonstrate this functionality on two different devices:
PSoC_4_BLE_CapSense_Proximity works with the PSoC 4 BLE Module. PRoC_BLE_CapSense_Proximity works with the PRoC BLE Module. Figure 4-33. Top Design for PSoC_4_BLE_CapSense_Proximity Project CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 63 Figure 4-34. Top Design for PRoC_BLE_CapSense_Proximity Project Example Projects 4.3.2 Hardware Connections Ensure that the correct BLE module is placed on the baseboard corresponding to the project being used. PSoC_4_BLE_CapSense_Proximity works with the PSoC 4 BLE Module. PRoC_BLE_CapSense_Proximity works with the PRoC BLE Module. Connect a five-inch wire (provided as part of this kit) to the proximity connector J14 on the baseboard. Loop the wire as shown in Figure 4-35. Note: Ensure that the proximity sensor loop wire is kept away as much as possible from the BLE antenna on the modules. Figure 4-35. Proximity Sensor Connection on BLE Pioneer Kit with PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 64 Figure 4-36. Proximity Sensor Connection on BLE Pioneer Kit with PRoC BLE Module Example Projects The pin assignment PRoC_BLE_CapSense_Proximity.cydwr in the Workspace Explorer, as shown in Figure 4-37. in PSoC_4_BLE_CapSense_Proximity.cydwr/
this project for is Table 4-2. Pin Assignments for CapSense Proximity Project Pin Name Port Name CapSense CMOD CapSense Proximity Sensor User Button Status LED P4_0 P2_0 P2_7 P2_6 Figure 4-37. Pin Selection for CapSense Proximity Project CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 65 4.3.3 Flow Chart Figure 4-38 shows the flow chart of code implemented. Figure 4-38. CapSense Proximity Project Flow Chart Example Projects System initialized. Wait for interrupt from User Button to Wakeup Start Advertisement Advertisement Time-out?
NO Connected to BLE Central device?
NO Put system to low power mode and wait for interrupt from BLE Link Layer YES Process BLE events Proximity value Changed?
YES Notification enabled?
YES YES Send the proximity data to BLE Central device NO YES NO BLE connection still exists?
NO System is put in Sleep and waits for User Button press CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 66 Example Projects 4.3.4 Verify Output The project can be verified by two methods: using the CySmart PC tool and dongle or using the CySmart iOS/Android BLE app. To install and use the CySmart PC tool, see CySmart PC Tool on page 160. To install and use the CySmart iOS/Android app, see CySmart iOS/Android Application on page 152. 4.3.4.1 CySmart PC Tool To verify the CapSense proximity project using the CySmart PC tool, follow these steps:
Note: See CySmart PC Tool on page 160 to know how to use the tool. 1. Connect the dongle to one of the USB ports on the PC. 2. Start the CySmart PC tool on the PC by going to Start > All Programs > Cypress > CySmart
<version> > CySmart <version>. You will see a list of dongles connected to it. If no dongle is found, click Refresh. Select the BLE dongle and click Connect. Figure 4-39. Connect to BLE Dongle 3. Depending on the example project chosen, place the PSoC 4 BLE Module or PRoC BLE Module on the baseboard. 4. Power the BLE Pioneer kit through the USB connector J13. 5. Connect a five-inch wire (included in the kit) to the proximity sensor connector J14 and make a loop of it. 6. Program the BLE Pioneer kit with the CapSense proximity example project. Follow the steps in Using Example Projects on page 42 to program the device. 7. After programming successfully, press the user button (SW2) on the BLE Pioneer kit to start the advertisement. This is indicated by a blinking red LED on the baseboard. 8. On the CySmart PC tool, click Start Scan to see the list of available BLE peripheral devices. You can recognize your device by the device name and Bluetooth address on the list. This should be the same as the one in the Gap Settings tab of the BLE component GUI in PSoC Creator. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 67 Figure 4-40. Start Scanning Example Projects 9. After the available devices are listed, double-click CapSense Proximity to connect or click Stop Scan and then click Connect to connect to the device. Figure 4-41. Connect to CapSense Proximity Peripheral 10.When the connection is made, the CySmart PC tool will display a message for the Update Con-
nection parameter. This is the request from the BLE peripheral to update the existing connection parameters, such as connection interval, latency, and supervision timeout, to a new value. Select Yes, as shown in Figure 4-42. Figure 4-42. Update Connection Parameter Option Note: If you select No, the project will still work. However, the current consumption will be higher due to faster connection interval. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 68 11. If the connection is successful, you will see another tab opening besides the Master tab. Click Discover All Attributes to find all the services and attributes supported by the BLE peripheral. Figure 4-43. Discover All Attributes Example Projects 12.When all the attributes are listed, locate the UUID value of 0xCAA1, which is the characteristic for CapSense Proximity. It will also have a Client Characteristic Configuration descriptor
(UUID 0x2902). The properties of the descriptor appear in the Attribute Details window, as shown in Figure 4-44. Click Read Value to read the existing CCCD value. Figure 4-44. Read CapSense Proximity CCCD 13.Modify the Value field to '01:00' and click Write Value. This enables the notifications on the CapSense Proximity characteristic. The notifications received are displayed in the Value field of the CapSense Proximity characteristic. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 69 Figure 4-45. Write CCCD to Enable Notifications Example Projects 14.Bring your hand closer to the proximity sensor on the BLE Pioneer kit, as shown in Figure 4-47 and observe the value changing in the characteristic value field, as shown in Figure 4-46. Figure 4-46. CapSense Proximity Notification Received Figure 4-47. CapSense Proximity Sensing with PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 70 Example Projects 15.Modify the Value field of the Client Characteristic Configuration descriptor to '00:00' to disable notifications. 16.To disconnect from the device, click Disconnect, as shown in Figure 4-48. Figure 4-48. Disconnect from the Device 17.Press user button (SW2) to wake up from sleep and restart the advertisement for the next connection. 4.3.4.2 CySmart iOS/Android App To learn how to use the CySmart iOS/Android application, see CySmart iOS/Android Application on page 152 or the app user guide. To verify the CapSense proximity project using the CySmart mobile app, follow these steps:
1. To verify the PSoC_4_BLE_CapSense_Proximity project, plug in the PSoC 4 BLE Module on the baseboard. Figure 4-49. BLE Pioneer Kit with PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 71 To verify the PRoC_BLE_CapSense_Proximity project, plug in the PRoC BLE Module on the baseboard. Figure 4-50. BLE Pioneer Kit with PRoC BLE Module Example Projects 2. Connect the five-inch wire as a loop to the proximity connector J14 on the baseboard. 3. Plug the BLE Pioneer kit into the PC for power, using the J13 USB connector. 4. Program the kit with the CapSense proximity example project. Follow steps in Using Example Projects on page 42 to program the device. 5. Press the user button (SW2) on the BLE Pioneer kit to start the advertisement. 6. Open the CySmart app on the mobile device. If Bluetooth is not enabled on the device, the app will ask to enable it. 7. The app will automatically search for available BLE peripherals and list them. Select the CapSense Proximity peripheral, as shown in Figure 4-51. Figure 4-51. Connect to CapSense Proximity Peripheral CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 72 Example Projects 8. When connected, the app will list the services supported by the peripherals. Scroll and select the CapSense service. 9. When the CapSense service page opens, bring your hand near the sensor wire on the BLE Pioneer kit and see a similar response in the app as a bar graph, as shown in Figure 4-52. Figure 4-52. CapSense Proximity Sensing with PSoC 4 BLE Module 4.4 4.4.1 10.To disconnect from the BLE Pioneer kit, return to the device selection screen on the CySmart app. 11. To reconnect to the peripheral, press the user button (SW2) on the BLE Pioneer Kit to restart the advertisement and scan for the device in the CySmart app. BLE Central Mode Project Description The BLE projects described above have been functioning as BLE peripheral devices. This means that the firmware role was set to be a BLE peripheral and server; another device such as the CySmart PC tool or CySmart mobile application will connect to it and collect the data. This example project demonstrates the BLE central and client mode where it will scan for a periph-
eral device, connect to it, and send commands. In this project, the BLE Pioneer kit scans and auto-
connects to a particular peripheral device supporting Immediate Alert Service (IAS). Whenever the peripheral with a predetermined address is found, a connection request is sent followed by discover-
ing the attributes. When the discovery is over, you can send one of the three alert levels to the BLE peripheral device over the IAS. This is done by pressing the SW2 button on the BLE Pioneer kit and cycling through the alert levels. The BLE central project supports low-power mode operation, where the firmware supports BLESS and CPU Deep Sleep mode whenever possible. The system remains in deep sleep when discon-
nected. Press SW2 to wake up the system and start scanning (blinking blue LED). The scanning timeout interval is set to 30 seconds. If the particular BLE peripheral device is found advertising before timeout, a connection is made (blue LED always ON). If no such device is found, then the CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 73 Example Projects system stops scanning and returns to Deep Sleep mode (LED OFF). Press SW2 again to wake the system and restart scanning. To aid in evaluation, the BLE peripheral project with the particular BD address is provided in the same workspace. This peripheral project supports IAS and has fixed BD address that the central device will recognize and auto-connect to. This peripheral project is programmed on the BLE dongle and powered through the USB port of PC. The received alert levels (No, Mid, and High alert) on the BLE dongle are represented by different LED status. No Alert is represented by LED OFF, Mid Alert by blinking LED, and High Alert with LED always ON. Upon each successive button press on the BLE Pioneer kit, the LED state on the BLE dongle changes in a circular fashion. Two projects demonstrate the BLE Central functionality on the two devices:
PSoC_4_BLE_Central_IAS works with the PSoC 4 BLE Module. PRoC_BLE_Central_IAS works with the PRoC BLE Module. Additionally, the BLE_Dongle_Peripheral_IAS project is to be programmed on the dongle. This project is present in both the PSoC_4_BLE_Central_IAS and the PRoC_BLE_Central_IAS work-
space and can be used to program the dongle separately. Note: If the dongle is programmed with the BLE_Dongle_Peripheral_IAS example, it will not work with the CySmart PC utility. Reprogram the dongle with the CySmart firmware according to Updating BLE Dongle for CySmart PC Tool on page 33 to use the CySmart PC tool. Figure 4-53. PSoC_4_BLE_Central_IAS TopDesign CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 74 Figure 4-54. PRoC_BLE_Central_IAS TopDesign Example Projects Figure 4-55. BLE_Dongle_Peripheral_IAS TopDesign CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 75 Example Projects 4.4.2 Hardware Connections No specific hardware connections are required for this project because all connections are hardwired on the board. Ensure that the correct BLE module is placed on the baseboard corresponding to the project being used. PSoC_4_BLE_Central_IAS works with the PSoC 4 BLE Module. PRoC_BLE_Central_IAS works with the PRoC BLE Module. BLE_Dongle_Peripheral_IAS is the common project for both workspaces and programs the BLE dongle with peripheral mode firmware. pin The PRoC_BLE_Central_IAS.cydwr in the Workspace Explorer, as shown in Figure 4-56. assignment in PSoC_4_BLE_Central_IAS.cydwr/
project this for is Figure 4-56. Pin Selection for BLE IAS Central Example Project Similarly, BLE_Dongle_Peripheral_IAS.cydwr in the Workspace Explorer as shown in Figure 4-57. assignment peripheral project dongle the the pin for is in Figure 4-57. Pin Selection for BLE IAS Peripheral Example Project CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 76 4.4.3 Flow Chart Figure 4-58 shows the flow chart for the IAS client mode example project. Figure 4-58. IAS Client Mode Flow Chart Example Projects Start Initialize BLE Module Discovered peripheral with IAS Peripheral Address ?
Yes Initiate and complete connect operation . Provide LED indication on connection complete No Write the next Alert level (Alert levels will be repeated ) Check for configured Button press event Yes Does connection exist ?
Yes Button press detected ?
No No CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 77 Figure 4-59 shows the flow chart for the IAS peripheral mode example project. Figure 4-59. IAS Peripheral Mode Flow Chart Example Projects Start Initialize BLE Module and start Advertisement Connect request from Central device
?
Yes No Complete connect operation and wait for Alert notifications No Valid Alert level is notified ?
Yes Configure LED as per alert level 4.4.4 Verify Output 1. Connect the BLE dongle to one of the USB ports on the PC. Figure 4-60. Connect Dongle to USB Port CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 78 2. In the PSoC Creator Workspace Explorer, right-click on the BLE_Dongle_Peripheral_IAS project and select Set As Active Project, as shown in Figure 4-61. Figure 4-61. Set Dongle Peripheral Project as Active Example Projects 3. Program the dongle with the BLE_Dongle_Peripheral_IAS project described in Using Example Projects on page 42. Note: Do not update the public device address (inside the BLE component) for the BLE_Dongle_Peripheral_IAS example project. This is because the central example project looks for a particular public address equal to the one set on the peripheral BLE component. Changing the BLE_Dongle_Peripheral_IAS example project public address will lead to no connection with the BLE Central device on the BLE Pioneer kit. 4. Power the BLE Pioneer kit through USB connector J13. 5. In the Workspace Explorer, right-click on the PSoC_4_BLE_Central_IAS project and select Set As Active Project, as shown in Figure 4-62. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 79 Figure 4-62. Set Central IAS Project as Active Example Projects 6. Program the BLE Pioneer kit with either the PRoC_BLE_Central_IAS project, depending on the BLE module placed on the BLE Pioneer kit. 7. Press button SW2 on the BLE Pioneer kit to wake the system and start scanning. Scanning is the PSoC_4_BLE_Central_IAS or indicated by a blinking LED. 8. Wait for the BLE connection between the dongle and the Pioneer baseboard. The connection success status is indicated on the baseboard in the following three stages:
a. Fast blinking blue LED represents scanning mode. During this mode, the BLE Pioneer kit is scanning for peripheral devices. b. Slow blinking blue LED represents discovery mode. During this mode, the BLE Pioneer kit has found the dongle peripheral device and has started the connection procedure. c. The blue LED remains on, representing the connected mode. This mode indicates that the peripheral device has been connected and the application can now send alert levels. 9. Press button SW2 on the BLE Pioneer kit to send the next alert level to the dongle. The alert level will rotate from No Alert to Mid Alert to High Alert. 10.Check if the LED behavior changes for each alert notification on the dongle according to the following table:
Alert Level LED State No Alert Mild Alert High Alert LED OFF LED blinking LED ON CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 80 Figure 4-63. User Button on BLE Pioneer Kit with PSoC 4 BLE Module Example Projects 4.5 4.5.1 Note: To revert the CySmart functionality to the dongle, program the dongle hex file, as described in Updating BLE Dongle for CySmart PC Tool on page 33. BLE Dongle and LED Control Project Description This firmware supports the CySmart debug tool (see CySmart PC Tool on page 160) by acting as the BLE host emulator. This is the default firmware that comes in the BLE dongle shipped with the kit. This project additionally demonstrates LED brightness control via a custom BLE profile, which works with the CapSense slider example explained in CapSense Slider and LED on page 47. The device will scan for the peripheral acting as a CapSense slider and LED device, and connect to it automatically. This is achieved by filtering the advertisement packets for the CapSense Slider service data, which will be sent by the CapSense slider example. Then, it will enable slider notifications and process the received notifications. Whenever CapSense detects activity, it will notify the finger location to the dongle; the dongle will update the LED brightness using PWM. The custom client LED control will be stopped if the CySmart PC tool acquires the dongle. The dongle will enter the CySmart emulator mode, in which it will process all BLE commands as triggered by the user via the tool. The project uses custom command/event protocol to exchange data between the CySmart PC tool and the BLE component via a USB-CDC interface. It uses the Cypress USB-UART bridge functionality from the PSoC 5LP-based KitProg module described in Using PSoC 5LP as USB-UART Bridge on page 115. Note: This project is meant only for the PRoC BLE device and works on the dongle hardware. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 81 Figure 4-64. Top Design for BLE_Dongle_CySmart Project Example Projects 4.5.2 Hardware Connections No specific hardware connections are required for this project because all connections are hardwired on the dongle board. The pin assignment for this project is in BLE_Dongle_CySmart.cydwr in the Workspace Explorer, as shown in Figure 4-65. Figure 4-65. Pin Selection for BLE Dongle Project CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 82 4.5.3 Flow Chart Figure 4-66. Flow Chart for BLE_Dongle_CySmart Project Example Projects Power BLE Dongle Start BLE, Prism and UART Component CySmart tool started No Yes Enter CySmart emulator mode Scan for Capsense device No Yes Capsense device found ?
Perform connect sequence Update LED brightness as per slider position Enable notifications for Capsense slider Yes No Notification occurs with valid position value ?
System in sleep and waiting for user button press Yes USB suspend triggered ?
Wait for slider position change notifications No CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 83 Example Projects 4.5.4 4.6 4.6.1 Verify Output This project will be used whenever the CySmart PC tool (see CySmart PC Tool on page 160) is invoked for testing other example projects. In addition, the LED control operation can be verified as follows. 1. Power the BLE Pioneer kit through the USB connector J13. 2. Program the BLE Pioneer kit with the CapSense and LED example project described in CapSense Slider and LED on page 47. 3. Connect the BLE dongle to one of the USB ports on the PC. 4. Program the dongle with the BLE_Dongle_CySmart project. See Using Example Projects on page 42 for programming instructions. 5. Press the user button SW2 on both the BLE dongle and the BLE Pioneer kit. The BLE dongle will start scanning and the BLE Pioneer kit will start advertising. 6. Wait for the BLE connection between the BLE dongle and the Pioneer baseboard. The connec-
tion success status will be indicated by a 3-second ON state of the red LED followed by the OFF state on the baseboard. 7. Swipe your finger on the CapSense slider and check the LED brightness variation on the dongle. Direct Test Mode (DTM) Project Description Bluetooth Core specification (v4.0 and later), Volume 6, Part F defines Direct Test Mode (DTM) as a method to test the BLE PHY layer and provide a report back to the tester. It uses one of the two methods, over Host Controller Interface (HCI) or through a two-wire UART interface. Device under test (DUT) is the BLE system that is to be tested (for example, BLE Pioneer kit). With DTM, the RF performance of the BLE system can be verified during development or in production line. The environment consists of the DUT and a tester. The tester has two parts; the upper tester sends commands through one of the two methods (HCI or two-wire UART) and the lower tester per-
forms the corresponding action over the RF link. The tester compares the command sent over HCI and the response received over RF, and provides a result of the performance. Figure 4-67. Direct Test Mode (DTM) Setup DUT HCI/UART RF (2.4 GHz) Upper Tester Lower Tester The BLE component allows configuring the device in DTM by enabling the HCI. The appropriate response to commands from the tester are performed by the BLE stack and does not involve sepa-
rate application handling. The only task is to start the BLE component and call the API to process the events. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 84 Example Projects The HCI is enabled in the BLE component under the General Settings. Note that when the HCI mode is selected, all other tabs are hidden and cannot be configured. This is because in HCI mode, there are no upper layer processes. On enabling HCI mode in the components, the components automatically reserves a UART block to allow communication between the tester and BLE stack. The UART exposes the pins that can be assigned in Design Wide Resource > Pins. The only option to be configured for HCI mode is the baud rate and the pins for communication with the tester. Figure 4-68. HCI Mode in BLE Component Many companies develop BLE testers for Direct Test Mode. It is also possible to create PC-based software tools that will send HCI commands over serial communication links. For PC-based software, the serial communication link is the COM port, which is enumerated by Kit-
Prog on PSoC 5LP of the BLE Pioneer kit. In such a case, the UART pins in PSoC 4 BLE/PRoC BLE should be assigned to P1_4 and P1_5. These pins are hardwired to pins on PSoC 5LP and allows USB-UART data communication between the PC tool and the BLE device. For separate BLE testers, the serial communication is mostly over the RS232. To test with this system, an external RS232 voltage translator is required, such as Digilent's Pmod RS232. This translator will modify the signal level of the serial communication between the BLE device and the RS232 port on the tester. The UART pins of the BLE device can be assigned to P0_0 and P0_1 and the header J5 can be used to connect to the RS232 translator. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 85 Figure 4-69. J5 Header to Interface RS232 Translator Example Projects 4.6.2 Hardware Connection For DTM test mode, it is recommended to use SMA connectors and connect the tester and DUT using a SMA to SMA connector cable. This ensures that there is minimum interference to RF communication between the DUT and tester, and the performance measured is the true RF performance of the device. The BLE Pioneer kit module with SMA connector (CY8CKIT-141 PSoC 4 BLE) is available separately and can be ordered from the Cypress web page. Four UART pins are exposed when HCI mode is selected in the BLE component. These pins should be assigned to allow communication with the external tester. The connection depends on the tester being used. If the tester is a PC-based software and communicated with HCI over serial link, then the onboard PSoC 5LP on the BLE Pioneer kit can act as the USB-UART bridge. The KitProg on the PSoC 5LP enumerates as a USB-UART interface and opens a COM port in the PC. This COM port is then used by the software tool to communicate commands to the BLE device. In this case, the UART pins should be assigned as follows. Table 4-3. UART Pin Assignment for PC Software Tester UART Pins RX TX RTS CTS Pin Assigned P1_4 P1_5 P1_6 P1_7 The UART for HCI communication exposes hardware flow control lines CTS and RTS. They can either be connected to the hardware control lines of the tester or CTS connected to ground for oper-
ation without hardware flow control. If the tester is an external hardware tester (CBT), then connect any of the RS232 voltage translators to header J5 on the BLE Pioneer kit. The UART pins should be assigned as follows. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 86 Example Projects Table 4-4. UART Pin Assignment for RS232 Voltage Translator UART Pins RX TX RTS CTS Pin Assigned P0_0 P0_1 P0_2 P0_3 4.6.3 Verify Output 1. Connect the BLE Pioneer kit through the USB connector J13. 2. Program the BLE Pioneer kit with the PSoC_4_BLE_DTM or PRoC_BLE_DTM project, depend-
ing on the BLE module used (PSoC 4 BLE or PRoC BLE), as described in Using Example Proj-
ects on page 42. Programming should complete successfully. 3. Connect the Serial link, UART or RS232 to the tester. 4. On the software tool for tester, configure the UART communication with the correct COM port and baud rate, as set in the BLE component. 5. Start the test. The tool will generate the report after the end of the test. This depends on the tes-
ter/tool being used. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 87 5. Hardware 5.1 5.1.1 5.1.2 This chapter describes the contents of the BLE Pioneer kit hardware and its different blocks, such as the power block, USB connection, Arduino-compatible headers, BLE module connectors, and CapSense slider. Pioneer Baseboard PSoC 5LP An onboard PSoC 5LP is used to program and debug the BLE silicon. The PSoC 5LP connects to the USB port of the PC through a USB mini-B connector and to the SWD interface of the BLE 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. The analog capability spans the range from thermocouples (near DC voltages) to ultrasonic signals. For more information, visit the PSoC 5LP web page. See Serial Interconnection Between PSoC 5LP and BLE Module on page 104 for more details. Power System The power supply system on this board is versatile, allowing the input supply to come from the fol-
lowing sources:
5-V power from onboard USB connector 5-V to 12-V VIN power from Arduino shield at J1 3.3 V from I/O header J1 3 V from CR2032 coin cell CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 88 An adjustable LDO is used to output three different voltage levels (1.9 V, 3.3 V, and 5 V) to power the BLE module. These voltages are selected with the J16 jumper, as shown in Figure 5-1. Figure 5-1. Schematics and Board Highlight of LDO and Power Selection Jumper Hardware VBUS VIN D2 SOD123 D4 SOD123 VCC R10 10K EN_CTRL EN_CTRL EN_CTRL VCC 3216 C1
+
1 uFd D1 SOD123 U1 CTL VCC OUT C NC BA00BC0WFP-E2 GND 1 2 3 4 5 6 R1 11K 1%
VADJ D3 SOD123 VDD 3216 C2
+
4.7uF R3 14.7K 1%
R4 10K 1%
R5 4.3K 1%
1 3 2 J16 3 PIN HDR TABLE: LDO PIN FUNCTIONS TABLE: VOLTAGE SELECTION JUMPER SETTINGS Pin No Symbol
. Function JUMPER SETTING O/P VOLTAGE 1 2 3 4 5 6 CTL Output Voltage ON / OFF control VCC Power supply voltage input N.C. Unconnected terminal OUT Voltage output C Output voltage regulation terminal GND Ground SHORT 2 & 3 SHORT 1 & 2 REMOVE JUMPER 5V 3.3V 1.9V TP4 BLACK NO LOAD TP5 BLACK TP6 BLACK NO LOAD GND Test Points The input to the LDO can come from either the USB, the VIN pin in the Arduino header J1 or header J9. Note: The typical dropout voltage of the selected LDO is 0.3 V at 500-mA output current. This gives a minimum output of 4.6 V from the input voltage of 5 V from the VBUS. This drop also takes into account the voltage drop across the Schottky diode connected at the output of the LDO to protect against voltage applied at the output terminal of the regulator. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 89 The board also contains a CR2032 coin cell holder to power the board using a coin cell, as shown in Figure 5-2. Figure 5-2. Schematics and Board Highlight of Coin Cell Holder Hardware 5.1.2.1 Protection Circuits The power supply rail has reverse-voltage, overvoltage, short circuits, and excess current protection features, as shown in Figure 5-3. Figure 5-3. Power Supply Block Diagram With Protection Circuits I/OHeader 5V Vin Coin cell Battery Holder
~3V 3.3V MOSFET based Protection Ckt LDO Bluetooth Module PSoC 5LP 10 Pin Prog. Header PSoC 5LP PSoC 4 BLE 10 Pin Prog. Header B S U 5V PTC ESD Protection A PTC resettable fuse is connected to protect the computer's USB ports from shorts and overcurrent. ORing diodes prevent damage to components when the board is powered from different voltage sources at the same time. ESD protection is provided for the USB mini-B connector. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 90 Hardware A MOSFET-based protection circuit is provided for overvoltage and reverse-voltage protection for the 3.3-V rail from J1.5, as shown in Figure 5-4. When a voltage greater than 3.6 V is applied from J1.5, the Q2 PMOS will turn off, which will cut off the power to the BLE module from J1.5. When reverse voltage is applied from J1.5, the Q1 PMOS will turn off, protecting the onboard components from reverse voltage. Figure 5-4. Schematics and Board Highlight of MOSFET Protection Circuit for 3.3-V Input V3.3 VDD R7 ZERO NO LOAD R8 15K D9 PMOS( NTR4171PT1G) Q2 Q3 PMOS(PMV48XP,215) R9 10K Q1 P M O S
(
D M P 3 0 9 8 L
-
7
)
) F
-
7
-
9 V 3 C 2 5 T Z B V 9 3
=
z V
(
. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 91 5.1.2.2 Current Measurement Jumper To demonstrate the low power consumption of PSoC 4/PRoC BLE, a two-pin header is populated in series with the power supply to the PSoC 4 BLE. This can be used to measure current using an ammeter without the need to desolder any components from the board, as shown in Figure 5-5. Figure 5-5. Schematics and Board Highlight of Current Measurement Jumper Hardware J15 12 HDR2 VDD BLE_VDD R44 ZERO 0805 NO LOAD 0603 R45 ZERO VTARG CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 92 The following methods are supported for measuring the current consumption of the BLE device. When the board is powered through the USB port (J13), remove jumper J15 and connect an ammeter, as shown in Figure 5-6. Figure 5-6. Current Measurement when Powered from USB Port Hardware CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 93 Hardware When the board is powered from an external voltage supply, remove the USB port (J13). Connect the positive terminal of the external voltage supply to the positive terminal of the ammeter and the negative terminal of the ammeter to the upper pin of J15. Connect the negative terminal of the external voltage supply to and GND pin on board. Figure 5-7 shows the required connections. Figure 5-7. Current Measurement when Powered Separately VOLTAGE SOURCE
- +
5.1.3 Programming Interface The kit allows you to program and debug the PSoC 4 BLE/PRoC BLE in two ways:
Using the onboard PSoC 5LP Programmer and Debugger Using a CY8CKIT-002 MiniProg3 Programmer and Debugger CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 94 Hardware 5.1.4 Expansion Connectors 5.1.4.1 Arduino Compatible Headers (J1, J2, J3, J4, and J12-unpopulated) This kit has five Arduino compatible headers: J1, J2, J3, J4, and J12, as shown in Figure 5-8. You can develop applications based on the Arduino shield's hardware. Figure 5-8. Arduino Headers Arduino Arduino compatible compatible I/O header I/O header
(J3/J4)
(J3/J4) Arduino compatible power header (J1) Arduino compatible I/O header
(J2) The J1 header contains I/O 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 J3 header is primarily a digital port that contains I/O pins for PWM, I2C, 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 Bill of Materials (BOM) on page 184 for the header part number. Additional Functionality of Header J2 The J2 header is a 62 header that supports Arduino shields. The Port 2 and Port 3 pins of PSoC 4 BLE and PRoC BLE are brought to this header. The Port 2 pins also connect to the onboard CapSense slider through 560-ohm resistors. When the CapSense feature is not used, remove these resistors to help ensure better performance with these pins. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 95 Hardware 5.1.4.2 PMod Connector - Digilent Pmod Compatible (J5-unpopulated) This port supports Digilent Pmod peripheral modules (see Figure 5-9). Pmods are small I/O interfaces that connect with the embedded control boards through either 6- or 12-pin connectors. The BLE Pioneer kit supports the 6-pin Pmod type 2 (SPI) interface. For Digilent Pmod cards, go to www.digilentinc.com. This header is not populated on the BLE Pioneer board. You must populate this header before connecting the Pmod daughter cards. Refer to the No Load Components section of Bill of Materials
(BOM) on page 184 for the header part number. Figure 5-9. Schematics and Board Highlight of PMod Connector Digilent PmodTM -
compatible I/O header (J5) CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 96 Hardware 5.1.4.3 PSoC 5LP GPIO Header (J8) An 82 header is provided on the board to pull out several pins of PSoC 5LP to support advanced features such as a low-speed oscilloscope and a low-speed digital logic analyzer (see Figure 5-10). This header also contains the USB-Serial bridge pins that can be used when these pins are not accessible on the Arduino headers because a shield is connected. Note: You can use PSoC 5LP for your own custom firmware. See Developing Applications for PSoC 5LP on page 134 for details. Figure 5-10. Schematics and Board Highlight of PSoC 5LP GPIO Expansion Header VDD P5LP0_0 P5LP3_4 P5LP3_6 P5LP12_6 P5LP12_1 P5LP12_0 P5LP2_5 1 3 5 7 9 11 13 15 UART RX SPI_SSEL J8 2 4 6 8 10 12 14 16 2 4 6 8 10 12 14 16 1 3 5 7 9 11 13 15 8x2 RECPT P5LP1_2 P5LP0_1 P5LP3_5 P5LP3_7 P5LP12_7 P5LP3_0 P5LP12_5 UART TX SPI_MOSI PSoC 5LP GPIO Expansion Header USB-Serial Bridge Connections P5LP12_6 ------------- UART RX P5LP12_7 ------------- UART TX P5LP12_0 ------------- SPI SCLK / I2C SCL P5LP12_1 ------------- SPI MISO / I2C SDA P5LP12_5 ------------- SPI MOSI P5LP2_5 ------------- SPI SSEL CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 97 Hardware 5.1.5 USB Mini-B Connector The PSoC 5LP connects to the USB port of a PC through a mini-B connector (see Figure 5-11), which can also be used to power the board. A resettable polyfuse is used to protect the computer's USB ports from shorts and overcurrent. If more than 500 mA is drawn from the USB port, the fuse will automatically break the connection until the short or overload is removed. Figure 5-11. Schematics and Board Highlight of USB Mini-B Connector NO LOAD TP2 RED VBUS 2 F1 PTC Resettable Fuse 1 J13 1 2 3 4 5 VBUS DM DP ID GND USB MINI B 2 S 1 S 7 6 DM DP P5LP_DM P5LP_DP 6 D 7 D 8 D 3 0 6 0 3 0 6 0 3 0 6 0 100K R6 0402 C3 2 0 4 0 0.01 uF CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 98 Hardware 5.1.6 CapSense Circuit 5.1.6.1 CapSense Slider The kit has a five-segment linear capacitive touch slider, which is connected to the BLE module pins
(see Figure 5-12). The CMOD and CTANK capacitors are required for CapSense functionality and are provided on the BLE modules (see BLE Module Board on page 106). A 2.2-nF capacitor is present on the CMOD pin, P4[0], for CapSense operation. This kit also supports CapSense designs that enable waterproofing. On this kit, the connection of the shield to the pin or to ground is made by resistors R12 and R13, respectively. By default, R13 is mounted on the board, which connects the shield to ground. Populate R12 and remove R13 when evaluating waterproofing designs, which will connect the shield to the designated pin, P1[6]. Figure 5-12. Schematics and Board Highlight of CapSense Slider and Shield Setting CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 99 Proximity Header The baseboard contains a header (J14) for CapSense proximity wire connection (see Figure 5-13). Figure 5-13. Schematics and Board Highlight of Proximity Header Hardware 1 2 3 4 5 6 SS MOSI MISO SCK GND VCC CON6 P0_2 P0_0 P0_1 P0_3 V D D P2_0 R19 ZERO J14 0603 1x1 RECP Proximity Header CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 100 Hardware 5.1.7 Pioneer Board LEDs The Pioneer board has three LEDs. A green LED (LED2) indicates the status of the programmer. An amber LED (LED1) indicates the status of power supplied to the board. The kit also has a general-purpose tricolor LED (LED3) for user applications. These are connected to P2_6 (Red LED), P3_6 (Green LED) and P3_7 (Blue LED). Figure 5-14 and Figure 5-15 show the schematics of these LEDs. Figure 5-14. Schematics of Status and Power LED P5LP3_1 R11 LED2 0805 820 ohm 2 1 0805 Status LED Green Status LED TP1 RED NO LOAD VADJ R2 LED1 2 1 0805 560 ohm Power LED Figure 5-15. Schematics and Board Highlight of RGB LED R28 2.2K P2_6 BLE_VDD LED3 1 2 R G R29 1.5K R30 1.5K 4 3 P3_6 P3_7 B RGB LED CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 101 Hardware 5.1.8 Push Buttons The board contains a reset push button and a user push button, as shown in Figure 5-16. The reset button is connected to the XRES pin of BLE and is used to reset the BLE device. The user button is connected to P2[7] of the BLE device. Both the push buttons connect to ground on activation (active low). Figure 5-16. Schematics and Board Highlight of Reset Button and User Push Button SW1
/XRES
/XRES 1 2 C25 0.1 uF 0402 EVQ-PE105K RESET SW2 P2_7 1 2 EVQ-PE105K USER SWITCH RESET (SW1) User Button
(SW2) CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 102 Hardware 5.1.9 Cypress Ferroelectric RAM (F-RAM) The baseboard contains an F-RAM device (FM24V10) (see Figure 5-17) that can be accessed through I2C lines P5[0] and P5[1] of the PSoC 4 BLE/PRoC BLE device. The F-RAM is 1-Mbit
(128 KB) with an I2C speed up to 1 Mbps. The I2C slave address of the F-RAM device is seven bits wide, and the LSB two bits are configurable through physical pins and are hardwired to 00 on the board. By default, the address of the F-RAM device used on the board is 0x50. This address can be modified by changing the R32/R36 and R33/R37 pairs. The operating voltage range of the F-RAM is between 2 V and 3.6 V. To prevent the application of 5 V from the adjustable LDO regulator on the board, a MOSFET based protection circuit similar to the one used for the 3.3-V rail is connected between the output of the regulator and the VDD pin of the F-RAM. The protection circuit cuts off the power to the F-RAM when the output of the regulator is greater than 3.6 V. Figure 5-17. Schematics and Board Highlight of F-RAM CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 103 Hardware 5.1.10 Serial Interconnection Between PSoC 5LP and BLE Module The PSoC 5LP onboard programmer is also a USB-Serial interface, It supports USB-UART and USB-I2C bridges (see Figure 5-18). The pull-ups resistors on I2C bus are enabled when the protocol is selected from user interface (like bridge control panel). 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 the SPI/I2C/UART interface. Refer Using PSoC 5LP as USB-UART Bridge on page 115 and Using PSoC 5LP as USB-I2C Bridge on page 126 for more information on how to use these serial interconnections Figure 5-18. Schematics and Board Highlight of Serial Interface and I2C Pull-Up via FET VDD P5LP2_6 P5LP2_7 R22 2.2K R23 2.2K 2 1 45 6 3 P5LP12_1 P5LP12_0 U4 NTZD3152P R26 ZERO SDA R27 ZERO SCL I2C Connection SPI_MISO / I2C_SDA SPI_SCLK / I2C_SCL USB-I2C SPI_SCLK / I2C_SCL SPI_MISO / I2C_SDA SPI_MOSI USB-SPI SPI_SSEL R46 ZERO P3_5 R47 ZERO P3_4 UART RX R52 ZERO P1_5 USB-UART UART TX R53 ZERO P1_4 R48 ZERO NO LOAD R49 ZERO NO LOAD R50 ZERO NO LOAD R51 ZERO NO LOAD P0_3 P0_1 P0_0 P0_2 RESET R54 ZERO
/XRES SWDCLK SWDIO R55 ZERO P0_7 R56 ZERO P0_6 USB-SWD PSoC 5LP and PSoC 4 BLE/PRoC BLE Connections CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 104 5.1.11 Bluetooth Module Headers The PSoC 4 BLE and PRoC BLE Modules are connected to the Pioneer board using the two (24-pin and 20-pin) Bluetooth module headers, as shown in Figure 5-19. Figure 5-19. Schematics and Board Highlight of Bluetooth Module Headers Hardware J11 2 4 6 8 10 12 14 16 18 20 VDDD GND
/XRES P0_7 P0_6 P1_2 P1_0 P0_5 P0_3 P0_1 GND P3_6 P3_4 P3_2 P3_0 P4_0 P4_1 P2_6 P2_4 P2_2 P2_0 VDDR 1 3 5 7 9 11 13 15 17 19 21 23 P1_6 P1_7 P1_5 P1_3 P1_4 P1_1 VREF P0_4 P0_2 P0_0 1 3 5 7 9 11 13 15 17 19 J10 2 4 6 8 10 12 14 16 18 20 22 24 VDDA P3_7 P3_5 P3_3 P3_1 P5_1 P5_0 P2_7 P2_5 P2_3 P2_1 GND HEADER 10x2 Digital Pins HEADER 12x2 Analog Pins For information on how to add these on your own board refer to Adding BLE module compatible headers on your own baseboard on page 195. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 105
1 | Manual part 2 | Users Manual | 4.64 MiB | / January 01 2015 |
Hardware 5.2 5.2.1 BLE Module Board PSoC 4 BLE or PRoC BLE The PRoC BLE or PSoC 4 BLE is the main component on the BLE Module. It provides the RF interface and analog and digital capability. The PRoC BLE or PSoC 4 BLE pins are mapped to the Bluetooth module headers (see Figure 5-20). For more information, refer to the BLE web page. Figure 5-20. Schematics and Board Highlight of Bluetooth Module Headers for BLE Pins 12 14 16 18 20 P1.2 P1.0 P0.5 P0.3 P0.1 ER 10x2 al Pins P6.0 P6.1
/XRES P4.0 P4.1 P5.0 P5.1 VDDD 1 2 3 4 5 6 7 8 9 10 11 12 13 14 50 Ohm Wiggle Antenna J4 C14 1122 C13 1.2 pF 1.5 pF L1 6.8nH No Load VDDR VCCD VDDA VREF
. 7 3 P 6 3 P 5 3 P 4 3 P 3 3 P 2 3 P 1 3 P 0 3 P
. 7 2 P 6 2 P 7 5 6 5 5 5 4 5 3 5 2 5 1 5 0 5 9 4 8 4 7 4 6 4 5 4 4 4 3 4 U1
. 6 3 P 5 3 P 4 3 P 3 3 P 2 3 P 1 3 P 0 3 P
. A D D V F E R V
. 7 2 P 6 2 P
. 7 3 P A S S V D C C V D A P E VDDD XTAL32O/P6.0 XTAL32I/P6.1 XRES P4.0 P4.1 P5.0 P5.1 VSSD VDDR GANT1 ANT GANT2 VDDR I CY8C4247LQI-BL483 O 4 2 L A T X 4 2 L A T X R D D V R D D V
. 0 0 P 1 0 P 2 0 P 3 0 P
. 4 0 P 5 0 P 6 0 P 7 0 P 0 1 P
. D D D V 5 1 6 1 8 1 9 1 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 7 1 O 4 2 L A T X I 4 2 L A T X
. 0 0 P 1 0 P 2 0 P 3 0 P
. 4 0 P 5 0 P 6 0 P 7 0 P 0 1 P
. VDDA P2.5 P2.4 P2.3 P2.2 P2.1 P2.0 VDDA P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 42 41 40 39 38 37 36 35 34 33 32 31 30 29 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0 P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 VDDD PCA: 121-60159-01 PCB: 600-60195-01 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 106 5.2.2 Bluetooth Module Headers (20-Pin and 24-Pin Headers) The PSoC 4 BLE and PRoC BLE Modules connect to the Pioneer board using the two (20-pin and 24-pin) Bluetooth module headers (Figure 5-21). All GPIOs and power domains are brought out to these headers. These headers are the counterparts of the connectors in section 5.1.4. Figure 5-21. Schematics and Board Highlight of Headers Hardware VDDR TP2 RED TP1 VREF RED VDDA TP3 RED P3.7 P3.5 P3.3 P3.1 P5.1 P5.0 P2.7 P2.5 P2.3 P2.1 VDDD TP4 RED TP5 BLACK
/XRES P0.7 P0.6 P1.2 P1.0 P0.5 P0.3 P0.1 P3.6 P3.4 P3.2 P3.0 P4.0 P4.1 P2.6 P2.4 P2.2 P2.0 P1.6 P1.7 P1.5 P1.3 P1.4 P1.1 P0.4 P0.2 P0.0 J1 1 3 5 7 9 11 13 15 17 19 21 23 2 4 6 8 10 12 14 16 18 20 22 24 HEADER 12x2 Analog Pins J2 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 HEADER 10x2 Digital Pins CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 107 5.2.3 Wiggle Antenna Both the modules use the wiggle antenna. Refer to the Antenna Design Guide (AN91445) for details. Figure 5-22. Board Highlight of Wiggle Antenna Hardware CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 108 Hardware 5.2.4 Antenna Matching Network An Antenna Matching Network is required between the BLE device and the antenna to achieve opti-
mum performance (Figure 5-23). The matching network has four main tasks:
Transform the balanced output of the radio to an unbalanced connection to the antenna (balun). Transform the output impedance of the radio to a 50-ohm antenna. Suppress harmonics to a level below the regulations level in TX mode. Suppress the local oscillator (LO) leakage in RX mode. Figure 5-23. Schematics and Board Highlight of Antenna Matching Network and Antenna CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 109 Hardware 5.2.5 BLE Passives Module boards include a 24-MHz crystal and a 32-kHz crystal, the CMOD and shield (CTANK) circuit for CapSense, a SAR bypass capacitor, and adequate decoupling capacitors for all the power domains, as shown in Figure 5-24. Figure 5-24. Schematics and Board Highlight of External Crystal, CMOD, CTANK, Decaps, Jumpers VDDR C1 0.1 uF 0603 C2 1.0 uF 0402 C3 0.1 uF 0603 C4 1.0 uF 0402 C5 0.1 uF 0603 C6 1.0 uF 0402 C7 0.1 uF 0603 C8 1.0 uF 0402 VDDD C9 0.1 uF 0603 C10 1.0 uF 0402 C11 0.1 uF 0603 C12 1.0 uF 0402 VREF C15 1.0 uF SAR bypass 0603 VDDA C16 0.1 uF 0603 C17 1.0 uF 0402 C18 0.1 uF 0603 C19 1.0 uF 0402 VDDD VCCD C20 1.0 uF 0603 0805 R1 Zero Ohm No Load No Load 5 0 8 0 R2 Zero Ohm Shunt Resistor P4.0 C21 2200 pF CMOD P4.1 C22 10000 pF C_Tank CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 110 Hardware 5.2.6 5.3 Test Points All power domains are brought out as test points for easy probing. BLE Dongle Board See PSoC 4 BLE or PRoC BLE on page 106. See Wiggle Antenna on page 108. See Antenna Matching Network on page 109. See Pioneer Board LEDs on page 101. See Push Buttons on page 102. Figure 5-25. Board Highlight CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 111 5.3.1 Power System The board is powered directly using 5 V from the USB port, as shown in Figure 5-26. Figure 5-26. Power Supply Block Diagram With Protection Circuits Hardware Headers 5V 5V PRoC PSoC5LP USB 5V PTC B S U ESD Protection 5.3.1.1 Protection Circuits The PTC resettable fuse is connected to protect the computer's USB ports from shorts and overcur-
rent. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 112 Hardware 5.3.2 USB Type A Plug The PSoC 5LP connects to the USB port of a PC through a USB type A plug (Figure 5-27). This plug can also be used to power the board. A resettable polyfuse is used to protect the computer's USB ports from shorts and overcurrent. If more than 500 mA is applied to the USB port, the fuse will auto-
matically break the connection until the short or overload is removed. The VBUS, D+, and D lines from the USB connector are also protected against ESD events using TVS diodes. Figure 5-27. Schematics and Board Highlight of USB Type A Plug CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 113 Hardware 5.3.3 User LED A user LED is provided to indicate status from the PRoC BLE device (Figure 5-28). It is also used to show the bind status. Figure 5-28. Schematics and Board Highlight of User LED BLE_STATUS R7 0805 820 ohm LED1 2 1 0805 Status LED Blue CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 114 6. Advanced Topics 6.1 This chapter describes advanced features of the BLE Pioneer kit as well as the corresponding projects. It can be used as reference to exploit these features for other applications, according to project requirements. Using PSoC 5LP as USB-UART Bridge The PSoC 5LP serves as a USB-UART bridge, which can communicate with the COM terminal software. This section explains how to create a PSoC 4 BLE code example to communicate with the COM terminal software. Users who have a Windows operating system that does not have HyperTerminal can use an alternative terminal software such as PuTTY. 1. Create a new PSoC 4 BLE project in PSoC Creator, as shown in Figure 6-1. Select an appropriate location for your project and rename the project as required. Figure 6-1. Create New Project in PSoC Creator CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 115 2. Drag and drop a UART (SCB) component (Figure 6-2) to the TopDesign. Figure 6-2. UART Component in Component Catalog Advanced Topics 3. To configure the UART, double-click or right-click the UART component and select Configure, as shown in Figure 6-3. Figure 6-3. Open UART Configuration Window CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 116 4. Change the instance name to UART. Configure the UART as shown in Figure 6-4, Figure 6-5, and Figure 6-6. Click OK. Figure 6-4. UART Configuration Tab Window Advanced Topics Figure 6-5. UART Basic Tab Window CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 117 Figure 6-6. UART Advanced Tab Window Advanced Topics 5. Select P1[4] for UART RX and P1[5] for UART TX in the Pins tab of <Project_Name>.cydwr, as shown in Figure 6-7. Figure 6-7. Pin Selection CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 118 Advanced Topics 6. Place the following code in your main.c project file. The code will echo any UART data received. int main()
{
uint8 ch;
/* Start SCB UART TX+RX operation */
UART_Start();
/* Transmit String through UART TX Line */
UART_UartPutString("CY8CKIT-042-BLE USB-UART");
for(;;)
{
/* Get received character or zero if nothing has been received yet
*/
ch = UART_UartGetChar();
if(0u != ch)
{
/* Send the data through UART. This function is blocking and waits until there is an entry into the TX FIFO. */
UART_UartPutChar(ch);
}
}
}
7. Build the project by clicking Build > Build {Project Name} or [Shift][F6]. After the project is built without errors and warnings, program (by choosing Debug > Program) the project to PSoC 4 BLE/PRoC BLE through the PSoC 5LP USB programmer or MiniProg3. Note: UART RX and UART TX can be routed to any digital pin on PSoC 4 BLE/PRoC BLE based on the configuration of the UART component. An SCB implementation of UART will route the RX and TX pins to one of the following subsets: (P0[0], P0[1] or P0[4], P0[5] or P1[4], P1[5] or P3[0], P3[1] or P3[4], P3[5] or P5[0], P5[1]). CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 119 Advanced Topics To communicate with the PSoC 4 from the terminal software, follow this procedure:
1. Connect USB mini-B to J13. The kit enumerates as a KitProg USB-UART and is available in the Device Manager, Ports (COM & LPT). A communication port is assigned to the KitProg USB-UART, as shown in Figure 6-8. Figure 6-8. KitProg USB-UART in Device Manager CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 120 Advanced Topics 2. Open HyperTerminal and choose File > New Connection and enter a name for the new connection and click OK, as shown in Figure 6-9. For PuTTY, double-click the PuTTY icon and select Serial under Connection. Figure 6-9. Open New Connection HyperTerminal PuTTY CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 121 Advanced Topics 3. A new window opens, where the communication port can be selected. In HyperTerminal, select COMx (or the specific communication port that is assigned to the Kit-
Prog USB-UART) in Connect using and click OK, as shown in Figure 6-10. In PuTTY enter the COMx in Serial line to connect to. This code example uses COM12. Figure 6-10. Select Communication Port HyperTerminal PuTTY CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 122 Advanced Topics 4. In HyperTerminal, select Bits per second, Data bits, Parity, Stop bits, and Flow control under Port Settings and click OK, as shown in Figure 6-11. Make sure that the settings are identical to the UART settings configured for the BLE device. In PuTTY select Speed (baud), Data bits, Stop bits, Parity and Flow control under Configure the serial line. Click Session and select Serial under Connection type. Serial line shows the communication port (COM12) and Speed shows the baud rate selected. Click Open to start the communication. Figure 6-11. Configure the Communication Port HyperTerminal PuTTY CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 123 Advanced Topics 5. Enable Echo typed characters locally in File > Properties > Settings > ASCII Setup, to display the typed characters on HyperTerminal, as shown in Figure 6-12. In PuTTY, select Force on in Terminal > Line discipline options to display the typed characters on PuTTY, as shown in Figure 6-13. Figure 6-12. Enable Echo of Typed Characters in HyperTerminal Figure 6-13. Enabling Echo of Typed Characters in PuTTY CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 124 6. The COM terminal software displays both the typed data and the echoed data from the PSoC 4 BLE or PRoC BLE UART, as shown in Figure 6-14 and Figure 6-15. Figure 6-14. Data Displayed on HyperTerminal Advanced Topics Figure 6-15. Data Displayed on PuTTY CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 125 Advanced Topics 6.2 Using PSoC 5LP as USB-I2C Bridge The PSoC 5LP serves as a USB-I2C bridge that can be used to communicate with the USB-I2C software running on the PC. The following steps describe how to use the USB-I2C bridge, which can communicate between the BCP and the PSoC 4 BLE/PRoC BLE. 1. Create a new project targeting the PSoC 4 BLE/PRoC BLE device in PSoC Creator, as shown in Figure 6-16. Figure 6-16. Create New Project in PSoC Creator CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 126 2. Drag and drop an I2C component (Figure 6-17) to the TopDesign. Figure 6-17. I2C Component in Component Catalog Advanced Topics 3. To configure the I2C component, double-click or right-click the I2C component and select Config-
ure, as shown in Figure 6-18. Figure 6-18. Open I2C Configuration Window CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 127 4. Change the instance name to I2C. Configure the I2C component according to the settings in Figure 6-19 and Figure 6-20 and click OK. Figure 6-19. Configuration Tab Advanced Topics Figure 6-20. I2C Basic and Advanced Tabs CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 128 5. Select pin P3[5] for the I2C SCL and pin P3[4] for the I2C SDA in the Pins tab of
<Project_Name>.cydwr, as shown in Figure 6-21. Figure 6-21. Pin Selection_USBI2C Advanced Topics 6. Place the following code in your main.c project file. The code will enable the PSoC 4 BLE/PRoC BLE device to transmit and receive I2C data to and from the BCP application. int main()
{
uint8 wrBuf[10]; /* I2C write buffer */
uint8 rdBuf[10]; /* I2C read buffer */
uint8 indexCntr;
uint32 byteCnt;
/* Enable the Global Interrupt */
CyGlobalIntEnable;
/* Start I2C Slave operation */
I2C_Start();
/* Initialize write buffer */
I2C_I2CSlaveInitWriteBuf((uint8 *) wrBuf, 10);
/* Initialize read buffer */
I2C_I2CSlaveInitReadBuf((uint8 *) rdBuf, 10);
for(;;) /* Loop forever */
{
/* Wait for I2C master to complete a write */
CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 129 Advanced Topics if(0u != (I2C_I2CSlaveStatus() & I2C_I2C_SSTAT_WR_CMPLT))
{
/* Read the number of bytes transferred */
byteCnt = I2C_I2CSlaveGetWriteBufSize();
/* Clear the write status bits*/
I2C_I2CSlaveClearWriteStatus();
/* Move the data written by the master to the read buffer so that the master can read back the data */
for(indexCntr = 0; indexCntr < byteCnt; indexCntr++)
{
rdBuf [indexCntr] = wrBuf[indexCntr]; /* Loop back the data to the read buffer */
}
/* Clear the write buffer pointer so that the next write operation will start from index 0 */
I2C_I2CSlaveClearWriteBuf();
/* Clear the read buffer pointer so that the next read operations starts from index 0 */
I2C_I2CSlaveClearReadBuf();
}
/* If the master has read the data , reset the read buffer pointer to 0 and clear the read status */
if(0u != (I2C_I2CSlaveStatus() & I2C_I2C_SSTAT_RD_CMPLT))
{
/* Clear the read buffer pointer so that the next read operations starts from index 0 */
I2C_I2CSlaveClearReadBuf();
/* Clear the read status bits */
I2C_I2CSlaveClearReadStatus();
}
}
}
7. Build the project by choosing Build > Build Project or [Shift] [F6]. After the project is built without errors and warnings, program ([Ctrl] [F5]) this code onto the PSoC 4 BLE/PRoC BLE through the PSoC 5LP programmer or MiniProg3. 8. Open the BCP from Start > All Programs > Cypress > Bridge Control Panel <version number>. 9. Connect to KitProg/ under Connected I2C/SPI/RX8 Ports, as shown in Figure 6-22. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 130 Figure 6-22. Connecting to KitProg/ in BCP Advanced Topics CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 131 10.Open Protocol Configuration from the Tools menu and select the appropriate I2C Speed, as shown in Figure 6-23. Make sure the I2C speed is the same as the one configured in the I2C component. Click OK to close the window. Figure 6-23. Opening Protocol Configuration Window in BCP Advanced Topics 11.From the BCP, transfer five bytes of data to the I2C device with slave address 0x08. Type the command shown in Figure 6-24 and press [Enter] or click the Send button in the BCP. The log shows whether the transaction was successful. A '+' indication after each byte indicates that the transaction was successful and a '' indicates that the transaction was a failure. Figure 6-24. Entering Commands in BCP CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 132 12.From the BCP, read five bytes of data from the I2C slave device with slave address 0x08. The log shows whether the transaction was successful, as shown in Figure 6-25. Figure 6-25. Read Data Bytes from BCP Advanced Topics Note: Refer to Help Contents under Help in BCP or press [F1] for details of I2C commands. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 133 Advanced Topics 6.3 Developing Applications for PSoC 5LP The BLE Pioneer kit has an onboard PSoC 5LP whose primary function is that of a programmer and a bridge. You can build either a normal project or a bootloadable project using the PSoC 5LP. The PSoC 5LP connections in the Pioneer board are summarized in Figure 6-26. J8 is the I/O connector. The USB (J13) is connected and used as the PC interface. However, you can still use this USB connection to create customized USB designs. Figure 6-26. PSoC 5LP Connections on BLE Pioneer Kit 6.3.1 The programming header (J7) is meant for standalone programming. This header needs to be populated. See the 'No Load Components' section in Bill of Materials (BOM) on page 184. Building a Bootloadable Project for PSoC 5LP All bootloadable applications developed for the PSoC 5LP should be based on the bootloader hex file, which is programmed onto the kit. The hex files are included in the following kit installer directory:
<Install_Directory>\CY8CKIT-042-BLE Kit\<version>\Firmware\Programmer\
KitProg_Bootloader Figure 6-27. KitProg Bootloader Hex File Location CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 134 Advanced Topics To build a bootloadable application for the PSoC 5LP, follow this procedure:
1. In PSoC Creator, choose New > Project > PSoC 5LP, click the expand button adjacent to Advanced, select Launch Device Selector to bring up the Select Device Window and select the Device as CY8C5868LTI-LP039, as shown in Figure 6-28. Select the Application Type as Bootloadable from the drop-down list and click OK. Figure 6-28. Create New Project in PSoC Creator_PSoC 5LP CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 135 Figure 6-29. Select Device in PSoC Creator Advanced Topics 2. Navigate to the Schematic view and drag and drop a Bootloadable component (Figure 6-30) on the TopDesign. Figure 6-30. Bootloadable Component in Component Catalog CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 136 To configure the Bootloadable, double-click or right-click the Bootloadable component and select Configure. In the General tab, enable the check box for Manual application image placement and set the Placement address to 0x00002800. Figure 6-31. Configuration Window of Bootloadable Component in General Tab Setting Advanced Topics Set the dependency of the Bootloadable component by selecting the Dependencies tab in the configuration window and clicking the Browse button, as shown in Figure 6-32. Select the KitProg_Bootloader.hex (Figure 6-33) and KitProg_Bootloader.elf files (Figure 6-34); click Open. Figure 6-32. Configuration Window of Bootloadable Component in the Dependencies Tab CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 137 Figure 6-33. Select KitProg Bootloader Hex File Advanced Topics Figure 6-34. Select KitProg Bootloader Elf File 3. Develop your custom project. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 138 4. Make sure that the NVL setting of the Bootloadable project and the KitProg_Bootloader project is the same. Figure 6-35 shows the KitProg_Bootloader.cydwr system settings. Figure 6-35. KitProg Bootloader System Settings Advanced Topics 5. Build the project in PSoC Creator by choosing Build > Build Project or [Shift] [F6]. 6. To download the project onto the PSoC 5LP device, open the Bootloader Host tool, which is available in PSoC Creator. Choose Tools > Bootloader Host, as shown in Figure 6-36. Figure 6-36. Open Bootloader Host Tool in PSoC Creator CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 139 7. In the Bootloader Host tool, click Filters and add a filter to identify the USB device. Ensure that the check box for Show USB Devices is enabled. Set VID as 0x04B4, PID as 0xF13B, and click OK, as shown in Figure 6-37. Figure 6-37. Port Filters Tab in Bootloader Host Tool Advanced Topics CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 140 8. In the Bootloader Host tool, click the Open File button (Figure 6-38) to browse to the location of the bootloadable file (*.cyacd), as shown in Figure 6-38. Figure 6-38. Open Bootloadable File in Bootloader Host Tool Advanced Topics Figure 6-39. Select Bootloadable .cyacd File in Bootloader Host 9. Keep the reset switch (SW1) pressed and plug in the USB mini-B connector. If the switch is pressed for more than 100 ms, the PSoC 5LP enters into bootloader. Click the Program button
(Figure 6-38) in the Bootloader Host tool to program the device. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 141 Advanced Topics 10.If bootload is successful, the log of the tool displays Programming Finished Successfully;
otherwise, it displays Failed and a reason for the failure. Notes:
The PSoC 5LP pins are brought to the PSoC 5LP GPIO header (J8). These pins are selected to support high-performance analog and digital projects. See PSoC 5LP GPIO Header (J8) on page 97 for pin information. Take care when allocating the PSoC 5LP pins for custom applications. For example, P2[0]P2[4]
are dedicated for programming the PSoC 4 BLE/PRoC BLE. See Schematics on page 168 before allocating the pins. When a custom project is programmed onto the PSoC 5LP, the initial capability of the PSoC 5LP to act as a programmer, USB-UART bridge, or USB-I2C bridge in not available. The status LED does not function unless used by the custom project. For additional information on bootloaders, refer to Cypress application note, AN73503 - USB HID Bootloader for PSoC 3 and PSoC 5LP. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 142 Advanced Topics 6.3.2 Building a Normal Project for PSoC 5LP A normal project is a completely new project created for the PSoC 5LP device on the CY8CKIT-042. Here the entire flash of the PSoC 5LP is programmed, overwriting all bootloader and programming code. To recover the programmer, reprogram the PSoC 5LP device with the factory-set KitProg.hex file, which is shipped with the kit installer. The KitProg.hex file is available at the following location:
<Install_Directory>\CY8CKIT-042-BLE Kit\<version>\Firmware\
Programmer\KitProg This advanced functionality requires a MiniProg3 programmer, which is not included with this kit. The MiniProg3 can be purchased from www.cypress.com/go/CY8CKIT-002. To build a normal project for the PSoC 5LP, follow these steps:
1. In PSoC Creator, choose New > Project > PSoC 5LP, click the expand button adjacent to Advanced, select Device as CY8C5868LTI-LP039, and select Application Type as Normal from the drop-down list, as shown in Figure 6-40. Figure 6-40. Create New Project in PSoC Creator_PSoC 5LP 2. Develop your custom project. 3. Build the project in PSoC Creator by choosing Build > Build Project or pressing [Shift] [F6]. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 143 Advanced Topics 4. Connect the 10-pin connector of MiniProg3 to the onboard 10-pin SWD debug and programming header J7 (which needs to be populated). 5. To program the PSoC 5LP with PSoC Creator, choose Debug > Program or press [Ctrl] [F5]. If the Programming window appears and shows MiniProg3 and the selected device in the project under it (CY8C5868LTI-LP039); click on the device and click Connect to program. Notes:
The 10-pin SWD debug and programming header (J7) is not populated. See the 'No Load Components' section of A.3 Bill of Materials (BOM) for details. The PSoC 5LP pins are brought to the PSoC 5LP GPIO header (J8). These pins are selected to support high-performance analog and digital projects. See PSoC 5LP GPIO Header (J8) on page 97 for pin information. Take care when allocating the PSoC 5LP pins for custom applications. For example, P2[0]P2[4]
are dedicated for programming the PSoC 4. Refer to A.1 Schematics before allocating the pins. When a normal project is programmed onto the PSoC 5LP, the initial capability of the PSoC 5LP to act as a programmer, USB-UART bridge, or USB-I2C bridge is not available. The status LED does not function unless it is used by the custom project. PSoC 5LP Factory Program Restore Instructions The BLE Pioneer Kit features a PSoC 5LP device that comes factory-programmed as the onboard programmer and debugger for the PSoC 4 BLE/PRoC BLE device. In addition to creating applications for the BLE device, you can also create custom applications for the PSoC 5LP device on this kit. For details, see section Developing Applications for PSoC 5LP on page 134. Reprogramming or bootloading the PSoC 5LP device with a new flash image will overwrite the factory program and forfeit the ability to use the PSoC 5LP device as a programmer/
debugger for the BLE device. Follow the instructions to restore the factory program on the PSoC 5LP and enable the programmer/debugger functionality. PSoC 5LP is Programmed with a Bootloadable Application If the PSoC 5LP is programmed with a bootloadable application, restore the factory program by using one of the following two methods. Restore PSoC 5LP Factory Program Using PSoC Programmer 1. Launch PSoC Programmer 3.21.1 or later from Start > Cypress > PSoC Programmer. 2. Configure the BLE Pioneer Kit in service mode. To do this, while holding down the reset button
(SW1 Reset), plug in the BLE Pioneer Kit to the computer using the included USB cable (USB A to mini-B). This puts the PSoC 5LP into service mode, which is indicated by the blinking green status LED. 6.4 6.4.1 6.4.1.1 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 144 3. The following message appears in the PSoC Programmer Results window, as shown in Figure 6-41: KitProg Bootloader device is detected. Figure 6-41. PSoC Programmer Results Window Advanced Topics CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 145 4. Switch to the Utilities tab in PSoC Programmer and press the Upgrade Firmware button, as shown in Figure 6-42. Unplug all other PSoC programmers (such as MiniProg3 and DVKProg) from the PC before pressing the Upgrade Firmware button. Figure 6-42. Upgrade Firmware Advanced Topics CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 146 5. After programming has completed, the following message appears, as shown in Figure 6-43:
Firmware Update Finished at <time>. Figure 6-43. Firmware Update Completed Advanced Topics 6. The factory program is now successfully restored on the PSoC 5LP. It can be used as the programmer/debugger for the PSoC 4 BLE or PRoC BLE device. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 147 Advanced Topics 6.4.1.2 Restore PSoC 5LP Factory Program Using Bootloader Host Tool 1. Launch the Bootloader Host tool from Start > Cypress > PSoC Creator. 2. Using the File > Open menu, load the KitProg.cyacd file, which is installed with the kit software, as shown in Figure 6-44. The default location for this file is: <Install_Directory>\
CY8CKIT-042-BLE Kit\<version>\Firmware\Programmer\KitProg\KitProg.cyacd Figure 6-44. Load KitProg.cyacd File CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 148 Advanced Topics 3. Configure the Pioneer Kit in service mode. To do this, while holding down the reset button (SW1 Reset), plug in the BLE Pioneer Kit to the computer using the included USB cable (USB A to mini-B). This puts the PSoC 5LP into service mode, which is indicated by the blinking green status LED. In the Bootloader Host tool, set the filters for the USB devices with VID: 04B4 and PID: F13B. The USB Human Interface Device port appears in the Ports list. Click that port to select it, as shown in Figure 6-45. 4. Figure 6-45. Select USB Human Interface Device 5. Click the Program button (or choose Actions > Program) to restore the factory-program by bootloading it onto the PSoC 5LP. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 149 6. After programming has completed, the following message appears, as shown in Figure 6-46:
Programming Finished Successfully. Figure 6-46. Programming Finished Successfully Advanced Topics 7. The factory program is now successfully restored on the PSoC 5LP. It can be used as the programmer/debugger for the PSoC 4 BLE/PRoC BLE device. 6.5 Using FM24V10 F-RAM The BLE 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 I2C lines (P3_4 and P3_5); the same lines are also routed to the PSoC 5LP I2C lines. Because the F-RAM device is an I2C slave, it can be accessed or shared among various I2C masters on the same line. For more details on the F-RAM device, refer to the device datasheet. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 150 Advanced Topics 6.5.1 Address Selection The slave address of the F-RAM device consists of three parts, as shown in Figure 6-47: slave ID, device select, and page select. Slave ID is an F-RAM family-specific ID located in the datasheet of the particular F-RAM device. For the device used in BLE 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 on the BLE Pioneer board is controlled by resistors R32/R36 (A1) and R33/R37 (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 6-47. F-RAM I2C Address Byte Structure 6.5.2 Write/Read Operation The device's datasheet includes details on how to perform a write/read operation with the F-RAM. Figure 6-48 and Figure 6-49 provide a snapshot of the write/read packet structure as a quick reference. Figure 6-48. F-RAM Single-Byte and Multiple-Byte Write Packet Structure CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 151 Figure 6-49. F-RAM Single-Byte and Multiple-Byte Read Packet Structure Advanced Topics 6.6 As shown in the figures, all operations start with the slave address followed by the memory address. For write operations, the bus master sends each byte of data to the memory, and the memory generates an acknowledgement condition. For read operations, after receiving the complete slave address and memory address, the memory begins shifting data from the current address on the next clock. CySmart iOS/Android Application The CySmart mobile application is a powerful tool that allows the mobile device (iOS/Android) with BLE capability to connect to a BLE peripheral device and communicate with it. It supports various standard BLE services along with two custom services for CapSense and LED control. It also provides a common support for all profiles, standard or custom. This app is free. You can download and install it for Apple iOS devices from the App Store and for Android Devices from Play Store. Make sure that the mobile device being used supports BLE. To verify the example project using the CySmart mobile app, follow these steps. 1. Plug the BLE Pioneer Kit into the PC for power, using the J13 USB connector. 2. Program the kit with the desired BLE example project. 3. Open the app on the mobile device. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 152 If Bluetooth is not enabled on the device, the app will ask to enable it, as shown in Figure 6-50. 4. Figure 6-50. Turn on Bluetooth on Device Advanced Topics 5. After Bluetooth is enabled, the app will automatically search for available BLE peripherals and list them, as shown in Figure 6-51. Select the BLE Pioneer Kit peripheral in the list. The name displayed in the list will be the same as that set in the BLE Component. Figure 6-51. Peripheral Connections Page CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 153 6. When connected, the app will list the supported profiles by the peripherals, as shown in Figure 6-52. Tap on the desired profile. Figure 6-52. Profiles Page Advanced Topics 7. Depending on the type of profile chosen, the app will display options for the profile. Figure 6-53 shows an example for the CapSense slider custom profile, where swiping a finger on the CapSense slider of the BLE Pioneer Kit is reflected in the app. See Pioneer Baseboard on page 88. Figure 6-53. CapSense Slider GUI 8. To go to a different service, go back to the service page in the GUI. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 154 Advanced Topics 9. To connect to a new BLE peripheral, go back to home page and swipe the screen below to scan for devices. 10.To transfer data/notifications through any other profile that is not listed on the Profiles page after connecting to the peripheral, go to the GATT DB option on the Profiles page. The GATT DB allows you to access the services and characteristics of a profile directly, as shown in Figure 6-54, and to modify or receive values through BLE. Figure 6-54. GATT DB GUI for Characteristics The Data Logger option provides a textual form of all the events that has happened with a particular BLE peripheral device, including scanning and connection. Figure 6-55. Data Logger CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 155 Advanced Topics Two custom profiles are created for demonstrating the BLE Pioneer Kit features: the CapSense profile and the RGB LED profile. Both these profiles are integrated into the CySmart mobile app, as easy-to-use GUI. The CapSense profile GUI supports three CapSense functionalities. CapSense Buttons: After connecting to the BLE peripheral, the CapSense Buttons service page displays the number of CapSense buttons supported by the peripheral, as shown in Figure 6-56. Any touch on one of the CapSense buttons on the peripheral is reflected in the CySmart GUI. Figure 6-56. CapSense Buttons GUI Page CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 156 Advanced Topics CapSense Slider: After connecting to the BLE peripheral, the CapSense Slider service page displays the CapSense slider as supported by the peripheral, as shown in Figure 6-57. Swiping a finger on the CapSense slider on the peripheral is reflected in the CySmart GUI. For example, the CapSense_Slider_LED project (CapSense Slider and LED on page 47) will show this utility on the app. Figure 6-57. CapSense Slider GUI Page CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 157 Advanced Topics CapSense Proximity: After connecting to the BLE peripheral, the CapSense Proximity service page displays the CapSense proximity supported by the peripheral, as shown in Figure 6-58. A change in proximity on the proximity sensor (such as a wire) on the peripheral is reflected in the CySmart GUI. For example, the CapSense_Proximity project (CapSense Proximity on page 62) will show this utility on the app. Figure 6-58. CapSense Proximity GUI Page CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 158 Advanced Topics The RGB LED profile allows you to control the color and intensity of the BLE Pioneer Kit onboard RGB LED, as shown in Figure 6-59. Pressing any part of the color gamut on the GUI is reflected on the BLE peripheral device with the onboard RGB LED. Note: The onboard RGB LED color range depends on the LED being used. It is possible that the complete color gamut is not reflected on the onboard RGB LED due to limitations on the LED itself. For example, the CapSense_Slider_LED project (CapSense Slider and LED on page 47) will show this utility on the app. Figure 6-59. RGB LED Profile CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 159 Advanced Topics 6.7 CySmart PC Tool The CySmart PC tool is a BLE Central host emulation tool that, along with the dongle, allows you to connect to a BLE peripheral device and transfer data over BLE services. Also, it displays all the packets that are involved during the connection, which can be analyzed for details. The CySmart PC tool is installed as part of the BLE Pioneer Kit installer. To launch the software, choose Start > All Programs > Cypress > CySmart <version> > CySmart <version>. Follow these steps to connect to a BLE peripheral device using the dongle and CySmart PC tool and to transfer data. 1. Connect the dongle to one of the USB ports on the PC. Figure 6-60. Connect Dongle to USB Port CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 160 2. Start the CySmart PC tool on the PC. You will see a list of dongles connected to it. Select the dongle you want to use and click Connect, as shown in Figure 6-61. Figure 6-61. Selecting Dongle in CySmart PC Tool Advanced Topics 3. The CySmart PC tool can be used to connect to any BLE peripheral device, including the BLE Pioneer kit. To connect to the BLE Pioneer kit, power the kit through the J13 USB connector and program the appropriate BLE peripheral project to it. Follow the steps according to the project description to start advertising. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 161 4. When the dongle is selected and connected to, the main window shown in Figure 6-62 opens up. Figure 6-62. CySmart PC Tool Main Window Advanced Topics The important parts of this window are as follows:
Menu bar: This contains options to exit or find help about the CySmart PC tool. Dongle settings: These settings comprise of Select Dongle, Configure Master Settings, and Manage PSMs. Select the dongle allows to connect to a dongle that is listed by the system. If a different dongle needs to be connected, then this option can be used. Configure Master Settings option allows to modify the various settings that the dongle requires to act as a BLE Central device such as connection parameters, scan parameters, or security parameters. Manage PSMs allows to register for PSM or modify them. Discovered devices options: The Master tab provides three options by default: Start Scan, Connect, and Add to Whitelist. The Start Scan button allows the tool to start scanning for available BLE peripheral devices and list them in the Discovered Devices window. This option also allows to stop an ongoing scan. The Connect option allows to connect to a particular BLE peripheral device that is listed in the Discovered Device window. Add to Whitelist allows to add a selected device address to the whitelist. Advertisement Data/Scan response data tabs: These tabs provide the description of the data received in the advertisement packet and scan response packet from the selected device. Discovered Devices window: This window lists all the peripheral devices found after starting a scan. Selecting any device populates the information on advertisement data and scan response data on the right side window. Whitelist window: This window lists the devices that have been added as whitelist and provides options to add, remove, or clear devices from the whitelist. Raw Data window: This window displays the raw data (in hexadecimal) of the field selected. Log window: This window displays all the activities that occur on the dongle and the data communicated. This feature is also useful for debugging. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 162 1. Click Start Scan to see the list of available BLE peripheral devices, as shown in Figure 6-63. Figure 6-63. Scanned Devices Listed in CySmart PC Tool Advanced Topics 2. After the available devices are listed, choose the desired peripheral and double-click Connect, as shown in Figure 6-64. Figure 6-64. Start Connection with Selected Device CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 163 3. If the connection is successful, you will see another tab opening besides the Master tab. This tab provides options with respect to the connected BLE device, as shown in Figure 6-65. Figure 6-65. Connected Device Tab Advanced Topics 4. On the device tab, click Discover All Attributes to find the supported attributes by the connected BLE device. This action populates the list of services and characteristics in the Attribute window along with their values, if any, as shown in Figure 6-66. Figure 6-66. Discover All Attributes CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 164 5. You can read the characteristics individually or you can use the Read All Characteristics option to update the values for all readable characteristics, as shown in Figure 6-67. Figure 6-67. Read All Characteristics Advanced Topics 6. To modify the value of a characteristic individually, select the particular characteristic from the attribute list. The Attribute Details window on the right will display the properties of the selected characteristics as well as the options to modify or read the values, as shown in Figure 6-68. Figure 6-68. Modify a Characteristic 7. Similarly, notifications or indications can be enabled on the characteristics that support those properties. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 165 8. The list of attributes of the connected BLE device can also be saved in .csv format for later use. For this, click the Export button on the device tab and select the location where you want the file to be saved, as shown in Figure 6-69. Figure 6-69. Save Attribute List to a File Advanced Topics 9. The tool also allows sending specific commands to the BLE peripheral device. These commands are present in the Send Commands tab on the device window. Select the command to be sent from the list and click Send, as shown in Figure 6-70. Figure 6-70. Send Commands CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 166 10.To disconnect from the device, go to the Master tab, select the connected device, and click Disconnect, as shown in Figure 6-71. Figure 6-71. Disconnect BLE Device Advanced Topics Note: Refer to the CySmart PC tool user guide for more information. To access the user guide from the tool, go to Help > Help Topics. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 167 A. Appendix A.1 Schematics A.1.1 BLE Pioneer Board C7 1.0 uF C8 0.1 uF 0603 0402 P5LP_VDD PSoC 5LP Programmer / Debugger C6 1.0 uF 0603 0603 D C C V _ P L 5 P D S S V 6 _ 0 P L 5 P 4 _ 0 P L 5 P C24 1.0 uF NO LOAD SAR Bypass Capacitor P5LP_VDD C10 0.1 uF 0402 P5LP_VDD R14 ZERO VBUS P5LP_VDD C9 0.1 uF 0402 U2 5 _ 2 P L 5 P P5LP2_6 P5LP2_7 P5LP12_4 P5LP12_5 VSSD P5LP_XRES P5LP_SWDIO P5LP_SWDCLK P5LP1_2 P5LP_SWO P5LP_TDI P5LP1_5 P5LP_VDD C17 0.1 uF 0402 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 _ 1 P L 5 P EN_CTRL 9 6 8 6 7 6 6 6 5 6 4 6 3 6 2 6 1 6 0 6 9 5 8 5 7 5 6 5 5 5 4 5 3 5 2 5 5 _ 2 P D A P E I 2 O D D V 4 _ 2 P 3 _ 2 P 2 _ 2 P 1 _ 2 P 0 _ 2 P 5 _ 5 1 P 4 _ 5 1 P D D D V D S S V D C C V 7 _ 0 P 6 _ 0 P 5 _ 0 P 4 _ 0 P I 0 O D D V CY8C5868LTI-LP039 QFN68 P2_6 P2_7 P12_4 I2C0_SCL, SIO P12_5 I2C0_SDA, SIO VSSB IND VBOOST VBAT VSSD XRES P1_0 P1_1 P1_2 P1_3 P1_4 P1_5 VDDIO1 I O S _ 6 _ 2 1 P I O S _ 7 _ 2 1 P P D 6 _ 5 1 P M D 7 _ 5 1 P 6 _ 1 P 7 _ 1 P P0_3 P0_2 P0_1 P0_0 SIO_P12_3 SIO_P12_2 VSSD VDDA VSSA VCCA P15_3 P15_2 SIO, I2C1_SDA P12_1 SIO, I2C1_SCL P12_0 P3_7 P3_6 VDDIO3 D D D V D S S V D C C V 0 _ 5 1 P 1 _ 5 1 P 0 _ 3 P 1 _ 3 P 2 _ 3 P 3 _ 3 P 4 _ 3 P 5 _ 3 P 8 1 9 1 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 0 3 1 3 2 3 3 3 4 3 P _ P D P _ M D 6 _ 2 1 P L 5 P 7 _ 2 1 P L 5 P 7 _ 1 P L 5 P 5 1 3R 0 6 0 6 1 3R 0 6 0 D S S V D C C V _ P L 5 P 0 _ 3 P L 5 P 1 _ 3 P L 5 P 4 _ 3 P L 5 P 5 _ 3 P L 5 P P5LP_VDD 0402 C19 0.1 uF VBUS VTARG R17 15K R24 30K R18 15K R25 30K E 2 2 E 2 2 P D _ P L 5 P M D _ P L 5 P P D _ P L 5 P M D _ P L 5 P C20 1.0 uF 0603 0402 C21 0.1 uF 0603 0603 C11 1.0 uF Del Sig Bypass Capacitor C13 1.0 uF SAR Bypass Capacitor P5LP_VDD C14 0.1 uF 0402 0603 C15 1.0 uF C16 1.0 uF 0603 P5LP0_4 to P5LP0_7, P5LP3_2, P5LP3_3 are reserved for HW REV ID 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 P5LP0_3 P5LP0_2 P5LP0_1 P5LP0_0 P5LP12_3 P5LP12_2 VSSD P5LP12_1 P5LP12_0 P5LP3_7 P5LP3_6 P5LP_VDD C18 0.1 uF 0402 P5LP_VDD R21 4.7K NO LOAD P5LP_XRES C22 0.1 uF NO LOAD 0402 P5LP_VDD VTARG C12 0402 0.1 uF 2 S V T W 0 5 3 V 5 J7 2 4 6 8 10 1 3 5 7 9 50MIL KEYED SMD NO LOAD P5LP_SWDIO P5LP_SWDCLK P5LP_SWO P5LP_TDI P5LP_XRES C5 0402 0.1 uF 1 S V T W 0 5 3 V 5 J6 2 4 6 8 10 1 3 5 7 9 50MIL KEYED SMD NO LOAD P5LP12_2 P5LP12_3 SWDIO SWDCLK P5LP12_4 RESET PSoC 5LP Program/Debug Header PSoC 4 / External PSoC Program/Debug Header CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 168 R11 LED2 P5LP3_1 2 1 0805 820 ohm Status LED Green Status LED VDD P5LP2_6 P5LP2_7 R22 2.2K R23 2.2K 2 1 45 6 3 P5LP12_1 P5LP12_0 U4 NTZD3152P R26 ZERO SDA R27 ZERO SCL I2C Connection SPI_MISO / I2C_SDA SPI_SCLK / I2C_SCL VDD P5LP0_0 P5LP3_4 P5LP3_6 P5LP12_6 P5LP12_1 P5LP12_0 P5LP2_5 1 3 5 7 9 11 13 15 P5LP1_2 P5LP0_1 P5LP3_5 P5LP3_7 P5LP12_7 P5LP3_0 P5LP12_5 J8 2 4 6 8 10 12 14 16 1 3 5 7 9 11 13 15 8x2 RECPT 2 4 6 8 10 12 14 16 UART RX SPI_SSEL UART TX SPI_MOSI PSoC 5LP GPIO Expansion Header USB-Serial Bridge Connections P5LP12_6 ------------- UART RX P5LP12_7 ------------- UART TX P5LP12_0 ------------- SPI SCLK / I2C SCL P5LP12_1 ------------- SPI MISO / I2C SDA P5LP12_5 ------------- SPI MOSI P5LP2_5 ------------- SPI SSEL NO LOAD TP2 RED VBUS 2 F1 PTC Resettable Fuse 1 CR2032 Coin Cell Battery Holder 3
-
BT1 2 1
+
D10 SOD123 VDD C4 100uF DM DP P5LP_DM P5LP_DP 6 D 7 D 8 D 3 0 6 0 3 0 6 0 3 0 6 0 VIN J9 1 2 1 2 2 PIN HDR NO LOAD J13 1 2 3 4 5 VBUS DM DP ID GND USB MINI B 2 S 1 S 7 6 100K R6 0402 C3 2 0 4 0 0.01 uF USB MiniB CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 169 V3.3 VDD R7 ZERO NO LOAD Q1 P M O S
(
D M P 3 0 9 8 L
-
7
) R8 15K D9
) F
-
7
-
9 V 3 C 2 5 T Z B
(
V 9
. 3
=
z V PMOS( NTR4171PT1G) Q2 Q3 PMOS(PMV48XP,215) R9 10K VDD VFRAM R59 ZERO NO LOAD Q4 P M O S
(
N T R 4 1 7 1 P T 1 G
) R58 15K D11
) G 1 T 2 8 6 4 Z S M M V 7
(
. 2
=
z V PMOS( NTR4171PT1G) Q6 Q5 PMOS( PMV48XP,215) R20 10K Protection Circuit VBUS VIN D2 SOD123 D4 SOD123 VCC R10 10K EN_CTRL EN_CTRL EN_CTRL VCC 3216 C1
+
1 uFd D1 SOD123 U1 CTL VCC OUT C NC BA00BC0WFP-E2 GND 1 2 3 4 5 6 R1 11K 1%
VADJ D3 SOD123 VDD 3216 C2
+
4.7uF R3 14.7K 1%
R4 10K 1%
R5 4.3K 1%
1 3 2 J16 3 PIN HDR TABLE: LDO PIN FUNCTIONS TABLE: VOLTAGE SELECTION JUMPER SETTINGS Pin No Symbol
. Function JUMPER SETTING O/P VOLTAGE 1 2 3 4 5 6 CTL Output Voltage ON / OFF control VCC Power supply voltage input N.C. Unconnected terminal OUT Voltage output SHORT 2 & 3 SHORT 1 & 2 REMOVE JUMPER 5V 3.3V 1.9V C Output voltage regulation terminal GND Ground TP4 BLACK NO LOAD TP5 BLACK TP6 BLACK NO LOAD GND Test Points CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 170 TP1 RED NO LOAD VADJ R2 LED1 2 1 0805 560 ohm Power LED J15 12 HDR2 VDD BLE_VDD R44 ZERO NO LOAD R45 ZERO VTARG Current Measurement Jumper BLE_VDD
/XRES V3.3 VBUS D5 SOD123 VIN P3_0 P3_1 P3_2 P3_3 P3_4 8 7 6 5 4 3 2 1 1 3 5 7 9 J1 NC IORef Reset V3.3 V5.0 GND GND VIN CON8 J2 A0 A1 A2 A3 A4 P2.0 P2.1 P2.2 P2.3 P2.4 P3_5 11 P2.5 A5 CON6X2 2 4 6 8 10 12 P2_0 P2_1 P2_2 P2_3 P2_4 P2_5 P3_5 10 P3_4 VREF GND P0_3 P0_1 P0_0 P0_2 P0_4 P0_5 P1_0 P1_1 P1_2 P1_3 P1_7 P1_6 P1_5 P1_4 9 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 J3 SCL SDA AREF GND D13 D12 D11 D10 D9 D8 CON10 J4 D7 D6 D5 D4 D3 D2 D1 D0 CON8 NO LOAD TP3 RED BLE_VDD L1 330 OHM @ 100MHz VDDR C26 0.1 uF 0402 L2 VDDA 330 OHM @ 100MHz C27 0.1 uF 0402 L3 330 OHM @ 100MHz VDDD C28 0.1 uF 0402 P1_6 P1_7 P1_5 P1_3 P1_4 P1_1 VREF P0_4 P0_2 P0_0 1 3 5 7 9 11 13 15 17 19 J11 2 4 6 8 10 12 14 16 18 20 VDDD GND
/XRES P0_7 P0_6 P1_2 P1_0 P0_5 P0_3 P0_1 GND P3_6 P3_4 P3_2 P3_0 P4_0 P4_1 P2_6 P2_4 P2_2 P2_0 VDDR 1 3 5 7 9 11 13 15 17 19 21 23 J10 2 4 6 8 10 12 14 16 18 20 22 24 VDDA P3_7 P3_5 P3_3 P3_1 P5_1 P5_0 P2_7 P2_5 P2_3 P2_1 GND HEADER 10x2 Digital Pins HEADER 12x2 Analog Pins
(J1- J4) Arduino Connectors PSoC 4 BLE/PRoC BLE I/O Headers P0_1 P0_3
/XRES J12 2 4 6 1 3 5 3x2 RECPT NO LOAD P0_0 J12 Arduino ICSP compatible header for SPI Interface CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 171 R28 2.2K P2_6 BLE_VDD LED3 1 2 R R29 1.5K R30 1.5K 4 3 P3_6 P3_7 G B RGB LED VFRAM U3 VFRAM C23 C29 0402 0.1 uF 33uF A1 A2 1 2 3 4 NC VDD A1 WP SCL A2 SDA VSS FM24V10 WP 8 7 6 5 VFRAM R31 2.2K R35 2.2K P5_1 P5_0 CSS1 5 4 3 2 1 R39 R40 R41 R42 R43 560 ohm P2_5 560 ohm P2_4 560 ohm P2_3 560 ohm P2_2 560 ohm P2_1 CapSense Slider 5 Seg P1_6 R12 ZERO NO LOAD SHIELD R13 ZERO GND Shield Setting SW1
/XRES
/XRES 1 2 C25 0.1 uF 0402 EVQ-PE105K RESET SW2 P2_7 1 2 EVQ-PE105K USER SWITCH VFRAM VFRAM VFRAM R32 ZERO NO LOAD A1 R36 ZERO R33 ZERO NO LOAD A2 R37 ZERO R34 ZERO NO LOAD WP R38 ZERO F-RAM J5 SS MOSI MISO SCK GND VCC CON6 1 2 3 4 5 6 P0_2 P0_0 P0_1 P0_3 V D D P2_0 R19 ZERO J14 1x1 RECP Proximity Header NO LOAD PMOD Connector USB-I2C SPI_SCLK / I2C_SCL SPI_MISO / I2C_SDA SPI_MOSI USB-SPI SPI_SSEL R46 ZERO P3_5 R47 ZERO P3_4 UART RX R52 ZERO P1_5 USB-UART UART TX R53 ZERO P1_4 R48 ZERO NO LOAD R49 ZERO NO LOAD R50 ZERO NO LOAD R51 ZERO NO LOAD P0_3 P0_1 P0_0 P0_2 RESET R54 ZERO
/XRES SWDCLK SWDIO R55 ZERO P0_7 R56 ZERO P0_6 USB-SWD PSoC 5LP and PSoC 4 BLE/PRoC BLE Connections CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 172 A.1.2 BLE Module P3.6 P3.4 P3.2 P3.0 P4.0 P4.1 P2.6 P2.4 P2.2 P2.0 P1.6 P1.7 P1.5 P1.3 P1.4 P1.1 P0.4 P0.2 P0.0 VDDR TP2 RED No Load VREF TP1 RED No Load J1 1 3 5 7 9 11 13 15 17 19 21 23 VDDA TP3 RED No Load P3.7 P3.5 P3.3 P3.1 P5.1 P5.0 P2.7 P2.5 P2.3 P2.1 2 4 6 8 10 12 14 16 18 20 22 24 HEADER 12x2 Analog Pins VDDD TP4 RED No Load
/XRES P0.7 P0.6 P1.2 P1.0 P0.5 P0.3 P0.1 J2 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 HEADER 10x2 Digital Pins VDDR VDDA VDDD C1 0.1 uF 0603 C2 1.0 uF 0402 C3 0.1 uF 0603 C4 1.0 uF 0402 C5 0.1 uF 0603 C6 1.0 uF 0402 C7 0.1 uF 0603 C8 1.0 uF 0402 VDDR L2 J3 L3 z H M 0 0 1
@
M H O 0 3 3 L4 z H M 0 0 1
@
M H O 0 3 3 z H M 0 0 1
@
M H O 0 3 3 1 2 3 4 TX RX P1.5 P1.4 4 HEADER Serial Interface No Load TP5 BLACK No Load VCCD VDDA VREF 7
. 3 P 6
. 3 P 5
. 3 P 4
. 3 P 3
. 3 P 2
. 3 P 1
. 3 P 0
. 3 P 7
. 2 P 6
. 2 P VDDD C9 0.1 uF 0603 C10 1.0 uF 0402 C11 0.1 uF 0603 C12 1.0 uF 0402 VREF C15 1.0 uF SAR bypass 0603 VDDA C16 0.1 uF 0603 C17 1.0 uF 0402 C18 0.1 uF 0603 C19 1.0 uF 0402 VCCD C20 1.0 uF 0603 VDDD R1 Zero Ohm No Load No Load R2 Zero Ohm Shunt Resistor P4.0 C21 2200 pF CMOD P4.1 C22 10000 pF C_Tank P6.0 P6.1
/XRES P4.0 P4.1 P5.0 P5.1 VDDD 1 2 3 4 5 6 7 8 9 10 11 12 13 14 50 Ohm Wiggle Antenna J4 C14 1122 C13 1.2 pF 1.5 pF L1 6.8nH No Load VDDR
. 7 3 P A S S V D C C V D A P E VDDD XTAL32O/P6.0 XTAL32I/P6.1 XRES P4.0 P4.1 P5.0 P5.1 VSSD VDDR GANT1 ANT GANT2 VDDR I 7 5 6 5 5 5 4 5 3 5 2 5 1 5 0 5 9 4 8 4 7 4 6 4 5 4 4 4 3 4 U1
. 6 3 P 5 3 P 4 3 P 3 3 P 2 3 P 1 3 P 0 3 P
. A D D V F E R V
. 7 2 P 6 2 P CY8C4247LQI-BL483 O 4 2 L A T X 4 2 L A T X R D D V R D D V
. 0 0 P 1 0 P 2 0 P 3 0 P
. 4 0 P 5 0 P 6 0 P 7 0 P 0 1 P
. D D D V 5 1 6 1 8 1 9 1 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 7 1 O 4 2 L A T X I 4 2 L A T X
. 0 0 P 1 0 P 2 0 P 3 0 P
. 4 0 P 5 0 P 6 0 P 7 0 P 0 1 P
. VDDA P2.5 P2.4 P2.3 P2.2 P2.1 P2.0 VDDA P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 42 41 40 39 38 37 36 35 34 33 32 31 30 29 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0 P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 C23 36 pF C24 18 pF P6.1 Y1 32.768KHz P6.0 1 2 KHz Crystal 1 4 3 XTAL24I 2 Y2 24Mhz XTAL24O MHz Crystal VDDD R3 4.7K No Load
/XRES C25 100 pF No Load 0603 VDDD PCA: 121-60159-01 PCB: 600-60195-01 FAB DRW: 610-60187-01 ASSY DRW: 620-60195-01 CYPRESS SEMICONDUCTOR 2014 CYPRESS SEMICONDUCTOR 2014 CYPRESS SEMICONDUCTOR 2014 Title Title Title CY8CKIT-142 PSoC 4 BLE Module CY8CKIT-142 PSoC 4 BLE Module CY8CKIT-142 PSoC 4 BLE Module Size Size Size Document Number Document Number Document Number Rev Rev Rev CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 173 A.1.3 Dongle NO LOAD NO LOADNO LOAD TP8 TP11 TP9 NO LOAD NO LOAD TP10 TP13 I O D W S _ P L 5 P K L C D W S _ P L 5 P S E R X _ P L 5 P GND RED S U B V C24 0603 1.0 uF C25 0.1 uF 0402 5 _ 2 P L 5 P P5LP_VDD C28 0.1 uF 0402 U3 P5LP_VDD A R T X E C26 1.0 uF 0603 0603 D C C V _ P L 5 P D S S V 4 _ 5 1 P L 5 P 5 _ 0 P L 5 P 4 _ 0 P L 5 P P5LP_VDD R8 Zero Ohm VBUS VTARG R11 Zero Ohm VBUS C27 1.0 uF NO LOAD SAR Bypass Capacitor P5LP_VDD C29 0.1 uF 0402 NO LOAD TP12 4 _ 5 1 P L 5 P 9 6 8 6 7 6 6 6 5 6 4 6 3 6 2 6 1 6 0 6 9 5 8 5 7 5 6 5 5 5 4 5 3 5 2 5 5 _ 2 P D A P E I 2 O D D V 4 _ 2 P 3 _ 2 P 2 _ 2 P 1 _ 2 P 0 _ 2 P 5 _ 5 1 P 4 _ 5 1 P D D D V D S S V D C C V 7 _ 0 P 6 _ 0 P 5 _ 0 P 4 _ 0 P I 0 O D D V CY8C5868LTI-LP039 QFN68 P0_3 P0_2 P0_1 P0_0 SIO_P12_3 SIO_P12_2 VSSD VDDA VSSA VCCA P15_3 P15_2 SIO, I2C1_SDA P12_1 SIO, I2C1_SCL P12_0 P3_7 P3_6 VDDIO3 P5LP2_6 P5LP2_7 P5LP12_4 P5LP12_5 VSSD P5LP_XRES P5LP_SWDIO P5LP_SWDCLK P5LP1_2 P5LP_SWO P5LP_POWER 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 P5LP_VDD C35 0.1 uF 0402 P2_6 P2_7 P12_4 I2C0_SCL, SIO P12_5 I2C0_SDA, SIO VSSB IND VBOOST VBAT VSSD XRES P1_0 P1_1 P1_2 P1_3 P1_4 P1_5 VDDIO1 I I O S _ 6 _ 2 1 P O S _ 7 _ 2 1 P P D 6 _ 5 1 P M D 7 _ 5 1 P 6 _ 1 P 7 _ 1 P C30 1.0 uF Del Sig Bypass Capacitor C31 1.0 uF SAR Bypass Capacitor P5LP_VDD C32 0.1 uF 0402 0603 C33 1.0 uF P5LP0_3 P5LP0_2 P5LP0_1 P5LP0_0 P5LP12_3 P5LP12_2 VSSD 0603 0603 P5LP12_1 P5LP12_0 P5LP3_7 P5LP3_6 C34 1.0 uF 0603 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 P5LP_VDD C36 0.1 uF 0402 P5LP0_4 to P5LP0_7, P5LP3_2, P5LP3_3 are reserved for HW REV ID VTARG P5LP2_6 P5LP2_7 R9 2.2K R10 2.2K 2 1 45 U2 NTZD3152P R14 ZERO SDA R15 ZERO SCL SDA SCL 6 3 P5LP12_1 P5LP12_0 I2C Connection VBUS TP6 VBUS NO LOAD D D D V D S S V D C C V 0 _ 5 1 P 1 _ 5 1 P 0 _ 3 P 1 _ 3 P 2 _ 3 P 3 _ 3 P 4 _ 3 P 5 _ 3 P 8 1 9 1 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 0 3 1 3 2 3 3 3 4 3 6 _ 2 1 P L 5 P 7 _ 2 1 P L 5 P 7 _ 1 P L 5 P D C C V _ P L 5 P 8 1 R D S S V E 2 2 P _ P D P _ M D 7 1 R E 2 2 P D _ P L 5 P M D _ P L 5 P 0 _ 3 P L 5 P 1 _ 3 P L 5 P 4 _ 3 P L 5 P 5 _ 3 P L 5 P P5LP_VDD 0402 C38 0.1 uF P D _ P L 5 P M D _ P L 5 P C40 1.0 uF 0603 0402 C41 0.1 uF P5LP1_6 VBUS VTARG R19 15K R23 30K R20 15K R24 30K PSoC 5LP Programmer / Debugger P5LP_VDD R16 4.7K NO LOAD P5LP_XRES C37 0.1 uF NO LOAD 0402 F1 PTC Resettable Fuse 2 1 USB A PLUG J1 1 2 3 4 5 6 VBUS DM DP GND S1 S2 DM DP P5LP_DM P5LP_DP 1 D 2 D 3 D 3 0 6 0 3 0 6 0 3 0 6 0 R22 LED2 P5LP3_1 820 ohm R25 P5LP_POWER 2 2 1 0805 Status LED Green LED3 1 0805 820 ohm Power LED Red Power and Status LED USB A PLUG 100K R21 2 0 4 0 C39 0.01 uF USB Connection VTARG C42 0402 0.1 uF 1 S V T W 0 5 3 V 5 J2 1 3 5 7 9 50MIL KEYED SMD 2 4 6 8 10 P5LP12_2 P5LP12_3 P5LP12_4 PRoC Program/Debug Header R26 ZERO R12 ZERO R13 ZERO SWDIO SWDIO SWDCLK SWDCLK
/XRES
/XRES P5LP12_7 P5LP12_6 P5LP12_5 P5LP12_1 P5LP2_5 P5LP12_0 P5LP12_7 P5LP12_6 P5LP12_5 P5LP12_1 P5LP2_5 P5LP12_0 PSoC 5LP and PRoC BLE Connections PCA: 121-60161-01 PCB: 600-60197-01 FAB DRW: 610-60189-01 ASSY DRW: 620-60197-01 CYPRESS SEMICONDUCTOR 2014 CYPRESS SEMICONDUCTOR 2014 CYPRESS SEMICONDUCTOR 2014 Title Title Title Size Size Size B B B BLE Dongle BLE Dongle BLE Dongle Document Number Document Number Document Number 630-60193-01 630-60193-01 630-60193-01 Rev Rev Rev 03 03 03 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 174 VCCD L C S A D S VDDA VREF VDDR BLE_P3_2 R1 Zero Ohm EXTRA C1 0.1 uF 0603 C2 1.0 uF C3 1.0 uF 0603 0402 C4 0.1 uF 0603 C5 1.0 uF C6 0.1 uF 0402 C7 0.1 uF 0603 C8 1.0 uF 0402 0402 NO LOAD NO LOAD TP1 TP2 1 T S E T _ E L B 2 T S E T _ E L B ANTENNA ANT1 1122 NO LOAD NO LOAD TP15 TP14 X T _ E L B X R _ E L B VDDA BLE_TX BLE_RX P5LP12_6 P5LP12_7 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0 VDDA P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 42 41 40 39 38 37 36 35 34 33 32 31 30 29 S U T A T S _ E L B 2 _ 3 P _ E L B L C S _ E L B A D S _ E L B 1 T S E T _ E L B I D N B _ E L B VDDD U1 7 5 6 5 5 5 4 5 3 5 2 5 1 5 0 5 9 4 8 4 7 4 6 4 5 4 4 4 3 4 6
. 3 P 5
. 3 P 4
. 3 P 3
. 3 P 2
. 3 P 1
. 3 P 0
. 3 P A D D V F E R V 7
. 2 P 6
. 2 P 7
. 3 P A S S V D C C V D A P E VDDD XTAL32O/P6.0 XTAL32I/P6.1 XRES P4.0 P4.1 P5.0 P5.1 VSSD VDDR GANT1 ANT GANT2 VDDR 1 2 3 4 5 6 7 8 9 10 11 12 13 14 XTAL32O XTAL32I
/XRES
/XRES VDDR 5.1nH L1 VDDR C19 1.2 pF 1.2 pF C20 NO LOAD CYBL10162-56LQXI O 4 2 L A T X I 4 2 L A T X R D D V R D D V 0
. 0 P 1
. 0 P 2
. 0 P 3
. 0 P 4
. 0 P 5
. 0 P 6
. 0 P 7
. 0 P 0
. 1 P D D D V 5 1 6 1 7 1 8 1 9 1 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 O 4 2 L A T X I 4 2 L A T X SWDCLK SWDIO SWDCLK SWDIO 2 T S E T _ E L B VDDD I I S O M _ E L B O S M _ E L B L E S S _ E L B K L C S _ E L B 5 _ 2 1 P L 5 P 1 _ 2 1 P L 5 P 5 _ 2 P L 5 P 0 _ 2 1 P L 5 P VBUS VDDA R2 Zero Ohm VDDR R3 Zero Ohm VDDD R4 Zero Ohm VDDD C9 0.1 uF 0402 C10 1.0 uF 0402 C11 0.1 uF 0603 C12 1.0 uF 0603 VREF C13 1.0 uF SAR bypass 0603 VDDA C14 0.1 uF 0603 C15 1.0 uF 0402 C16 0.1 uF 0603 C17 1.0 uF 0402 VCCD C18 1.0 uF 0603 VDDD R5 Zero Ohm No Load Power and De-Caps VDDD R6 4.7K No Load
/XRES C21 100 pF No Load 0603 SW1 1 3 2 4 SW RA PUSH VDDA VDDR VDDD NO LOAD TP3 NO LOAD TP4 NO LOAD TP5 TP7 NO LOAD PRoC BLE and Antenna Hardware Reset and Button Switch Power Test Points C22 36 pF C23 18 pF XTAL32I Y1 32.768KHz XTAL32O 1 2 kHz Crystal XTAL24O XTAL24I 1 4 2 Y2 24MHz 3 MHz Crystal BLE_BIND SW2 1 3 2 4 SW RA PUSH BLE_STATUS R7 LED1 2 1 0805 820 ohm User LED Blue Crystals User Button Switch and User LED PCA: 121-60161-01 PCB: 600-60197-01 FAB DRW: 610-60189-01 ASSY DRW: 620-60197-01 Title Title Title Size Size Size CYPRESS SEMICONDUCTOR 2014 CYPRESS SEMICONDUCTOR 2014 CYPRESS SEMICONDUCTOR 2014 BLE Dongle BLE Dongle BLE Dongle Document Number Document Number Document Number 630-60193-01 630-60193-01 630-60193-01 Custom Custom Custom Date:
Date:
Date:
Tuesday September 30 2014 Tuesday September 30 2014 Tuesday September 30 2014 Sheet Sheet Sheet 3 3 3 o f o f o f 3 3 3 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 175 A.2 A.2.1 Board Layout BLE Pioneer Board Figure A-1. Primary Side of BLE Pioneer Board Figure A-2. Ground Layer of BLE Pioneer Board Figure A-3. Power Layer of BLE Pioneer Board CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 176 Figure A-4. Secondary Side of BLE Pioneer Board Figure A-5. Primary Silkscreen of BLE Pioneer Board Figure A-6. Secondary Silkscreen of BLE Pioneer Board CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 177 A.2.2 PRoC BLE Module Figure A-7. Primary Side of PRoC BLE Module Figure A-8. Ground Layer of PRoC BLE Module Figure A-9. VCC Layer of PRoC BLE Module CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 178 Figure A-10. Secondary Side of PRoC BLE Module Figure A-11. Primary Silkscreen of PRoC BLE Module Figure A-12. Secondary Silkscreen of PRoC BLE Module CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 179 A.2.3 PSoC 4 BLE Module Figure A-13. Primary Side of PSoC 4 BLE Module Figure A-14. Ground Layer of PSoC 4 BLE Module Figure A-15. VCC Layer of PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 180 Figure A-16. Secondary Side of PSoC 4 BLE Module Figure A-17. Primary Silkscreen of PSoC 4 BLE Module Figure A-18. Secondary Silkscreen of PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 181 A.2.4 Dongle Figure A-19. Primary Side of Dongle Figure A-20. Ground Layer of Dongle Figure A-21. Power Layer of Dongle CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 182 Figure A-22. Secondary Side of Dongle Figure A-23. Primary Silkscreen of Dongle Figure A-24. Secondary Silkscreen of Dongle CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 183 A.3 Bill of Materials (BOM) A.3.1 BLE Pioneer Board Item Qty Reference Value Description Manufacturer Mfr Part Number 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 1 1 1 1 15 7 1 6 3 1 1 1 2 1 1 1 1 1 1
-
CR2032 Bat-
tery Holder 1.0 uF 4.7 uF 0.01 uFd 100 uFd BT1 C1 C2 C3 C4 C5,C8,C9,C10,C1 2,C14,C17,C18,C 19,C21,C23,C25, C26,C27,C28 C6,C7,C11,C13,C 15,C16,C20 C29 0.1 uFd 1.0 uFd 33 uF D1,D2,D3,D4,D5, D10 MBR0520L D6,D7,D8 ESD diode D9 D11 F1 J1, J4 J2 J3 J8 J10 J11 J13 3.9V Zener 2.7V Zener FUSE 8x1 RECP 6x2 RECP 10x1 RECP 8X2 RECP 12X2 RECP 10X2 RECP USB MINI B PCB, 106.22 mm x 53.34 mm, High Tg, ENIG finish, 4 layer, Color = RED, Silk =
WHITE. HOLDER COIN CELL CR2032 EJECT CAP TANT 1UF 35V 10%
1210 CAP TANT 4.7UF 20V 10% 1210 CAP 10000PF 16V CERAMIC 0402 SMD CAP CER 100UF 6.3V 20% X5R 1210 CAP .1UF 16V CERAMIC X5R 0402 Cypress MPD BA2032 AVX Corporation TAJB105K035RNJ AVX Corporation TAJB475K020RNJ TDK Corporation C1005X7R1C103K050BA TDK Corporation C3225X5R0J107M250AC TDK Corporation C1005X5R1A104K050BA ON Semiconductor MMSZ4682T1G Diodes Inc Bourns Inc. Taiyo Yuden TDK Corporation Fairchild Semicon-
ductor CAP CERAMIC 1.0UF 25V X5R 0603 10%
CAP CER 33UF 6.3V 20%
X5R 0805 DIODE SCHOTTKY 0.5A 20V SOD-123 SUPPRESSOR ESD 5VDC 0603 SMD DIODE ZENER 3.9V 500MW SOD12 DIODE ZENER 2.7V 500MW SOD123 PTC RESETTABLE .50A 15V 1812 CONN HEADER FEMALE 8POS .1" GOLD CONN HEADER FMAL 12PS.1" DL GOLD CONN HEADER FMALE 10POS .1" GOLD CONN HEADER FMAL 16PS.1" DL GOLD CONN HEADER 2.54MM 24POS GOLD CONN HEADER 2.54MM 20POS GOLD MINI USB RCPT R/A DIP TE Connectivity Protectron Electro-
mech Protectron Electro-
mech Protectron Electro-
mech Protectron Electro-
mech Sullins Connector Solutions Sullins Connector Solutions Bourns TMK107BJ105KA-T C2012X5R0J336M125AC MBR0520L CG0603MLC-05LE BZT52C3V9-7-F MF-MSMF050-2 P9401-08-21 P9403-12-21 P9401-10-21 P9403-16-21 SBH11-PBPC-D12-ST-BK SBH11-PBPC-D10-ST-BK 1734510-1 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 184 Item Qty Reference Value Description Manufacturer Mfr Part Number 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 1 1 1 1 1 1 3 3 1 2 1 1 1 1 1 1 J14 J15 J16 LED1 LED2 LED3 L1,L2,L3 Q2,Q4,Q6 Q1, Q3,Q5 R1 R2 R3 R4 R5 R6 14 R19,R26,R27,R3 6,R37,R38,R45,R 46,R47,R52,R53, R54,R55,R56 2 2 1 1 2 2 2 R8,R58 R9,R20 R10 R11 R13,R14 R15,R16 R17,R18 1X1 RECP 2p_jumper 3p_jumper Power LED Amber Status LED Green RGB LED 330 OHM @
100MHz PMOS PMOS PMOS 11K 1%
560 ohm 14.7K 1%
10K 1%
4.3K 1%
100K ZERO 15K 10K 1%
10K 820 ohm ZERO 22E 15K CONN RCPT 1POS .100"
SNGL HORZ CONN HEADR BRKWAY
.100 2POS STR CONN HEADR BRKWAY
.100 3POS STR LED 595NM AMB DIFF 0805 SMD LED GREEN CLEAR 0805 SMD LED RED/GREEN/BLUE PLCC4 SMD FERRITE CHIP 330 OHM 0805 MOSFET P-CH 30V 2.2A SOT23 MOSFET P-CH 30V 3.8A SOT23-3 MOSFET P-CH 20V 3.5A SOT23 RES 11K OHM 1/10W 1%
0603 SMD RES 560 OHM 1/8W 5%
0805 SMD RES 14.7K OHM 1/10W 1% 0603 SMD RES 10K OHM 1/10W 1%
0603 SMD RES 4.3K OHM 1/10W 1%
0603 SMD RES 100K OHM 1/10W 5%
0402 SMD RES 0.0 OHM 1/10W 0603 SMD RES 15K OHM 1/10W 1%
0603 SMD RES 10K OHM 1/8W 1%
0805 SMD RES 10K OHM 1/10W 5%
0603 SMD RES 820 OHM 1/8W 5%
0805 SMD RES 0.0 OHM 1/8W 0805 SMD RES 22 OHM 1/10W 1%
0603 SMD RES 15K OHM 1/10W 5%
0603 SMD Samtec Inc BCS-101-L-S-HE Protectron Electro-
mech Protectron Electro-
mech Avago Technolo-
gies P9101-02-12-1 P9101-03-12-1 HSMA-C170 Chicago Miniature CMD17-21VGC/TR8 Cree, Inc. Murata CLV1A-FKB-
CJ1M1F1BB7R4S3 BLM21PG331SN1D ON Semiconductor NTR4171PT1G Diodes Inc DMP3098L-7 NXP Semiconduc-
tors PMV48XP,215 Panasonic - ECG ERJ-3EKF1102V Panasonic - ECG ERJ-6GEYJ561V Panasonic - ECG ERJ-3EKF1472V Panasonic - ECG ERJ-3EKF1002V Panasonic - ECG ERJ-3EKF4301V Panasonic - ECG ERJ-2GEJ104X Panasonic - ECG ERJ-3GEY0R00V Panasonic - ECG ERJ-3EKF1502V Stackpole Electron-
ics Inc RMCF0805FT10K0 Panasonic - ECG ERJ-3GEYJ103V Panasonic - ECG ERJ-6GEYJ821V Panasonic-ECG ERJ-6GEY0R00V Panasonic - ECG ERJ-3EKF22R0V Panasonic - ECG ERJ-3GEYJ153V CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 185 Item Qty Reference Value Description Manufacturer Mfr Part Number 46 47 48 49 50 51 52 53 54 55 56 5 2 2 5 2 1 2 1 1 1 1 R22,R23,R28,R3 1,R35 R24,R25 R29,R30 2.2K 30K 1.5K R39,R40,R41,R4 2,R43 SW1,SW2 TP5 560 ohm SW PUSH-
BUTTON BLACK TVS1,TVS2 5V 350W LDO PSoC 5LP U1 U2 U3 U4 RES 2.2K OHM 1/10W 5%
0603 SMD RES 30K OHM 1/10W 5%
0603 SMD RES 1.5K OHM 1/10W 5%
0603 SMD RES 560 OHM 1/10W 5%
0603 SMD SWITCH TACTILE SPST-
NO 0.05A 12V TEST POINT PC MINI
.040"D Black TVS UNIDIR 350W 5V SOD-323 IC REG LDO ADJ 1A TO252-5 68QFN PSoC 5LP chip for USB debug channel and USB-Serial interface F-RAM 1-Mbit (128K X 8) I2C interface Panasonic - ECG ERJ-3GEYJ222V Panasonic - ECG ERJ-3GEYJ303V Panasonic - ECG ERJ-3GEYJ152V Panasonic - ECG ERJ-3GEYJ561V Panasonic - ECG EVQ-PE105K Keystone Electron-
ics 5001 Dioded Inc. SD05-7 Rohm Semiconduc-
tor Cypress Semicon-
ductor Cypress Semicon-
ductor BA00BC0WFP-E2 CY8C5868LTI-LP039 FM24V10-G ON Semiconductor NTZD3152PT1G F-RAM DUAL PMOS MOSFET 2P-CH 20V 430MA SOT-563 Install on Bottom of PCB As per the Silk Screen in the Corners 57 4 N/A N/A Special Jumper Installation Instructions BUMPER CYLIN 0.375"
DIA BLK 3M SJ61A4 58 Label 59 60 2 1 1 J15,J16 N/A N/A No load components C22 C24 61 62 63 64 65 1 1 9 1 2 Install jumper across pins 1 and 2 Rectangular Connectors MINI JUMPER GF 6.0MM CLOSE TYPE BLACK Kobiconn 151-8010-E N/A N/A 0.1 uFd 1.0 uFd LBL, PCA Label, Vendor Code, Datecode, Serial Number 121-60158-01 Rev 04 (YYWWVVXXXXX) LBL, QR code, 12mm X 12mm Cypress Semicon-
ductor Cypress Semicon-
ductor CAP .1UF 16V CERAMIC Y5V 0402 CAP CERAMIC 1.0UF 25V X5R 0603 10%
TDK Corporation C1005X5R1A104K050BA Taiyo Yuden TMK107BJ105KA-T R7,R59,R32,R33, R34,R48,R49,R5 0,R51 R21 J7,J6 Zero Ohm RES 0.0 OHM 1/10W JUMP 0603 4.7K 50MIL KEYED SMD RES 4.7K OHM 1/10W 5%
0603 SMD CONN HEADER 10 PIN 50MIL KEYED SMD TE Connectivity 1623094-1 Panasonic - ECG ERJ-3GEYJ472V Samtec FTSH-105-01-L-DV-K CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 186 Item Qty Reference Value Description Manufacturer Mfr Part Number J9 2 PIN HDR TP4,TP5 BLACK TP1,TP2,TP3 RED R44,R12 ZERO 66 67 68 69 70 71 1 2 3 2 1 1 CONN HEADER FEMALE 2POS .1" GOLD TEST POINT 43 HOLE 65 PLATED BLACK TEST POINT 43 HOLE 65 PLATED RED RES 0.0 OHM 1/8W 0805 SMD CONN HEADER FMAL 6PS .1" DL GOLD Sullins Connector Solutions Keystone Electron-
ics Keystone Electron-
ics PPPC021LFBN-RC 5001 5000 Panasonic-ECG ERJ-6GEY0R00V Sullins Connector Solutions Sullins Connector Solutions PPPC032LFBN-RC PPPC061LGBN-RC J12 J5 3x2 RECPT 6X1 RECP RA CONN FEMALE 6POS
.100" R/A GOLD CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 187 A.3.2 BLE Module A.3.2.1 CY5671 PRoC BLE Module Item Qty Reference Value Description Manufacturer Mfr Part Number 600-60196-01
-
PRoC BLE Module printed circuit board C1,C3,C5,C7,C9,C 11,C16,C18 0.1 uF CAP .1UF 16V CERAMIC Y5V 0402 Cypress qualified ven-
dor Samsung Electro-
Mechanics America, Inc 600-60196-01 Rev03 CL05F104ZO5NNNC C2,C4,C6,C8,C10, C12,C15,C17,C19, C20 1.0 uF CAP CERAMIC 1.0UF 25V X5R 0603 10%
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 8 10 1 1 1 1 1 1 1 1 3 1 1 1 1 C21 C22 C23 C24 C14 J1 J2 L1 L2,L3,L4 U1 Y1 Y2 LBL No Load components 17 18 1 1 C13 C25 18 pF 36 pF 2200 pF CAP CER 2200PF 50V 5% NP0 0805 CAP CER 10000PF 50V 10000 5% NP0 0805 pF CAP CER 36PF 50V 5%
NP0 0402 CAP CER 18PF 50V 1%
NP0 0402 CAP CER 1.5PF 50V NP0 0402 CONN HEADR FMALE 24POS .1" DL AU CONN HEADR FMALE 20POS .1" DL AU CER INDUCTOR 6.8NH 0402 HEADE R 24 HEADE R 20 1.5 pF 6.8nH TDK Corporation C1608X5R1E105K080AC Murata Electronics GRM2165C1H222JA01D Murata Electronics GRM2195C1H103JA01D Murata Electronics GRM1555C1H360JA01D Murata Electronics GRM1555C1H180FA01D Johanson Technology Inc 500R07S1R5BV4T Sullins Connector SFH11-PBPC-D12-ST-BK Sullins Connector SFH11-PBPC-D10-ST-BK Johanson Technology Inc L-07C6N8JV6T 330 Ohm
@100 MHz PRoC BLE 32.768K Hz 24MHz
-
FERRITE CHIP 330 OHM 0805 Murata Electronics BLM21PG331SN1D 56 QFN PRoC BLE CRYSTAL 32.768KHZ 12.5PF SMD CRYSTAL 24.000 MHZ 8PF SMD LBL, PCA Label, Vendor Code, Datecode, Serial Number 121-60160-01 Rev 04 (YYWWV-
VXXXXX) Cypress Semiconduc-
tor CYBL10563-56LQXI ECS Inc ECS Inc ECS-.327-12.5-34B ECS-240-8-36CKM Cypress qualified ven-
dor
-
1.2 pF 100pF CAP CER 1.2PF 50V NP0 0402 CAP CER 100PF 50V 10% X7R 0603 Johanson Technology Inc 500R07S1R2BV4T Kemet C0603C101K5RACTU CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 188 Item Qty Reference Value Description Manufacturer Mfr Part Number 19 20 21 22 23 24 1 1 1 1 4 1 R1 R2 R3 J3 Zero Ohm Rbleed 4.7K 4 HEADE R RES 0.0 OHM 1/8W 0605 SMD No Load RES 4.7K OHM 1/10W 5% 0603 SMD TE Connectivity 1623094-1
-
-
Panasonic - ECG ERJ-3GEYJ472V CONN HEADER 4POS
.100 R/A 15AU FCI 68016-204HLF TP1,TP2,TP3,TP4 RED TP5 BLACK TEST POINT 43 HOLE 65 PLATED RED TEST POINT 43 HOLE 65 PLATED BLACK Keystone Electronics 5000 Keystone Electronics 5001 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 189 A.3.2.2 CY8CKIT-142 PSoC 4 BLE Module Item Qty Reference Value 600-60195-01
-
Description PSoC 4 BLE Module printed circuit board C1,C3,C5,C7,C9, C11,C16,C18 0.1 uF CAP .1UF 16V CERAMIC Y5V 0402 C2,C4,C6,C8,C10
,C12,C15,C17,C1 9,C20 1.0 uF CAP CERAMIC 1.0UF 25V X5R 0603 10%
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 8 10 1 1 1 1 1 1 1 1 3 1 1 1 1 C21 C22 C23 C24 C14 J1 J2 L1 L2,L3,L4 U1 Y1 Y2 LBL No Load components 17 18 19 20 1 1 1 1 C13 C25 R1 R2 Manufacturer Cypress qualified vendor Samsung Electro-
Mechanics Amer-
ica, Inc Mfr Part Number 600-60195-01 Rev03 CL05F104ZO5NNNC TDK Corporation C1608X5R1E105K080AC Murata Electronics GRM2165C1H222JA01D Murata Electronics GRM2195C1H103JA01D Murata Electronics GRM1555C1H360JA01D Murata Electronics GRM1555C1H180FA01D Johanson Technol-
ogy Inc 500R07S1R5BV4T Sullins Connector SFH11-PBPC-D12-ST-BK Sullins Connector SFH11-PBPC-D10-ST-BK Johanson Technol-
ogy Inc L-07C6N8JV6T Murata Electronics BLM21PG331SN1D Cypress Semicon-
ductor CY8C4247LQI-BL483 ECS Inc ECS Inc ECS-.327-12.5-34B ECS-240-8-36CKM Cypress qualified vendor
-
Johanson Technol-
ogy Inc 500R07S1R2BV4T Kemet C0603C101K5RACTU TE Connectivity 1623094-1
-
-
18 pF 36 pF NP0 0805 2200 pF CAP CER 2200PF 50V 5%
10000 pF CAP CER 10000PF 50V 5% NP0 0805 CAP CER 36PF 50V 5%
NP0 0402 CAP CER 18PF 50V 1%
NP0 0402 CAP CER 1.5PF 50V NP0 0402 CONN HEADR FMALE 24POS .1" DL AU CONN HEADR FMALE 20POS .1" DL AU CER INDUCTOR 6.8NH 0402 HEADER 24 HEADER 20 1.5 pF 6.8nH 330 Ohm
@100 MHz PSoC 4BLE 32.768K Hz 24MHz
-
FERRITE CHIP 330 OHM 0805 56 QFN PSoC 4 BLE CRYSTAL 32.768KHZ 12.5PF SMD CRYSTAL 24.000 MHZ 8PF SMD LBL, PCA Label, Vendor Code, Datecode, Serial Number 121-60159-01 Rev 04 (YYWWVVXXXXX) 1.2 pF 100pF Zero Ohm Rbleed CAP CER 1.2PF 50V NP0 0402 CAP CER 100PF 50V 10%
X7R 0603 RES 0.0 OHM 1/10W JUMP 0603 No Load CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 190 Item Qty Reference Value Description Manufacturer Mfr Part Number 21 22 23 24 1 1 4 1 R3 J3 4.7K 4 HEADER TP1,TP2,TP3,TP4 RED TP5 BLACK RES 4.7K OHM 1/10W 5%
0603 SMD CONN HEADER 4POS
.100 R/A 15AU TEST POINT 43 HOLE 65 PLATED RED TEST POINT 43 HOLE 65 PLATED BLACK Panasonic - ECG ERJ-3GEYJ472V FCI 68016-204HLF Keystone Electron-
ics Keystone Electron-
ics 5000 5001 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 191 A.3.3 Dongle Item Qty Reference Value Description Manufacturer Mfr Part Number 1 600-60197-01
-
PCB, 60 mm x 30 mm, High Tg, ENIG finish, 2 layer, Color = BLACK, Silk = WHITE. Cypress qualified vendor 600-60197-01 Rev02 17 17 C1,C4,C6,C7,C9,C11
,C14,C16,C25,C28,C 29,C32,C35,C36,C38
,C41,C42 C2,C3,C5,C8,C10,C 12,C13,C15,C17,C18
,C24,C26,C30,C31,C 33,C34,C40 0.1 uFd CAP .1UF 16V CERAMIC Y5V 0402 TDK Corporation C1005X5R1A104K050BA 1.0 uFd CAP CERAMIC 1.0UF 25V X5R 0603 10%
Taiyo Yuden TMK107BJ105KA-T 1 1 1 1 3 1 1 1 1 1 1 1 2 1 2 2 C19 C22 C23 C39 D1,D2,D3 F1 J1 J2 LED1 LED2 LED3 L1 R8,R11 R7 R22,R25 R9,R10 1.2 pFd 36 pF CAP CER 1.2PF 50V NP0 0402 CAP CER 36PF 50V 5%
NP0 0402 CAP CER 18PF 50V 1%
NP0 0402 18 pF 0.01 uFd CAP 10000PF 16V CERAMIC 0402 SMD SUPPRESSOR ESD ESD diode 5VDC 0603 SMD PTC RESETTABLE
.50A 15V 1812 CONN PLUG USB 4POS RT ANG PCB FUSE Johanson Technol-
ogy Inc 500R07S1R2BV4T Murata Electronics GRM1555C1H360JA01D Murata Electronics GRM1555C1H180FA01D TDK Corporation C1005X7R1C103K050BA Bourns Inc. CG0603MLC-05LE Bourns Molex Inc MF-MSMF050-2 480370001 CONN HEADER 10POS DUAL SHRD SMD FCI 20021521-00010T1LF LED BLUE CLEAR THIN 0805 SMD LED GREEN CLEAR 0805 SMD LiteOn Inc LTST-C171TBKT Chicago Miniature CMD17-21VGC/TR8 USB A PLUG 50MIL KEYED SMD Status LED Blue Status LED Green Power LED Red 5.1 nH LED SUPER RED CLEAR 0805 SMD CER INDUCTOR 5.1NH 0402 RES 0.0 OHM 1/8W 0805 SMD Zero Ohm 820 ohm RES 820 OHM 1/10W 820 ohm RES 820 OHM 1/8W 5%
0805 SMD RES 2.2K OHM 1/10W 5% 0603 SMD 5% 0603 SMD 2.2K LiteOn Inc LTST-C170KRKT Johanson Technol-
ogy Inc L-07C5N1SV6T Panasonic-ECG ERJ-6GEY0R00V Panasonic - ECG ERJ-3GEYJ821V Panasonic - ECG ERJ-6GEYJ821V Panasonic - ECG ERJ-3GEYJ222V 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 192 Item Qty Reference Value Description Manufacturer Mfr Part Number R1,R2,R3,R4,R12,R 13,R14,R15,R26 ZERO 20 21 22 23 24 25 26 27 28 29 30 31 9 2 1 2 2 2 1 1 1 1 1 1 R17,R18 R21 R19,R20 R23,R24 SW1,SW2 TVS1 U1 U2 U3 Y1 Y2 32 1 N/A No load components 33 34 35 36 37 38 1 1 1 1 1 2 39 15 C20 C21 C37 C27 R5 R6,R16 TP1,TP2,TP3,TP4,T P5,TP6,TP7,TP8,TP 9,TP10,TP11,TP12,T P13,TP14,TP15 22E 100K 15K 30K RES 0.0 OHM 1/10W 0603 SMD RES 22 OHM 1/10W 1%
0603 SMD RES 100K OHM 1/10W 5% 0402 SMD RES 15K OHM 1/10W 5% 0603 SMD RES 30K OHM 1/10W 5% 0603 SMD SWITCH TACTILE SPST-NO 0.05A 12V PSoC 5LP DUAL PMOS PRoC BLE SW RA PUSH 5V 350W TVS UNIDIR 350W 5V SOD-323 PRoC BLE, Programma-
ble Radio on Chip, 56QFN MOSFET 2P-CH 20V 430MA SOT-563 PSoC 5LP Programma-
ble System on Chip, 68QFN CRYSTAL 32.768KHZ 12.5PF SMD CRYSTAL 24.000 MHZ 8PF SMD LBL, PCA Label, Ven-
dor Code, Datecode, Serial Number 121-
60161-01 Rev 03 (YYW-
WVVXXXXX); Only bar-
code 32.768K Hz 24MHz N/A Panasonic - ECG ERJ-3GEY0R00V Panasonic - ECG ERJ-3EKF22R0V Panasonic - ECG ERJ-2GEJ104X Panasonic - ECG ERJ-3GEYJ153V Panasonic - ECG ERJ-3GEYJ303V Panasonic - ECG EVQ-P3401P Diodes Inc. SD05-7 Cypress Semiconduc-
tor CYBL10162-56LQXI ON Semiconductor NTZD3152PT1G Cypress Semiconduc-
tor CY8C5868LTI-LP039 ECS Inc ECS Inc ECS-.327-12.5-34B ECS-240-8-36CKM Cypress qualified vendor
-
1.2 pF 100pF 0.1 uFd 1.0 uFd Zero Ohm 4.7K CAP CER 1.2PF 50V NP0 0402 CAP CER 100PF 50V 10% X7R 0603 CAP .1UF 16V CERAMIC Y5V 0402 CAP CERAMIC 1.0UF 25V X5R 0603 10%
RES 0.0 OHM 1/10W JUMP 0603 RES 4.7K OHM 1/10W 5% 0603 SMD Johanson Technol-
ogy Inc 500R07S1R2BV4T Kemet C0603C101K5RACTU TDK Corporation C1005X5R1A104K050BA Taiyo Yuden TMK107BJ105KA-T TE Connectivity 1623094-1 Panasonic - ECG ERJ-3GEYJ472V No load No load
-
-
CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 193 A.4 KitProg Status LED States User Indication Scenario Action Required by user 1 2 3 4 5 LED blinks fast:
Time period = 0.25 s LED starts blinking at power up, if bootloadable file is corrupt. LED blinks slow:
Time period = 1.50 s Entered Bootloader mode by holding the PSoC 4 Reset button during kit power-up. LED blinks very fast:
Time period = 0.67 s LED is ON. SWD operation is in progress. Any I2C traffic. Kit's COM port connect/discon-
nect event (one blink). USB enumeration successful. Kit is in the idle state waiting for commands. LED is OFF. Power LED is ON. Bootload the KitProg.cyacd file: in PSoC Programmer, con-
nect 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 mes-
sages for SWD operations. In the Bridge Control Panel, the LED blinks on I2C 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. The kit functions can be used by PSoC Creator, PSoC Pro-
grammer, Bridge Control Panel, and any serial port terminal program. 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-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 194 A.5 Adding BLE module compatible headers on your own baseboard The baseboard should have two headers, one 20-pin and another 24-pin. Dimension of these connects are detailed below. 940 mils 740 mils Pin 1 24 pin header Pin 1 20 pin header You can get these at Digikey.
#
1 2 Description Manufacturer Mfr Part Number Digikey part #
CONNHEADER2.54MM 24POSGOLD CONNHEADER2.54MM 20POSGOLD SullinsConnector Solutions SullinsConnector Solutions SBH11PBPCD12STBK SBH11PBPCD12STBKND SBH11PBPCD10STBK S9172ND CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 195 Revision History CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide Revision History Document Title: CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide Document Number: 001-93731 Revision Issue Date Origin of Change
**
11/10/2014 ROIT
*A ROIT Description of Change New kit guide. Updated Safety Information chapter on page 6:
Updated entire section. Updated Software Installation chapter on page 20:
Updated Before You Begin on page 20:
Updated description. Updated Example Projects chapter on page 42:
Updated CapSense Slider and LED on page 47:
Updated Flow Chart on page 51:
Updated Figure 4-11. Updated Verify Output on page 52:
Updated CySmart PC Tool on page 52:
Updated Figure 4-17. Updated Figure 4-24. Updated CySmart iOS/Android App on page 58:
Replaced iOS with iOS/Android in heading. Updated CapSense Proximity on page 62:
Updated Project Description on page 62:
Updated Figure 4-33. Updated Flow Chart on page 66:
Updated Figure 4-38. Updated Verify Output on page 67:
Updated CySmart PC Tool on page 67:
Updated Figure 4-45, Figure 4-48. Updated CySmart iOS/Android App on page 71:
Replaced iOS with iOS/Android in heading and in all other instances. Updated Direct Test Mode (DTM) on page 84:
Updated Hardware Connection on page 86:
Updated description. Updated Verify Output on page 87:
Updated description. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 196 Index CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide Revision History (continued) Document Title: CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide Document Number: 001-93731 Revision Issue Date Origin of Change Description of Change
*A (cont.) ROIT Updated Hardware chapter on page 88:
Updated Pioneer Baseboard on page 88:
Updated Power System on page 88:
Updated description. Updated Figure 5-1. Updated Protection Circuits on page 90:
Updated Figure 5-4. Updated Current Measurement Jumper on page 92:
Updated description. Updated Expansion Connectors on page 95:
Updated Arduino Compatible Headers (J1, J2, J3, J4, and J12-unpopulated) on page 95:
Updated Figure 5-8. Removed figure Schematics of Arduino Connectors. Updated Figure 5-9. Updated Pioneer Board LEDs on page 101:
Updated description. Updated Figure 5-15. Updated Cypress Ferroelectric RAM (F-RAM) on page 103:
Updated description. Updated Serial Interconnection Between PSoC 5LP and BLE Module on page 104:
Updated description. Updated Bluetooth Module Headers on page 105:
Updated description. Updated BLE Module Board on page 106:
Updated Wiggle Antenna on page 108:
Updated description. Updated BLE Passives on page 110:
Updated description. Updated BLE Dongle Board on page 111:
Updated description. Updated Advanced Topics chapter on page 115:
Updated CySmart iOS/Android Application on page 152:
Replaced iOS with iOS/Android in heading and in all other instances. Updated description. 197 CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide Revision History (continued) Document Title: CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide Document Number: 001-93731 Revision Issue Date Origin of Change Description of Change Index
*A (cont.) ROIT Updated Appendix chapter on page 168:
Updated Schematics on page 168:
Updated entire section. Updated Bill of Materials (BOM) on page 184:
Updated BLE Pioneer Board on page 184:
Updated entire section. Updated BLE Module on page 188:
Updated CY5671 PRoC BLE Module on page 188:
Updated entire section. Updated CY8CKIT-142 PSoC 4 BLE Module on page 190:
Updated entire section. Updated Dongle on page 192:
Updated entire section. Added Adding BLE module compatible headers on your own baseboard on page 195. CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 198
frequency | equipment class | purpose | ||
---|---|---|---|---|
1 | 2015-01-01 | 2402 ~ 2480 | DTS - Digital Transmission System | Original Equipment |
app s | Applicant Information | |||||
---|---|---|---|---|---|---|
1 | Effective |
2015-01-01
|
||||
1 | Applicant's complete, legal business name |
Cypress Semiconductor
|
||||
1 | FCC Registration Number (FRN) |
0017759150
|
||||
1 | Physical Address |
198 Champion Court
|
||||
1 |
San Jose, California 95134
|
|||||
1 |
United States
|
|||||
app s | TCB Information | |||||
1 | TCB Application Email Address |
r******@twn.tuv.com
|
||||
1 | TCB Scope |
A4: UNII devices & low power transmitters using spread spectrum techniques
|
||||
app s | FCC ID | |||||
1 | Grantee Code |
WAP
|
||||
1 | Equipment Product Code |
CY8CKIT-142
|
||||
app s | Person at the applicant's address to receive grant or for contact | |||||
1 | Name |
D******** S********
|
||||
1 | Title |
Sr. Business Unit Director
|
||||
1 | Telephone Number |
408-5********
|
||||
1 | Fax Number |
408-5********
|
||||
1 |
d******@cypress.com
|
|||||
app s | Technical Contact | |||||
n/a | ||||||
app s | Non Technical Contact | |||||
n/a | ||||||
app s | Confidentiality (long or short term) | |||||
1 | Does this application include a request for confidentiality for any portion(s) of the data contained in this application pursuant to 47 CFR § 0.459 of the Commission Rules?: | No | ||||
1 | Long-Term Confidentiality Does this application include a request for confidentiality for any portion(s) of the data contained in this application pursuant to 47 CFR § 0.459 of the Commission Rules?: | No | ||||
if no date is supplied, the release date will be set to 45 calendar days past the date of grant. | ||||||
app s | Cognitive Radio & Software Defined Radio, Class, etc | |||||
1 | Is this application for software defined/cognitive radio authorization? | No | ||||
1 | Equipment Class | DTS - Digital Transmission System | ||||
1 | Description of product as it is marketed: (NOTE: This text will appear below the equipment class on the grant) | CY8CKIT-142 PSoC 4 BLE Module | ||||
1 | Related OET KnowledgeDataBase Inquiry: Is there a KDB inquiry associated with this application? | No | ||||
1 | Modular Equipment Type | Limited Single Modular Approval | ||||
1 | Purpose / Application is for | Original Equipment | ||||
1 | Composite Equipment: Is the equipment in this application a composite device subject to an additional equipment authorization? | No | ||||
1 | Related Equipment: Is the equipment in this application part of a system that operates with, or is marketed with, another device that requires an equipment authorization? | No | ||||
1 | Grant Comments | Output power listed is conducted. This grant is valid only when the device is sold to OEM integrators and installation is done under the control of the Grantee. This transmitter is restricted for use with the specific antenna(s) tested in this application for Certification and must not be co-located or operating in conjunction with any other antenna or transmitters within a host device, except in accordance with FCC multi-transmitter product procedures. | ||||
1 | Is there an equipment authorization waiver associated with this application? | No | ||||
1 | If there is an equipment authorization waiver associated with this application, has the associated waiver been approved and all information uploaded? | No | ||||
app s | Test Firm Name and Contact Information | |||||
1 | Firm Name |
TUV Rheinland (India) Pvt. Ltd.,
|
||||
1 | Name |
B**** G********
|
||||
1 | Telephone Number |
91-80******** Extension:
|
||||
1 | Fax Number |
91-80********
|
||||
1 |
g******@ind.tuv.com
|
|||||
Equipment Specifications | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Line | Rule Parts | Grant Notes | Lower Frequency | Upper Frequency | Power Output | Tolerance | Emission Designator | Microprocessor Number | |||||||||||||||||||||||||||||||||
1 | 1 | 15C | 2402.00000000 | 2480.00000000 | 0.0011700 |
some individual PII (Personally Identifiable Information) available on the public forms may be redacted, original source may include additional details
This product uses the FCC Data API but is not endorsed or certified by the FCC