background image

BM78 EVB User’s Guide

DS70005246A-page 18

 2016 Microchip Technology Inc.

2.1.3

Switches

Push-button switches provide the following functionalities:

• SW1 – Push on/off switch button

• SW2 – Wake-up switch to wake up the module from deep-sleep state

• SW3 – Reset button for the BM78 module

• SW4 – Mode switch

Table 2-1

 and 

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

Pin

Signal

Pin Description

SW1

1

GND

Connects 20 Kohm pull-down resistance

2

SW_BTN

BM78 SW_BTN pin

3

EXT_3V3

Power source from USB 5V to 3.3V LDO 
output

4

NC

NC

5

NC

NC

6

NC

NC

TABLE 2-2:

SWITCH SW4 DETAILS

Part Number

Pin

Signal

Pin Description

SW4

1

P2_0

P2_0 (pin 18), in the ON state, is connected 
with 4.7 kohm to GND.

2

P2_4

P2_4 (pin 19), in the ON state, is connected 
with 4.7 kohm to GND.

3

EAN

EAN (pin 20), in the ON state, is connected 
with 10 ohm to VDD_IO.

Содержание BM78

Страница 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...

Страница 2: ...2016 Microchip Technology Inc DS70005246A BM78 Evaluation Board EVB User s Guide...

Страница 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...

Страница 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...

Страница 5: ...BM78 EVB User s Guide DS70005246A page 4 2016 Microchip Technology Inc NOTES...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 11: ...BM78 EVB User s Guide DS70005246A page 10 2016 Microchip Technology Inc NOTES...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 38: ...Getting Started 2016 Microchip Technology Inc DS70005246A page 37 FIGURE 3 16 TRANSPARENT PROPRIETARY AND DEVICE INFO VIEW DETAILS...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 52: ...Schematics 2016 Microchip Technology Inc DS70005246A page 51 FIGURE A 7 BM78 EVB SCHEMATIC...

Страница 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...

Страница 54: ...2016 Microchip Technology Inc DS70005246A page 53 NOTES...

Страница 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...

Отзывы: