Cypress Semiconductor CY5676A, CY5677 User Manual

CY8CKIT-042-BLE-A
Bluetooth® Low Energy (BLE)
Pioneer Kit Guide
Doc. # 002-11468 Rev. *A
Cypress Semiconductor
198 Champion Court
Phone (USA): 800.858.1810
Phone (Intnl): +1.408.943.2600
www.cypress.com
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2016. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including Spansion LLC ("Cypress"). This document, including any software or firmware included or referenced in this document ("Software"), is owned by Cypress under the intellectual property laws and treaties of the United States and other countries worldwide. Cypress reserves all rights under such laws and treaties and does not, except as specifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with Cypress governing the use of the Software, then Cypress hereby grants you under its copyright rights in the Software, a personal, non­exclusive, nontransferable license (without the right to sublicense) (a) for Software provided in source code form, to modify and reproduce the Software solely for use with Cypress hardware products, only internally within your organization, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly through resellers and distributors), solely for use on Cypress hardware product units. Cypress also grants you a personal, non-exclusive, nontransferable, license (without the right to sublicense) under those claims of Cypress's patents that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely to the minimum extent that is necessary for you to exercise your rights under the copyright license granted in the previous sentence. Any other use, reproduction, modification, translation, or compilation of the Software is prohibited.
CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any product or circuit described in this document. Any information provided in this document, including any sample design information or programming code, is provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality and safety of any application made of this information and any resulting product. Cypress products are not designed, intended, or authorized for use as critical components in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, life-support devices or systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or hazardous substances management, or other uses where the failure of the device or system could cause personal injury, death, or property damage ("Unintended Uses"). A critical component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and Company shall and hereby does release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products. Company shall indemnify and hold Cypress harmless from and against all claims, costs, damages, and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of Cypress products.
Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, PSoC, CapSense, EZ-USB, F-RAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respective owners.
CySmart, F-RAM, PRoC, Programmable System-on-Chip, and PSoC Creator are trademarks of Cypress Semiconductor Corporation.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 2
Contents
Safety Information 6
1. Introduction 10
1.1 Kit Contents ...............................................................................................................1 1
1.2 BLE Pioneer Baseboard Details ................................................................................12
1.3 PSoC Creator ............................................................................................................14
1.4 Getting Started...........................................................................................................17
1.5 Additional Learning Resources..................................................................................17
1.6 Technical Support......................................................................................................19
1.7 Documentation Conventions......................................................................................19
1.8 Acronyms ...................................................................................................................1 9
1.3.1 PSoC Creator Code Examples ......................................................................15
1.3.2 Kit Code Examples.........................................................................................16
1.3.3 PSoC Creator Help ........................................................................................16
1.3.4 Component Datasheets .................................................................................17
1.5.1 Bluetooth Learning Resources .......................................................................18
1.5.2 Other Related Resources...............................................................................18
2. Software Installation 21
2.1 Before You Begin.......................................................................................................21
2.2 Install Software ..........................................................................................................21
2.3 Windows 8.1 and Windows 10 USB Selective Suspend Setting ...............................24
3. Kit Operation 25
3.1 Theory of Operation...................................................................................................25
3.2 KitProg ..................................................................................................................... ..27
3.3 BLE Pioneer Kit USB Connection..............................................................................27
3.4 Placing Modules on Baseboard .................................................................................28
3.5 Programming and Debugging BLE Device ................................................................29
3.5.1 Programming using PSoC Creator.................................................................29
3.5.2 Debugging using PSoC Creator.....................................................................30
3.5.3 Programming using PSoC Programmer.........................................................30
3.6 Updating BLE Dongle for CySmart Central Emulation Tool ......................................32
3.7 USB-UART Bridge .....................................................................................................34
3.8 USB-I2C Bridge .........................................................................................................35
3.9 Updating the KitProg Firmware..................................................................................36
4. Example Projects 37
4.1 Using Example Projects.............................................................................................37
4.2 CapSense Slider and LED .........................................................................................41
4.2.1 Project Description .........................................................................................41
4.2.2 Hardware Connections...................................................................................44
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 3
Contents
4.2.3 Flow Chart ......................................................................................................45
4.2.4 Verify Output ..................................................................................................46
4.3 CapSense Proximity ..................................................................................................54
4.3.1 Project Description .........................................................................................54
4.3.2 Hardware Connections...................................................................................57
4.3.3 Flow Chart ......................................................................................................59
4.3.4 Verify Output ..................................................................................................60
4.4 BLE Central Mode .....................................................................................................65
4.4.1 Project Description .........................................................................................65
4.4.2 Hardware Connections...................................................................................68
4.4.3 Flow Chart ......................................................................................................69
4.4.4 Verify Output ..................................................................................................70
4.5 Eddystone ..................................................................................................................7 3
4.5.1 Project Description .........................................................................................73
4.5.2 Hardware Connection ....................................................................................76
4.5.3 Flow Chart ......................................................................................................77
4.5.4 Verify Output ..................................................................................................77
4.6 BLE Dongle and LED Control ....................................................................................82
4.6.1 Project Description .........................................................................................82
4.6.2 Hardware Connections...................................................................................83
4.6.3 Flow Chart ......................................................................................................84
4.6.4 Verify Output ..................................................................................................85
4.7 Direct Test Mode (DTM) ............................................................................................85
4.7.1 Project Description .........................................................................................85
4.7.2 Hardware Connection ....................................................................................87
4.7.3 Verify Output ..................................................................................................88
5. Hardware 89
5.1 BLE Pioneer Baseboard ............................................................................................89
5.1.1 PSoC 5LP ......................................................................................................89
5.1.2 Power System ................................................................................................89
5.1.3 Programming Interface...................................................................................96
5.1.4 Expansion Connectors ...................................................................................96
5.1.5 USB Mini-B Connector ...................................................................................99
5.1.6 CapSense Circuit .........................................................................................100
5.1.7 BLE Pioneer Baseboard LEDs.....................................................................101
5.1.8 Push-Buttons................................................................................................103
5.1.9 Cypress Ferroelectric RAM (F-RAM) ...........................................................104
5.1.10 Serial Interconnection between KitProg and Module ...................................105
5.1.11 Module Headers ...........................................................................................106
5.2 Module Board ..........................................................................................................107
5.2.1 PSoC 4 BLE or PRoC BLE Device ..............................................................107
5.2.2 Module Power Connections .........................................................................108
5.2.3 Module Headers (20-Pin and 24-Pin Headers) ............................................108
5.2.4 Wiggle Antenna ............................................................................................110
5.2.5 Antenna Matching Network .......................................................................... 111
5.2.6 BLE Passives ...............................................................................................112
5.2.7 Test Points....................................................................................................113
5.3 BLE Dongle Board ...................................................................................................113
5.3.1 Power System ..............................................................................................114
5.3.2 USB Type-A Plug .........................................................................................114
5.3.3 User LED......................................................................................................115
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 4
Contents
6. Advanced Topics 116
6.1 Using FM24V10 F-RAM...........................................................................................116
6.1.1 Address Selection ........................................................................................116
6.1.2 Write/Read Operation ..................................................................................117
A. Appendix 118
A.1 Bill of Materials (BOM) .............................................................................................118
A.2 KitProg Status LED States.......................................................................................127
A.3 Adding BLE Module-Compatible Headers on Your Baseboard ...............................128
A.4 Programming BLE Modules via MiniProg3 ..............................................................129
A.5 BLE Modules and BLE Dongles Compatible with the BLE Pioneer Kit ...................130
A.6 Migrating Projects Across Different Pioneer Series Kits ..........................................136
Revision History 142
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 5
Safety Information
The CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit is intended for development purposes only. Users are advised to test and evaluate this kit in an RF development environment.
This kit is not a finished product and when assembled may not be resold or otherwise marketed unless all required authorizations are first obtained. Contact support@cypress.com for details.
CY8CKIT-042-BLE-A boards contain ESD-sensitive devices. Electrostatic charges readily accumulate on the human body and any equipment, and can 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-A 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.
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-A 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.
CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 6
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 with normal household waste. Never dispose batteries in fire because they can explode. It is important not to dispose 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-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 7
Loading...
+ 17 hidden pages