background image

BM78 EVB User’s Guide

DS70005246A-page 8

 2016 Microchip Technology Inc.

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.

To register, access the Microchip web site at www.microchip.com, click on Customer 
Change Notification and follow the registration instructions.

The Development Systems product group categories are:

Compilers

 – The latest information on Microchip C compilers and other language 

tools

Emulators

 – The latest information on the Microchip in-circuit emulator, MPLAB 

REAL ICE™

In-Circuit Debuggers

 – The latest information on the Microchip in-circuit 

debugger, MPLAB ICD 3

MPLAB X IDE

 – The latest information on Microchip MPLAB X IDE, the 

Windows

®

 Integrated Development Environment for development systems tools

Programmers

 – The latest information on Microchip programmers including the 

PICkit™ 3 development programmer

CUSTOMER SUPPORT

Users of Microchip products can receive assistance through several channels:

• Distributor or Representative

• Local Sales Office

• Field Application Engineer (FAE)

• Technical Support

Customers should contact their distributor, representative or Field Application Engineer 
(FAE) for support. Local sales offices are also available to help customers. A listing of 
sales offices and locations is included in the back of this document.

Technical support is available through the web site at: 

http://support.microchip.com.

Summary of Contents for BM78

Page 1: ...the information therein All referenced brands product names service names and trademarks are the property of their respective owners 00000005981LF 000 EOS Power Buy Now We have 45 000 LP502030 PCM NT...

Page 2: ...2016 Microchip Technology Inc DS70005246A BM78 Evaluation Board EVB User s Guide...

Page 3: ...pts to break Microchip s code protection feature may be a violation of the Digital Millennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work you may ha...

Page 4: ...VB Functionality 12 1 3 BM78 EVB Components 13 1 4 PICtail Plus Interface 15 Chapter 2 Hardware 2 1 Hardware features 17 Chapter 3 Getting Started 3 1 Prerequisites 21 3 2 Using BM78 EVB in USB UART S...

Page 5: ...BM78 EVB User s Guide DS70005246A page 4 2016 Microchip Technology Inc NOTES...

Page 6: ...he BM78 EVB Chapter 3 Getting Started With BM78 EVB describes how to establish Bluetooth serial data connection using the BM78 EVB Appendix A Reference Schematics provides the BM78 EVB reference schem...

Page 7: ...ample source code define START Filenames autoexec bat File paths c mcc18 h Keywords _asm _endasm static Command line options Opa Opa Bit values 0 1 Constants 0xFF A Italic Courier New A variable argum...

Page 8: ...iguration Electrical characteristics Reference Circuits THE MICROCHIP WEB SITE Microchip provides online support via our web site at http www microchip com This web site makes files and information ea...

Page 9: ...n the Microchip in circuit emulator MPLAB REAL ICE In Circuit Debuggers The latest information on the Microchip in circuit debugger MPLAB ICD 3 MPLAB X IDE The latest information on Microchip MPLAB X...

Page 10: ...Preface 2016 Microchip Technology Inc DS70005246A page 9 DOCUMENT REVISION HISTORY Revision A January 2016 This is the initial released version of this document...

Page 11: ...BM78 EVB User s Guide DS70005246A page 10 2016 Microchip Technology Inc NOTES...

Page 12: ...at Application Serial Port Profile SPP iOS Bluetooth Terminal BLETR Bluetooth Chat Tool The configuration softwares are as follows BM78 Configuration Library BM78 Configuration User Interface UI Tool...

Page 13: ...ual configuration mode where the MCU can access configuration settings Configuration settings stored in the internal EEPROM of the BM78 module On board dip switch block to set operating modes PICtail...

Page 14: ...ures as indicated in Figure 1 1 1 FP1 BM78 module BM78SPPS5MC2 NC2 2 On board antenna Mounted on the BM78 module 3 CN2 Header that brings out the BM78 module pins 4 SW3 Reset button 5 SW4 Mode Switch...

Page 15: ...ort on the BM78 is exposed through a 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 enume...

Page 16: ...l and General Purpose Input Output GPIO pins on the BM78 module The PICtail Plus or PICtail interface can be used to configure the BM78 module by updating the Bluetooth parameters residing on the inte...

Page 17: ...016 Microchip Technology Inc FIGURE 1 4 BM78 EVB BOARD INSERTED INTO PICtail Plus INTERFACE Note Ensure that the BM78 module on the BM78 EVB is facing the PIC Plug In Module PIM while inserting the BM...

Page 18: ...s as shown in Figure 2 1 FIGURE 2 1 BM78 EVB BLOCK DIAGRAM 2 1 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 c...

Page 19: ...ote The SW_BTN SW1 button must be pressed to wake up the BM78 module TABLE 2 1 SWITCH SW1 DETAILS Part Number Pin Signal Pin Description SW1 1 GND Connects 20 Kohm pull down resistance 2 SW_BTN BM78 S...

Page 20: ...ITCH POSITIONS Switch Position Switch Number 1 2 3 Pin Names P2_0 P2_4 EAN ON State Low Low High Pin Functions Test Mode High Applica tion Mode Low Test Mode Flash Write High Flash Write Enable Low Fl...

Page 21: ...ort details TABLE 2 6 CN4 I2 C EXPANSION PORT DETAILS Part Number Pin Signal Pin Description CN4 1 P1_2 SCL BM78 P1_2 pin 13 and its SCL function 2 GND Ground Pin 3 P1_3 SDA BM78 P1_3 pin 14 and its S...

Page 22: ...3 1 1 Hardware Requirement BM78 EVB Users can procure the BM78 EVB from the Microchip web site www micro chipdirect com Bluetooth enabled smart phone or tablet AndroidTM device running Android 4 3 or...

Page 23: ...anager port list install the Microchip MCP2200 driver which is available for download from the Microchip web site using the keyword Microchip MCP2200 Driver FIGURE 3 1 BLUETOOTH SPP CONNECTION TO ANDR...

Page 24: ...com puter The Bluetooth Chat Application window is displayed see Figure 3 2 FIGURE 3 2 BLUETOOTH CHAT APPLICATION WINDOW 8 To transmit and receive a text Select COM Port which is assigned to the BM78...

Page 25: ...t this check box to send a text repeatedly from this appli cation g Repeat Specify the number of times the text needs to be resent h Interval Choose the interval between two resends i Clear Press this...

Page 26: ...iles application from the File Manager During installation ensure that the Unknown Sources is enabled in the Device Security settings see Figure 3 4 b After the installation the BtChat application ico...

Page 27: ...e Figure 3 5 a On the Android device go to Settings Bluetooth and then turn on the Blue tooth by dragging ON b Tap Scan to initiate the Bluetooth device scan c Locate the Dual SPP device BM78 EVB and...

Page 28: ...0005246A page 27 14 To launch the BtChat application on the Android device follow these steps a From the BtChat main window use the Android menu to open the BtChat menu Figure 3 6 b Tap Setting to ope...

Page 29: ...DS70005246A page 28 2016 Microchip Technology Inc c Enable Show Rx Text option to display the received text in the application see Figure 3 7 d Tap Back to return to the main window FIGURE 3 7 BtChat...

Page 30: ...o the BM78 EVB follow these steps see 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 Pai...

Page 31: ...246A page 30 2016 Microchip Technology Inc 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 SHOWIN...

Page 32: ...puter 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 d In the Bluetooth Chat windo...

Page 33: ...o 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 i...

Page 34: ...the iPhone iPod or iPad application Settings 3 Tap Settings Bluetooth 4 To turn on Bluetooth drag the slider FIGURE 3 12 ENABLING BLUETOOTH FUNCTIONALITY 5 BLETR scans the BLE peripheral devices and l...

Page 35: ...78 EVB User s Guide DS70005246A page 34 2016 Microchip Technology Inc FIGURE 3 13 SCANNING BLE DEVICES 6 Search for the Dual SPP BLE peripheral device and tap to establish the connection to the BM78 E...

Page 36: ...Getting Started 2016 Microchip Technology Inc DS70005246A page 35 7 On successful connection to the BM78 EVB BLETR displays Dual SPP con nected message see Figure 3 14 FIGURE 3 14 BLETR APPLICATION...

Page 37: ...e following three views when the Dual SPP is connected to the BM78 EVB see Figure 3 15 and Figure 3 16 Transparent Displays the received data sent data and options to enable the features Proprietary D...

Page 38: ...Getting Started 2016 Microchip Technology Inc DS70005246A page 37 FIGURE 3 16 TRANSPARENT PROPRIETARY AND DEVICE INFO VIEW DETAILS...

Page 39: ...rent Serial Data view which displays three modes Raw Timer and Eco See Figure 3 17 For additional information on these three modes refer to Section 3 2 3 Data Modes FIGURE 3 17 DATA MODE 10 To send da...

Page 40: ...Started 2016 Microchip Technology Inc DS70005246A page 39 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 co...

Page 41: ...e DS70005246A page 40 2016 Microchip Technology Inc 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 S...

Page 42: ...BLETR to send repeated text patterns to the Bluetooth chat application for throughput and data transfer test For example BLETR is config ured to transmit 100 text blocks of 20 characters in every 1000...

Page 43: ...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 d...

Page 44: ...being echoed to the BLETR when the Echo mode is enabled FIGURE 3 23 BLUETOOTH CHAT WINDOW 3 2 4 BLETR Application Device Information Figure 3 24 shows the device information view that displays the cha...

Page 45: ...ntral device Connection Timeout time ms between communication events before a connec tion is considered lost Latency number of connection events the peripheral device BM78 module is allowed to skip To...

Page 46: ...parameters to the BM78 mod ule through the PICtail interface over UART 3 3 1 Configuring BM78 Module Using User Interface UI Tool Using the BM78 module users can update and configure various Bluetooth...

Page 47: ...46 2016 Microchip Technology Inc 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...

Page 48: ...ooth 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...

Page 49: ...M configuration dump file The new EEPROM configuration dump file will be different from the default EEPROM configuration dump file due tothe updates made to the Bluetooth parameters using the BM78 UI...

Page 50: ...BM78 EVB USER S GUIDE 2016 Microchip Technology Inc DS70005246A page 49 Appendix A Schematics A 1 BM78 EVB SCHEMATICS FIGURE A 1 BM78 EVB SCHEMATICS FIGURE A 2 BM78 MODULE TEST INTERFACE...

Page 51: ...r s Guide DS70005246A page 50 2016 Microchip Technology Inc FIGURE A 3 BM78 EVB CONFIGURATION FIGURE A 4 BM78 EVB POWER SWITCH TEST BUTTON FIGURE A 5 VBAT GROUND TEST CONNECTOR FIGURE A 6 EXTERNAL I2...

Page 52: ...Schematics 2016 Microchip Technology Inc DS70005246A page 51 FIGURE A 7 BM78 EVB SCHEMATIC...

Page 53: ...User s Guide DS70005246A page 52 2016 Microchip Technology Inc 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...

Page 54: ...2016 Microchip Technology Inc DS70005246A page 53 NOTES...

Page 55: ...86 24 2334 2829 Fax 86 24 2334 2393 China Shenzhen Tel 86 755 8864 2200 Fax 86 755 8203 1760 China Wuhan Tel 86 27 5980 5300 Fax 86 27 5980 5118 China Xian Tel 86 29 8833 7252 Fax 86 29 8833 7256 ASI...

Reviews: