Hardware 5.2 BLE Module Board 5.2.1 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 P1.2 P1.0 P0.5 P0.3 P0.1 VDDA P3.7 P3.6 P3.5 P3.4 P3.3 P3.2 P3.1 P3.0 VCCD VREF P2.
Hardware 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 VDDA J1 VDDR TP2 RED P3.6 P3.4 P3.2 P3.0 P4.0 P4.1 P2.6 P2.4 P2.2 P2.
Hardware 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 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev.
Hardware 5.2.4 Antenna Matching Network An Antenna Matching Network is required between the BLE device and the antenna to achieve optimum 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.
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 0402 0.1 uF C2 0603 C3 1.0 uF 0402 0.1 uF C4 0603 C5 C6 1.0 uF 0402 0.1 uF 0603 C7 VDDD 0.1 uF 0603 1.0 uF VREF C9 0402 C8 1.0 uF 0402 0.
Hardware 5.2.6 Test Points All power domains are brought out as test points for easy probing. 5.3 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.
Hardware 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 Headers USB 5V PRoC USB 5V PTC 5V PSoC5LP ESD P rotection 5.3.1.1 Protection Circuits The PTC resettable fuse is connected to protect the computer's USB ports from shorts and overcurrent. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev.
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 automatically 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.
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 R7 LED1 2 BLE_STATUS 1 0805 0805 820 ohm Status LED Blue CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev.
6. Advanced Topics 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. 6.1 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.
Advanced Topics 2. Drag and drop a UART (SCB) component (Figure 6-2) to the TopDesign. Figure 6-2. UART Component in Component Catalog 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.
Advanced Topics 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 Figure 6-5. UART Basic Tab Window CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev.
Advanced Topics Figure 6-6. UART Advanced Tab Window 5. Select P1[4] for UART RX and P1[5] for UART TX in the Pins tab of .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.
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.
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.
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.
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 KitProg 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.
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.
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.
Advanced Topics 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 Figure 6-15. Data Displayed on PuTTY CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev.
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.
Advanced Topics 2. Drag and drop an I2C component (Figure 6-17) to the TopDesign. Figure 6-17. I2C Component in Component Catalog 3. To configure the I2C component, double-click or right-click the I2C component and select Configure, 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.
Advanced Topics 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 Figure 6-20. I2C Basic and Advanced Tabs CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev.
Advanced Topics 5. Select pin P3[5] for the I2C SCL and pin P3[4] for the I2C SDA in the Pins tab of .cydwr, as shown in Figure 6-21. Figure 6-21. Pin Selection_USBI2C 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.
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 th
Advanced Topics Figure 6-22. Connecting to KitProg/ in BCP CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev.
Advanced Topics 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 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.
Advanced Topics 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 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.
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.
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.
Advanced Topics Figure 6-29. Select Device in PSoC Creator 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.
Advanced Topics 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 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.
Advanced Topics Figure 6-33. Select KitProg Bootloader Hex File 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.
Advanced Topics 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 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.
Advanced Topics 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 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev.
Advanced Topics 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 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.
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.
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: \CY8CKIT-042-BLE Kit\\Fi
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: 6.4 ■ The 10-pin SWD debug and programming header (J7) is not populated.
Advanced Topics 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 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev.
Advanced Topics 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 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev.
Advanced Topics 5. After programming has completed, the following message appears, as shown in Figure 6-43: “Firmware Update Finished at
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: \ CY8CKIT-042-BLE Kit\\Firmware\Programmer\KitProg\KitProg.cyacd Figure 6-44. Load KitProg.
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. 4. 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.
Advanced Topics 6. After programming has completed, the following message appears, as shown in Figure 6-46: “Programming Finished Successfully”. Figure 6-46. Programming Finished Successfully 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.
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.
Advanced Topics Figure 6-49. F-RAM Single-Byte and Multiple-Byte Read Packet Structure 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. 6.
Advanced Topics 4. If Bluetooth is not enabled on the device, the app will ask to enable it, as shown in Figure 6-50. Figure 6-50. Turn on Bluetooth on Device 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.
Advanced Topics 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 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.
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.
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.
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.
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.
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.
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 > CySmart .
Advanced Topics 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 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.
Advanced Topics 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 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.
Advanced Topics 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 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.
Advanced Topics 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 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.
Advanced Topics 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 6. To modify the value of a characteristic individually, select the particular characteristic from the attribute list.
Advanced Topics 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 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.
Advanced Topics 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 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. Appendix A.1 Schematics A.1.1 BLE Pioneer Board PSoC 5LP Programmer / Debugger P5LP_VDD C7 1.0 uF C8 0.1 uF 0603 0402 C6 1.0 uF 0603 R14 ZERO VBUS P5LP_VDD P5LP0_4 VSSD P5LP_VCCD C9 0.1 uF 0402 P5LP_VDD SAR Bypass Capacitor P5LP0_6 P5LP2_5 P5LP_VDD C24 1.0 uF NO LOAD 0603 C10 0.
R11 LED2 P5LP3_1 2 1 0805 820 ohm Status LED Green VDD J8 Status LED 1 P5LP0_0 3 P5LP3_4 5 P5LP3_6 7 P5LP12_6 9 P5LP12_111 P5LP12_013 P5LP2_5 15 UART RX VDD P5LP2_6 SPI_SSEL 1 3 5 7 9 11 13 15 2 4 6 8 10 12 14 16 2 4 6 8 10 12 14 16 P5LP1_2 P5LP0_1 P5LP3_5 P5LP3_7 P5LP12_7 P5LP3_0 P5LP12_5 UART TX SPI_MOSI 8x2 RECPT P5LP2_7 PSoC 5LP GPIO Expansion Header 4 5 R23 2.2K 1 2 R22 2.
R7 ZERO NO LOAD V3.3 VDD PMOS( NTR4171PT1G) Q1 Q2 Vz=3.9V(BZT52C3V9-7-F) PMOS( DMP3098L-7) R8 15K Q3 PMOS(PMV48XP,215) D9 R9 10K R59 ZERO NO LOAD VDD VFRAM PMOS( NTR4171PT1G) Q4 Q6 Vz=2.7V(MMSZ4682T1G) PMOS( NTR4171PT1G) R58 15K Q5 PMOS( PMV48XP,215) D11 R20 10K Protection Circuit D1 SOD123 VBUS D2 VIN D3 U1 EN_CTRL SOD123 VCC D4 3216 SOD123 + C1 1 uFd 1 CTL 2 OUT VCC 3 NC C GND 4 SOD123 VADJ 5 3216 R1 11K 1% 6 VDD + C2 4.7uF R3 14.
2 1 J15 TP1 RED NO LOAD HDR2 VDD VADJ R2 BLE_VDD R44 LED1 2 1 ZERO NO LOAD 0805 560 ohm VTARG Power LED R45 ZERO Current Measurement Jumper P3_4 J1 8 BLE_VDD 7 /XRES 6 V3.3 VBUS 5 D5 SOD123 4 3 2 VIN 1 NC IORef 10 9 VREF 8 GND 7 P0_3 6 P0_1 5 Reset P0_0 4 V3.3 P0_2 3 V5.0 P0_4 2 GND P0_5 1 GND P3_1 3 P3_2 5 P3_3 7 P3_4 9 P3_5 11 C26 0.1 uF 330 OHM @ 100MHz SDA 0402 NO LOAD AREF GND TP3 BLE_VDD RED VDDA L2 D13 C27 0.
VFRAM VFRAM LED3 R28 2.2K P2_6 R29 1 BLE_VDD 1.5K P3_6 4 R G R30 2 U3 C23 1.5K A1 A2 0402 P3_7 3 C29 0.1 uF 33uF 1 2 3 4 NC A1 A2 VSS B VFRAM VDD WP SCL SDA R31 2.2K 8 7 6 5 R35 2.
A.1.2 BLE Module VDDR 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 VDDA C1 VDDD 0402 L2 J3 1 2 3 TX 4 RX HEADER 12x2 Analog Pins L3 L4 330 OHM @ 100MHz TP2 RED VDDR 330 OHM @ 100MHz VDDR P3.6 P3.4 P3.2 P3.0 P4.0 P4.1 P2.6 P2.4 P2.2 P2.0 No Load 2 4 6 8 10 12 14 16 18 20 22 24 330 OHM @ 100MHz J1 1 3 5 7 9 11 13 15 17 19 21 23 0.1 uF C2 0603 C3 1.0 uF C4 0.1 uF 0402 0603 C5 1.0 uF 0402 C6 0.1 uF 0603 C7 1.0 uF 0402 VDDD 0.1 uF 1.
Dongle P5LP_VDD VTARG NO LOAD NO LOADNO LOADNO LOAD NO LOAD P5LP_VDD 0402 C30 1.0 uF 0603 R19 15K R20 15K P5LP12_1 P5LP12_0 P5LP3_7 P5LP3_6 P5LP_DP P5LP_DM 4 0603 P5LP_VDD F1 PTC Resettable Fuse 1 R16 4.7K NO LOAD USB A PLUG J1 P5LP_XRES VBUS DM DP GND S1 S2 C37 0.1 uF 0402 NO LOAD 1 2 3 4 5 6 0402 C38 0.1 uF R22 P5LP_DM P5LP_DP 100K R21 LED2 2 DM DP D3 C36 0.1 uF P5LP0_4 to P5LP0_7, P5LP3_2, P5LP3_3 are reserved for HW REV ID D2 P5LP_VDD 1 0805 820 ohm C40 1.
SCL SDA VCCD VDDA VREF VDDR R1 BLE_P3_2 BLE_TEST1 BLE_BIND TP14 /XRES ANT1 VDDR 2 1 ANTENNA C19 1.2 pF 1.2 pF C20 5.1nH L1 NO LOAD VDDD XTAL32O/P6.0 XTAL32I/P6.1 XRES P4.0 P4.1 P5.0 CYBL10162-56LQXI P5.1 VSSD VDDR GANT1 ANT GANT2 VDDR C2 0603 C3 1.0 uF 0603 C4 1.0 uF 0402 C5 0.1 uF 0603 C6 1.0 uF 0402 C7 0.1 uF 0402 C8 0.1 uF 1.0 uF 0603 VBUS VDDA R2 VDDD BLE_TX 1 2 3 4 5 6 7 8 9 10 11 12 13 14 VDDR XTAL24I XTAL24O VDDR P0.0 P0.1 P0.2 P0.3 VDDD P0.4 P0.5 P0.6 P0.7 P1.
A.2 Board Layout A.2.1 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.
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.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.
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.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.
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.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.
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.3 Bill of Materials (BOM) A.3.1 BLE Pioneer Board Item Qty Reference 1 Value - 2 1 BT1 CR2032 Battery Holder 3 1 C1 1.0 uF 4 1 C2 4.7 uF 5 1 C3 0.01 uFd 6 1 C4 100 uFd C5,C8,C9,C10,C1 2,C14,C17,C18,C 0.1 uFd 19,C21,C23,C25, C26,C27,C28 C6,C7,C11,C13,C 1.0 uFd 15,C16,C20 7 15 8 7 9 1 C29 10 6 D1,D2,D3,D4,D5, MBR0520L D10 11 3 D6,D7,D8 ESD diode 12 1 D9 3.9V Zener 13 1 D11 2.
Item Qty Reference Value 22 1 J14 1X1 RECP 23 1 J15 2p_jumper 24 1 J16 3p_jumper 25 1 LED1 26 1 LED2 27 1 LED3 RGB LED 28 3 L1,L2,L3 330 OHM @ 100MHz 29 3 Q2,Q4,Q6 PMOS 30 1 Q1, PMOS 31 2 Q3,Q5 PMOS 32 1 R1 11K 1% 33 1 R2 560 ohm 34 1 R3 14.7K 1% 35 1 R4 10K 1% 36 1 R5 4.
Item Qty Reference Value 46 5 R22,R23,R28,R3 2.2K 1,R35 47 2 R24,R25 30K 48 2 R29,R30 1.5K 49 5 50 2 51 1 TP5 BLACK 52 2 TVS1,TVS2 5V 350W 53 1 U1 LDO 54 1 U2 PSoC 5LP 55 1 U3 F-RAM 56 1 U4 DUAL PMOS R39,R40,R41,R4 560 ohm 2,R43 SW PUSHSW1,SW2 BUTTON Description 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 SPSTNO 0.05A 12V TEST POINT PC MINI .
Item Qty Reference 66 1 J9 67 2 TP4,TP5 68 3 TP1,TP2,TP3 69 2 R44,R12 70 1 J12 71 1 J5 Value Description CONN HEADER FEMALE 2POS .1" GOLD TEST POINT 43 HOLE 65 BLACK PLATED BLACK TEST POINT 43 HOLE 65 RED PLATED RED RES 0.0 OHM 1/8W 0805 ZERO SMD CONN HEADER FMAL 3x2 RECPT 6PS .1" DL GOLD CONN FEMALE 6POS 6X1 RECP RA .
A.3.2 BLE Module A.3.2.1 CY5671 PRoC BLE Module Item Qty Reference Value Description Manufacturer Mfr Part Number 1 1 600-60196-01 - PRoC BLE Module printed Cypress qualified ven600-60196-01 Rev03 circuit board dor 2 8 C1,C3,C5,C7,C9,C 11,C16,C18 0.1 uF Samsung ElectroCAP .1UF 16V CERAMIC Mechanics America, Y5V 0402 Inc CL05F104ZO5NNNC 3 10 C2,C4,C6,C8,C10, C12,C15,C17,C19, C20 1.0 uF CAP CERAMIC 1.
Item Qty Reference Value Description Manufacturer Mfr Part Number 19 1 R1 Zero Ohm RES 0.0 OHM 1/8W 0605 TE Connectivity SMD 1623094-1 20 1 R2 Rbleed No Load - - 21 1 R3 4.7K RES 4.7K OHM 1/10W 5% 0603 SMD Panasonic - ECG ERJ-3GEYJ472V 22 1 J3 4 HEADE R CONN HEADER 4POS .
A.3.2.2 CY8CKIT-142 PSoC 4 BLE Module Item Qty Reference Value 1 1 600-60195-01 - 2 8 C1,C3,C5,C7,C9, C11,C16,C18 0.1 uF 3 10 C2,C4,C6,C8,C10 ,C12,C15,C17,C1 1.0 uF 9,C20 4 1 C21 5 1 C22 6 1 C23 7 1 C24 8 1 C14 9 1 J1 10 1 J2 11 1 L1 12 3 L2,L3,L4 13 1 U1 14 1 Y1 15 1 Y2 16 1 LBL Description PSoC 4 BLE Module printed circuit board CAP .1UF 16V CERAMIC Y5V 0402 Manufacturer Cypress qualified vendor Samsung ElectroMechanics America, Inc CAP CERAMIC 1.
Item Qty 21 1 22 1 23 4 24 1 Reference Value Description RES 4.7K OHM 1/10W 5% R3 4.7K 0603 SMD 4 CONN HEADER 4POS J3 HEADER .100 R/A 15AU TEST POINT 43 HOLE 65 TP1,TP2,TP3,TP4 RED PLATED RED TEST POINT 43 HOLE 65 TP5 BLACK PLATED BLACK Manufacturer Mfr Part Number Panasonic - ECG ERJ-3GEYJ472V FCI 68016-204HLF Keystone Electronics Keystone Electronics CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev.
A.3.3 Dongle Item Qty 1 Reference Value Manufacturer Mfr Part Number PCB, 60 mm x 30 mm, High Tg, ENIG finish, 2 layer, Color = BLACK, Silk = WHITE. Cypress qualified vendor 600-60197-01 Rev02 1 600-60197-01 17 C1,C4,C6,C7,C9,C11 ,C14,C16,C25,C28,C 0.1 uFd 29,C32,C35,C36,C38 ,C41,C42 CAP .1UF 16V CERAMIC Y5V 0402 TDK Corporation C1005X5R1A104K050BA 3 17 C2,C3,C5,C8,C10,C 12,C13,C15,C17,C18 1.0 uFd ,C24,C26,C30,C31,C 33,C34,C40 CAP CERAMIC 1.
Item Qty Reference Value Description Manufacturer Mfr Part Number 20 9 R1,R2,R3,R4,R12,R 13,R14,R15,R26 ZERO RES 0.
A.4 KitProg Status LED States User Indication 1 2 Scenario LED blinks fast: LED starts blinking at power up, Time period = 0.25 s if bootloadable file is corrupt. Release the Reset button and re-plug power if you entered Entered Bootloader mode by this mode by mistake. If the mode entry was intentional, holding the PSoC 4 Reset button bootload the new.cyacd file using the Bootloader Host tool Time period = 1.50 s during kit power-up. shipped with PSoC Creator. LED blinks very fast: Any I2C traffic.
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 Pin 1 20 pin header 24 pin header You can get these at Digikey. # Description Manufacturer Mfr Part Number Digikey part # 1 CONN HEADER 2.54MM 24POS GOLD Sullins Connector Solutions SBH11‐PBPC‐D12‐ST‐BK SBH11‐PBPC‐D12‐ST‐BK‐ND 2 CONN HEADER 2.
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 11/10/2014 Origin of Change 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.
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 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.
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 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.