Microchip Technology BM78 User Manual

Microchip Technology BM78 User Manual

Hide thumbs Also See for BM78:

Advertisement

Quick Links

BM78 Evaluation Board (EVB)
User's Guide
 2016 Microchip Technology Inc.
DS70005246A
Arrow.com.
Downloaded from

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BM78 and is the answer not in the manual?

Questions and answers

Summary of Contents for Microchip Technology BM78

  • Page 1 BM78 Evaluation Board (EVB) User’s Guide  2016 Microchip Technology Inc. DS70005246A Arrow.com. Downloaded from...
  • Page 2 WiperLock, Wireless DNA, and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries.
  • Page 3: Table Of Contents

    2.1 Hardware features ..................17 Chapter 3. Getting Started 3.1 Prerequisites ....................21 3.2 Using BM78 EVB in USB-UART Serial Interface Mode ....... 22 3.3 Using BM78 EVB in PICtail Interface Mode ..........45 Appendix A. Schematics A.1 BM78 EVB Schematics ................49 Worldwide Sales and Service ..................
  • Page 4 BM78 EVB User’s Guide NOTES:  2016 Microchip Technology Inc. DS70005246A-page 4 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Downloaded from Downloaded from Downloaded from Downloaded from...
  • Page 5: Preface

    Document Revision History DOCUMENT LAYOUT This document describes how to use the BM78 EVB (also referred to as “Evaluation kit”) as a development tool to emulate and debug firmware on a target board. This user’s guide is composed of the following chapters: •...
  • Page 6 BM78 EVB User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Represents Examples Italic characters Referenced books MPLAB IDE User’s Guide Emphasized text ...is the only compiler... Initial caps A window the Output window...
  • Page 7 This user’s guide describes how to use the Evaluation kit. The following Microchip documents are available and recommended as supplemental reference resources. BM78 Data Sheet (DS60001380) Refer to this document for detailed information on the BM78 module. Reference information found in this data sheet includes: • BM78 Module features and pin configurations •...
  • Page 8 BM78 EVB User’s Guide DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE Microchip’s customer notification service helps keep customers current on Microchip products. Subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest.
  • Page 9 Preface DOCUMENT REVISION HISTORY Revision A (January 2016) This is the initial released version of this document.  2016 Microchip Technology Inc. DS70005246A-page 9 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Downloaded from Downloaded from Downloaded from Downloaded from...
  • Page 10 BM78 EVB User’s Guide NOTES:  2016 Microchip Technology Inc. DS70005246A-page 10 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from...
  • Page 11: Chapter 1. Introduction

    Thank you for purchasing a BM78 Evaluation Kit. This document describes a detailed information about the Microchip Technology BM78 Evaluation Board (EVB). The BM78 EVB enables the user to evaluate and demonstrate the functionalities of the ® Microchip BM78 dual-mode Bluetooth module.
  • Page 12: Kit Contents

    • Configuration settings stored in the internal EEPROM of the BM78 module • On board dip switch block to set operating modes • PICtail and PICtail Plus interfaces to fully access the BM78 module using an external PIC MCU • Embedded USB-to-UART converter to enable application mode and programming interface to update firmware and configuration settings ...
  • Page 13: Bm78 Evb Components

    Representations of the layout of the BM78 EVB are shown in Figure 1-1 Figure 1-2. The top assembly of the BM78 EVB includes these key features, as indicated in Figure 1-1: 1. FP1 – BM78 module (BM78SPPS5MC2/NC2). 2. On board antenna – Mounted on the BM78 module.
  • Page 14 MCP2200 USB-to-UART converter for easy interfacing with a host computer. On the BM78 EVB, connecting the mini-B USB receptacle (P1) to the USB port of a computer enumerates the BM78 module as a Composite Device Class (CDC) USB device for serial communication.
  • Page 15: Pictail Plus Interface

    Introduction PICtail PLUS INTERFACE Using the PICtail Plus (J2) or PICtail (J1) interface, the BM78 EVB can be plugged into any standard Microchip development board, for example, Explorer 16 Development Board (DM240001) or the PIC18 Explorer Board (DM183032) which supports the PICtail Plus or PICtail interface.
  • Page 16 BM78 EVB BOARD INSERTED INTO PICtail ™ Plus FIGURE 1-4: INTERFACE Note: Ensure that the BM78 module on the BM78 EVB is facing the PIC Plug-In Module (PIM) while inserting the BM78 EVB board into either of the EVB headers.  2016 Microchip Technology Inc.
  • Page 17: Chapter 2. Hardware

    Figure 2-1. FIGURE 2-1: BM78 EVB BLOCK DIAGRAM HARDWARE FEATURES The following key features of the BM78 EVB are provided in the order given in the Figure 1-1. 2.1.1 Power Supply Users can supply power to the BM78 EVB using any one of the following options: •...
  • Page 18 • SW4 – Mode switch Table 2-1 Table 2-2 provide the details of the SW1 and SW4 switches. Note: The SW_BTN/SW1 button must be pressed to wake-up the BM78 module. TABLE 2-1: SWITCH SW1 DETAILS Part Number Signal Pin Description...
  • Page 19 (default) Test (Write EEPROM) Flash Application (default) 2.1.4 The BM78 EVB contains one LED (D1) which displays the connection status. 2.1.5 Jumpers Table 2-5 describes the pin, signal, and pin description of the Jumper J1. TABLE 2-5: GROUND TEST CONNECTOR...
  • Page 20 C expansion port details. TABLE 2-6: CN4-I C EXPANSION PORT DETAILS Part Number Signal Pin Description P1_2/SCL BM78 P1_2 (pin 13) and its SCL function Ground Pin P1_3/SDA BM78 P1_3 (pin 14) and its SCL function INT_3V3 Connect BM78 V _I/O P3_6 BM78 P3_6 (pin 28) and its Reset function ...
  • Page 21: Chapter 3. Getting Started

    Section 3.1 “Prerequisites” Section 3.2 “Using BM78 EVB in usb-to-Uart Serial Interface Mode” Section 3.3 “Using BM78 EVB in PICtail Interface Mode” PREREQUISITES The following hardware and software are required for getting started with the BM78 EVB. 3.1.1 Hardware Requirement •...
  • Page 22: Using Bm78 Evb In Usb-Uart Serial Interface Mode

    For the SPP demonstration, a smart phone or tablet running Android v4.3 or later is required. A virtual COM port is required when the BM78 EVB is connected to a host computer. If virtual COM port is not available in the Device Manager port list, install the Microchip MCP2200 driver which is available for download from the Microchip web site using the keyword "Microchip MCP2200 Driver".
  • Page 23 FIGURE 3-2: BLUETOOTH CHAT APPLICATION WINDOW 8. To transmit and receive a text: - Select COM Port which is assigned to the BM78 EVB - Select BaudRate (the default value is 115200) 9. Click Connect. 10. The Bluetooth Chat window will display the transmitted and received text along...
  • Page 24 Disconnect button: The button status is changed from the ‘Connect’ to the ‘Disconnected’. b) Text field: To enter the text to transmit. c) Send button: To transmit the text to the smart phone over the BM78 EVB Bluetooth connection. d) Message sent from the computer application (Bluetooth EVB) to the smart phone.
  • Page 25 Security settings, see Figure 3-4. b) After the installation, the BtChat application icon is displayed in the applica- tion view. FIGURE 3-4: FILE MANAGER VIEW AND BtChat APPLICATION ICON  2016 Microchip Technology Inc. DS70005246A-page 25 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 26 ON. b) Tap Scan to initiate the Bluetooth device scan. c) Locate the Dual -SPP device (BM78 EVB) and then tap Start to start the pair- ing. d) Once paired, the Dual-SPP device is listed in the paired devices list.
  • Page 27 From the BtChat main window, use the Android menu to open the BtChat menu, Figure 3-6. b) Tap Setting to open the Application Settings. FIGURE 3-6: BtChat MENU  2016 Microchip Technology Inc. DS70005246A-page 27 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 28 BM78 EVB User’s Guide c) Enable Show Rx Text option to display the received text in the application, Figure 3-7. d) Tap Back to return to the main window. FIGURE 3-7: BtChat APPLICATION SETTINGS  2016 Microchip Technology Inc. DS70005246A-page 28 Arrow.com.
  • Page 29 Getting Started 15. To set up the Bluetooth SPP connection to the BM78 EVB, follow these steps, Figure 3-9. a) From the Bluetooth Chat Application main screen, tap the Android menu to open the Bluetooth Chat menu options and Tap Connect a device to open the Paired Devices list.
  • Page 30 BM78 EVB User’s Guide c) After the connection is established, the status message “Dual SPP has con- nected” will be displayed on the main window, see Figure 3-9. FIGURE 3-9: BtChat SHOWING DUAL SPP CONNECTION MESSAGE  2016 Microchip Technology Inc.
  • Page 31 On the BtChat application, enter the text to be sent to the Bluetooth Chat application on the host computer. b) Click Send to transmit the text to the BM78 EVB which is connected to the Bluetooth Chat application. c) The received text is displayed on the Bluetooth Chat window.
  • Page 32 BLETR application to establish the connection to the BM78 EVB. Please note, BLE do not need authentication hardware to work with iOS devices. The key fea- ture of the BM78 EVB is a transparent serial data connection from the BM78 module’s UART to an iOS device over BLE connection.
  • Page 33 ENABLING BLUETOOTH FUNCTIONALITY 5. BLETR scans the BLE peripheral devices and lists them, and if the devices are not displayed, tap Refresh to restart the BLE peripheral scan, see Figure 3-13.  2016 Microchip Technology Inc. DS70005246A-page 33 Arrow.com. Arrow.com. Arrow.com.
  • Page 34 BM78 EVB User’s Guide FIGURE 3-13: SCANNING BLE DEVICES 6. Search for the Dual-SPP BLE peripheral device and tap to establish the connection to the BM78 EVB.  2016 Microchip Technology Inc. DS70005246A-page 34 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 35 Getting Started 7. On successful connection to the BM78 EVB, BLETR displays “Dual-SPP con- nected” message, see Figure 3-14. FIGURE 3-14: BLETR APPLICATION  2016 Microchip Technology Inc. DS70005246A-page 35 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 36 BM78 EVB User’s Guide 8. Tap the connected Dual-SPP device to display the top-level view. The window displays the following three views when the Dual-SPP is connected to the BM78 EVB, see Figure 3-15 Figure 3-16. - Transparent – Displays the received data, sent data, and options to enable the features.
  • Page 37 Getting Started FIGURE 3-16: TRANSPARENT, PROPRIETARY, AND DEVICE INFO VIEW DETAILS  2016 Microchip Technology Inc. DS70005246A-page 37 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 38 Section 3.2.3 “Data Modes”. FIGURE 3-17: DATA MODE 10. To send data from the BLETR iOS device to the BM78 EVB, enter data in the text box using the soft keypad, see Figure 3-18.  2016 Microchip Technology Inc.
  • Page 39 Getting Started FIGURE 3-18: BLETR APPLICATION: SOFT KEYBOARD 11. Tap keypad to enter the text and then tap Send to transmit the text to the BM78 EVB over BLE connection.  2016 Microchip Technology Inc. DS70005246A-page 39 Arrow.com. Arrow.com. Arrow.com.
  • Page 40 BM78 EVB User’s Guide 12. The text is received through the BM78 UART and is displayed in the Bluetooth Chat text window, see Figure 3-19. FIGURE 3-19: BLUETOOTH CHAT WINDOW SHOWING RECEIVED TEXT  2016 Microchip Technology Inc. DS70005246A-page 40 Arrow.com.
  • Page 41 BLETR window with values. Users must tap Start button in the BLETR window to initiate the data transfer and the Bluetooth Chat application window will display the received data.  2016 Microchip Technology Inc. DS70005246A-page 41 Arrow.com. Arrow.com.
  • Page 42 The Tx File transfer feature is similar to the Timer feature. Figure 3-22 shows the Tx File functions and the transfered files (which are embedded in the BLETR) to the BM78 EVB. To transmit a file, perform these actions: a) Tap Tx File. The Tx File dialog is displayed.
  • Page 43 The device information service is available to all Bluetooth Low Energy 4.2 hosts that access the BM78 EVB and it provides the identification information of the BM78 BLE peripheral device.
  • Page 44 BLETR. Please note the BLE connection parameters only affect the BLE connections. • Max Interval – communication time (ms) interval between the BM78 module and BLE central device. • Connection Timeout – time (ms) between communication events before a connec- tion is considered lost.
  • Page 45: Using Bm78 Evb In Pictail Interface Mode

    Getting Started USING BM78 EVB IN PICTAIL INTERFACE MODE This section provides an overview of tools that can be used to configure the BM78 EVB using a PIC MCU through the PICtail interface. The BM78 Configuration UI Tool is used to change the Bluetooth parameters and generate a EEPROM configuration dump file.
  • Page 46 BM78 EVB User’s Guide 3. Browse to import the dump file, and then click Open, see Figure 3-27. FIGURE 3-27: LOAD UI PARAMETER 4. In the UI Tool dialog, under Version & Device section, Click Edit, see Figure 3-28. FIGURE 3-28: UI TOOL VIEW ...
  • Page 47 Getting Started 5. The BM78 UI tool will display the Bluetooth configuration window with various options (tabs) to configure Bluetooth parameters, see Figure 3-29. Click Help to configure each parameters required for the specific application. 6. After updating the Bluetooth parameters, click Finish. The Start Menu window is displayed.
  • Page 48 7. In the Start Menu, click Save to save the updated EEPROM configuration dump file. The new EEPROM configuration dump file will be different from the default EEPROM configuration dump file due to the updates made to the Bluetooth parameters using the BM78 UI tool. FIGURE 3-30: START MENU VIEW 8.
  • Page 49: Appendix A. Schematics

    BM78 EVB USER’S GUIDE Appendix A. Schematics BM78 EVB SCHEMATICS FIGURE A-1: BM78 EVB SCHEMATICS FIGURE A-2: BM78 MODULE TEST INTERFACE  2016 Microchip Technology Inc. DS70005246A-page 49 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 50 BM78 EVB User’s Guide FIGURE A-3: BM78 EVB CONFIGURATION FIGURE A-4: BM78 EVB POWER SWITCH TEST BUTTON FIGURE A-5: GROUND TEST CONNECTOR FIGURE A-6: EXTERNAL I C INTERFACE  2016 Microchip Technology Inc. DS70005246A-page 50 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 51 Schematics  2016 Microchip Technology Inc. DS70005246A-page 51 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 52 BM78 EVB User’s Guide FIGURE A-8: USB TO UART CONVERTER FIGURE A-9: PICTAIL PLUS 30-PIN INTERFACE ON BM78 EVB BOARD FIGURE A-10: PICTAIL 28-PIN INTERFACE ON BM78 EVB BOARD  2016 Microchip Technology Inc. DS70005246A-page 52 Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 53 NOTES:  2016 Microchip Technology Inc. DS70005246A-page 53 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 54: Worldwide Sales And Service

    Fax: 886-2-2508-0102 San Jose, CA Fax: 86-29-8833-7256 Thailand - Bangkok Tel: 408-735-9110 Tel: 66-2-694-1351 Canada - Toronto Fax: 66-2-694-1350 Tel: 905-673-0699 Fax: 905-673-6509 07/14/15  2016 Microchip Technology Inc. DS70005246A-page 54 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.

Table of Contents