0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
BM-78-PICTAIL

BM-78-PICTAIL

  • 厂商:

    ACTEL(微芯科技)

  • 封装:

    -

  • 描述:

    DEVELOPMENTBOARDBM78PICTAIL+

  • 数据手册
  • 价格&库存
BM-78-PICTAIL 数据手册
BM78 Evaluation Board (EVB) User’s Guide  2016 Microchip Technology Inc. DS70005246A Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. • Microchip is willing to work with the customer who is concerned about the integrity of their code. • Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.” Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts 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 have a right to sue for relief under that Act. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights unless otherwise stated. Trademarks The Microchip name and logo, the Microchip logo, dsPIC, FlashFlex, flexPWR, JukeBlox, KEELOQ, KEELOQ logo, Kleer, LANCheck, MediaLB, MOST, MOST logo, MPLAB, OptoLyzer, PIC, PICSTART, PIC32 logo, RightTouch, SpyNIC, SST, SST Logo, SuperFlash and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. The Embedded Control Solutions Company and mTouch are registered trademarks of Microchip Technology Incorporated in the U.S.A. Analog-for-the-Digital Age, BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net, ECAN, In-Circuit Serial Programming, ICSP, Inter-Chip Connectivity, KleerNet, KleerNet logo, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, RightTouch logo, REAL ICE, SQI, Serial Quad I/O, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, 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. GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies. © 2016, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. ISBN: 978-1-5224-0169-8 QUALITY MANAGEMENT SYSTEM CERTIFIED BY DNV == ISO/TS 16949 == DS70005246A-page 2 Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company’s quality system processes and procedures are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified.  2016 Microchip Technology Inc. BM78 EVB USER’S GUIDE Table of Contents Preface ........................................................................................................................... 5 Chapter 1. Introduction 1.1 Kit Contents .................................................................................................. 12 1.2 BM78 EVB 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 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 .................................................................................... 54  2016 Microchip Technology Inc. DS70005246A-page 3 BM78 EVB User’s Guide NOTES: DS70005246A-page 4  2016 Microchip Technology Inc. BM78 EVB USER’S GUIDE Preface NOTICE TO CUSTOMERS All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number. This number is located on the bottom of each page, in front of the page number. The numbering convention for the DS number is “DSXXXXXXXXA”, where “XXXXXXXX” is the document number and “A” is the revision level of the document. For the most up-to-date information on development tools, see the MPLAB® X IDE online help. Select the Help menu, and then Topics to open a list of available online help files. INTRODUCTION This chapter contains general information that will be useful to know before using the BM78 Evaluation Board (EVB). Items discussed in this chapter include: • • • • • • • Document Layout Conventions Used in this Guide Recommended Reading The Microchip Web Site Development Systems Customer Change Notification Service Customer Support 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: • Chapter 1. “Introduction” provides an overview and features of the BM78 EVB. • Chapter 2. “Hardware” provides hardware details of the 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 schematics.  2016 Microchip Technology Inc. DS70005246A-page 5 BM78 EVB User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Examples Italic characters Referenced books Emphasized text ...is the only compiler... Initial caps A window the Output window A dialog the Settings dialog A menu selection select Enable Programmer Quotes A field name in a window or dialog “Save project before build” Underlined, italic text with right angle bracket A menu path File > Save Bold characters A dialog button Click OK A tab Click the Power tab Text in angle brackets < > A key on the keyboard Press , Plain Courier New Sample 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 argument file.o, where file can be any valid filename Square brackets [ ] Optional arguments mcc18 [options] file [options] Curly brackets and pipe character: { | } Choice of mutually exclusive arguments; an OR selection errorlevel {0|1} Ellipses... Replaces repeated text var_name [, var_name...] Represents code supplied by user void main (void) { ... } Notes DS70005246A-page 6 Represents A Note presents information that we want to re-emphasize, either to help you avoid a common pitfall or to make you aware of operating differences between some device family members. A Note can be in a box, or when used in a table or figure, it is located at the bottom of the table or figure. MPLAB IDE User’s Guide Note: This is a standard note box. CAUTION This is a caution note. Note 1: This is a note used in a table.  2016 Microchip Technology Inc. Preface RECOMMENDED READING 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 • Electrical Specifications • Reference Circuits IS1678 Data Sheet (DS60001386) Refer to this document for detailed information on the IS1678 SoC. Reference information found in this data sheet includes: • IS1678 SoC features and pin configuration • 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 easily available to customers. Accessible by most Internet browsers, the web site contains the following information: • Product Support – Data sheets and errata, application notes and sample programs, design resources, user’s guides and hardware support documents, latest software releases and archived software • General Technical Support – Frequently Asked Questions (FAQs), technical support requests, online discussion groups, Microchip consultant program member listings • Business of Microchip – Product selector and ordering guides, latest Microchip press releases, listings of seminars and events; and listings of Microchip sales offices, distributors and factory representatives  2016 Microchip Technology Inc. DS70005246A-page 7 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. 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. DS70005246A-page 8  2016 Microchip Technology Inc. Preface DOCUMENT REVISION HISTORY Revision A (January 2016) This is the initial released version of this document.  2016 Microchip Technology Inc. DS70005246A-page 9 BM78 EVB User’s Guide NOTES: DS70005246A-page 10  2016 Microchip Technology Inc. BM78 EVB USER’S GUIDE 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. The BM78 EVB includes an integrated configuration and programming interface for plug-and-play capability. It also includes on board connection and data status LEDs which enable rapid prototyping and quicker time to market. Along with the BM78 EVB, software applications are provided to demonstrate the Bluetooth data connections to the on board BM78 module and optionally configuring it. The demonstration softwares are as follows: • AndroidTM Bluetooth Chat (BtChat) 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 • BM78 EEPROM Table Utility The BM78 EVB can be powered using USB host or through the Microchip PICtail™ Plus interface. The BM78 EVB uses a fully certified Bluetooth 4.2 dual-mode wireless BM78 module that supports Bluetooth classic SPP and BLE by providing Bluetooth serial data connections. The BM78 EVB provides a USB-Universal Asynchronous Receiver/Transmitter (UART) converter allowing flexible interface to host PC, a PC terminal utility, and smart phone Applications to drive both classic SPP and BLE data connections. Additionally, the BM78 EVB also provides the PICtail and PICtail Plus interfaces to be able to interface with the Microchip PIC MCUs using standard Microchip development tools. This chapter includes the following topics: 1.1 “Kit Contents” 1.2 “BM78 EVB Functionality” 1.3 “BM78 EVB Features” 1.4 “PICtail Plus Interface”  2016 Microchip Technology Inc. DS70005246A-page 11 BM78 EVB User’s Guide 1.1 KIT CONTENTS The BM78 EVB Evaluation kit contains the following items: • EVB PCB • BM78 Module (BM78SPPS5MC2/NC2) Note: 1.2 If you are missing any part of the Evaluation kit, contact a Microchip sales office for assistance. A list of Microchip offices for sales and service is provided on the back page of this document. BM78 EVB FUNCTIONALITY The following are key features of the BM78 EVB. • Transparent serial data connection over Bluetooth classic SPP and BLE transparent serial data service • Automatic configuration mode for quick setup (default) • Manual 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 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 DS70005246A-page 12  2016 Microchip Technology Inc. Introduction 1.3 BM78 EVB FEATURES Representations of the layout of the BM78 EVB are shown in Figure 1-1 and Figure 1-2. The top assembly of the BM78 EVB includes these key features, as indicated in Figure 1-1: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. FP1 – BM78 module (BM78SPPS5MC2/NC2). On board antenna – Mounted on the BM78 module. CN2 – Header that brings out the BM78 module pins. SW3 – Reset button. SW4 – Mode Switch. JP1 – Ground (GND) test points. J1 – PICtail interface. CN4 – I2C expansion port. SW2 – Wake-up button. SW1 – Button to SW_BTN pin. For detailed information on these features, refer to Chapter 2. “Hardware”. FIGURE 1-1:  2016 Microchip Technology Inc. BM78 EVB (TOP VIEW) DS70005246A-page 13 BM78 EVB User’s Guide The bottom assembly of the BM78 EVB includes these key features, as indicated in Figure 1-2: 1. U3 – Microchip MCP2200 chip, USB-to-UART serial converter. 2. J2 – PICtail Plus interface. 3. P1 – Mini-B USB connector. FIGURE 1-2: BM78 EVB (BOTTOM VIEW) 3 1 2 1.3.1 USB-to-UART Serial Converter The BM78 EVB consists of a USB-to-UART converter that enables flexible interface to a host computer, a computer terminal utility, and smart phone applications to drive both classic SPP and BLE data connections. The UART port 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 enumerates the BM78 module as a Composite Device Class (CDC) USB device for serial communication. After the MCP2200 enumerates, a dedicated COM port is assigned to the host computer for serial communication with the BM78 module on the BM78 EVB. A computer terminal utility or application can open the assigned COM port and connect to the UART port for serial data transfer or to configure and control the BM78 module. If the MCP2200 does not enumerate, the user must download the MCP2200 drivers and install it from the following location: www.microchip.com/MCP2200. DS70005246A-page 14  2016 Microchip Technology Inc. Introduction 1.4 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. This interface provides access to the UART port and control 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 internal EEPROM and the BM78 module firmware on the internal Flash, and put the BM78 module into Application mode. In Application mode, pairing procedure can be performed on the BM78 EVB followed by establishing a Bluetooth connection for SPP or BLE data transfer. Figure 1-3 and Figure 1-4 show the BM78 EVB is inserted into PICtail and PICtail Plus interfaces. FIGURE 1-3:  2016 Microchip Technology Inc. BM78 EVB BOARD INSERTED INTO PICtail™ INTERFACE DS70005246A-page 15 BM78 EVB User’s Guide FIGURE 1-4: Note: DS70005246A-page 16 BM78 EVB BOARD INSERTED INTO PICtail™ Plus INTERFACE 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. BM78 EVB USER’S GUIDE Chapter 2. Hardware This chapter describes the hardware features of the BM78 EVB. The BM78 EVB includes a range of peripheral features as shown in Figure 2-1. FIGURE 2-1: 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: • USB_5V which can be converted to 3V3 by MCP1700 • PICtail 3V3 2.1.2 USB connectivity The BM78 EVB provides mini-USB cable connectivity.  2016 Microchip Technology Inc. DS70005246A-page 17 BM78 EVB User’s Guide 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: Part Number SW1 TABLE 2-2: Part Number SW4 DS70005246A-page 18 SWITCH SW1 DETAILS Pin Signal 1 GND Pin Description 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 SWITCH SW4 DETAILS Pin Signal Pin Description 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.  2016 Microchip Technology Inc. Hardware Table 2-3 provides the switch positions of the BM78 EVB. TABLE 2-3: BM78 EVB SWITCH 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 = Application Mode Low = Test Mode Flash Write High = Flash Write Enable Low = Flash Write Disable Boot by Flash or ROM High = Boot from ROM Low = Boot from Flash Table 2-4 provides the mode and switch positions for the BM78 EVB. TABLE 2-4: BM78 EVB MODE SWITCH POSITIONS Switch Positions Mode Flash ROM PIN Definition 1/P2_0 2/P2_4 3/EAN Write Flash ON ON ON Test (Write EEPROM) ON OFF ON Application (default) OFF OFF ON Test (Write EEPROM) ON OFF OFF Application (default) OFF OFF OFF Flash 2.1.4 LED 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: Part Number J1  2016 Microchip Technology Inc. GROUND TEST CONNECTOR Pin Signal Pin Description 1 GND Ground Test Pin 2 GND Ground Test Pin DS70005246A-page 19 BM78 EVB User’s Guide 2.1.6 Ports The Table 2-6 provides the CN4-I2C expansion port details. TABLE 2-6: Part Number CN4 DS70005246A-page 20 CN4-I2C EXPANSION PORT DETAILS Pin Signal Pin Description 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 SCL function 4 NC NC 5 INT_3V3 Connect BM78 VDD_I/O 6 NC NC 7 NC NC 8 P3_6 BM78 P3_6 (pin 28) and its Reset function 9 NC NC 10 NC NC  2016 Microchip Technology Inc. BM78 EVB USER’S GUIDE Chapter 3. Getting Started This chapter describes how to establish Bluetooth serial data connection using the BM78 EVB over USB-to-UART MCP2200 interface. It also demonstrates the basic data capabilities and interoperability of the BM78 EVB with other Bluetooth devices. Note: In this demonstrations, the BM78 EVB is a Bluetooth slave waiting for a connection to be initiated by the Bluetooth master device. This chapter covers the following topics: 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” 3.1 PREREQUISITES The following hardware and software are required for getting started with the BM78 EVB. 3.1.1 Hardware Requirement • BM78 EVB - Users can procure the BM78 EVB from the Microchip web site: www.microchipdirect.com • Bluetooth-enabled smart phone or tablet: - AndroidTM device running Android 4.3 or later version - iOS: iPhone® 4S or later version, iPad® 3 or later version (it must support BLE) • Windows® host PC with USB port • USB-mini cable 3.1.2 Software Requirement The following applications are available for download from the Microchip web site: www.microchip.com/BM78. • • • • • Bluetooth chat application, BT Chat.exe Android chat application, BTChat.apk iOS Terminal BLETR,available at Apple Store® Bluetooth SPP Pro Application MCP2200 driver for windows, available for download at www.microchip.com/MCP2200  2016 Microchip Technology Inc. DS70005246A-page 21 BM78 EVB User’s Guide 3.2 USING BM78 EVB IN USB-TO-UART SERIAL INTERFACE MODE Establishing the connection between Bluetooth classic and BLE data, and transferring data on the BM78 module through the USB-UART serial interface can be performed using a computer terminal utility and a smart phone application. 3.2.1 Bluetooth SPP demonstration using Android Devices The host computer runs the Bluetooth chat application and transfers serial data over a COM-port (USB virtual COM-port) to the BM78 EVB which is then transmitted over a Bluetooth connection to the remote Bluetooth host. Please note, a smart phone application is used as a Bluetooth host for the SPP demonstration, see Figure 3-1. Note: 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". FIGURE 3-1: BLUETOOTH SPP CONNECTION TO ANDROID SMART PHONE/TABLET To set up the Bluetooth (SPP) data connection between the Bluetooth Chat application and smart phone application using the BM78 EVB, perform the following actions: 1. Ensure that the BM78 EVB is plugged into the EVB interface of a Microchip development board. 2. Verify the SW4 switch is set to the Application mode (ROM): - 1/P2_0: OFF - 2/P2_4: OFF - 3/EAN: ON 3. Verify that the SW1 button is ON (i.e. pushed down). 4. Using the mini-B USB cable, connect the BM78 EVB mini-B USB receptacle (P1) to the host computer USB port to power-up the EVB. 5. The LED1 (D1) display (blue) indicates the connection states as follows: - Stand-by state: the LED1 of the EVB will blink once - Pairing, connected state: the LED1 will blink twice Note: DS70005246A-page 22 The LED status can be configured by the UI settings.  2016 Microchip Technology Inc. Getting Started 6. Verify whether the virtual COM port is created. 7. Ensure that the COM port is connected and run BT Chat Tool.exe on your computer. 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 EVB - Select BaudRate (the default value is 115200) 9. Click Connect. 10. The Bluetooth Chat window will display the transmitted and received text along with the following options, see Figure 3-3.  2016 Microchip Technology Inc. DS70005246A-page 23 BM78 EVB User’s Guide FIGURE 3-3: BLUETOOTH CHAT SHOWING TRANSMITTED AND RECEIVED TEXT a) 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. e) Message sent from the smart phone to the computer tool (BM78 EVB). f) Burst send: Select this check box to send a text repeatedly from this application. 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 button to clears the text from the text box. 11. Install the Bluetooth Chat application on the Android device by copying or downloading the BtChat.apk file. The BtChat.apk file can be copied to the Android device by using an SD card to transfer the files or by connecting the Android device to the host computer, wherein the Android device mounts as an external USB drive. Please note, Android MTP is required on the host computer. 12. After the BtChat.apk file is copied onto the Android device, perform the following actions: DS70005246A-page 24  2016 Microchip Technology Inc. Getting Started a) Tap ‘Open File’ to install “My Files” 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 icon is displayed in the application view. FIGURE 3-4:  2016 Microchip Technology Inc. FILE MANAGER VIEW AND BtChat APPLICATION ICON DS70005246A-page 25 BM78 EVB User’s Guide 13. To pair the BM78 EVB with the Android device, perform the following actions, see Figure 3-5. a) On the Android device, go to Settings > Bluetooth and then turn on the Bluetooth by dragging 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 pairing. d) Once paired, the Dual-SPP device is listed in the paired devices list. FIGURE 3-5: DS70005246A-page 26 BtChat SHOWING PAIRED DEVICE LIST  2016 Microchip Technology Inc. Getting Started 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 open the Application Settings. FIGURE 3-6:  2016 Microchip Technology Inc. BtChat MENU DS70005246A-page 27 BM78 EVB User’s Guide 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: DS70005246A-page 28 BtChat APPLICATION SETTINGS  2016 Microchip Technology Inc. Getting Started 15. To set up the Bluetooth SPP connection to 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 Paired Devices list. b) Tap Dual-SPP to open an SPP connection to the BM78 EVB. FIGURE 3-8:  2016 Microchip Technology Inc. BtChat SHOWING DUAL SPP DS70005246A-page 29 BM78 EVB User’s Guide c) After the connection is established, the status message “Dual SPP has connected” will be displayed on the main window, see Figure 3-9. FIGURE 3-9: DS70005246A-page 30 BtChat SHOWING DUAL SPP CONNECTION MESSAGE  2016 Microchip Technology Inc. Getting Started 16. Figure 3-10 shows the data transfer from the BM78 EVB to the Android device through the Bluetooth SPP connection. To launch the Bluetooth chat application on the host computer and set the correct COM port that corresponds to the BM78 EVB, follow these steps: a) 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. d) In the Bluetooth Chat window, enter the text to be sent to the BM78 EVB. e) Click Send to transmit the text. f) The Bluetooth Android application window will display the transmitted messages. Note: The SPP demo can be performed using the Bluetooth SPP Pro Application on the Android devices. It can also work with iOS devices, but it needs Apple® authentication hardware, which connects the I2C expansion port and iOS application. FIGURE 3-10:  2016 Microchip Technology Inc. BLUETOOTH CHAT WINDOW DS70005246A-page 31 BM78 EVB User’s Guide 3.2.2 Connecting Bluetooth Low Energy (BLE) Data to iOS Device This demonstration describes how serial data is transmitted from the BM78 EVB (through PC chat utility) to an iOS device using the BLE connection. This demonstration uses the 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 feature of the BM78 EVB is a transparent serial data connection from the BM78 module’s UART to an iOS device over BLE connection. To connect BLE data to an iOS device, perform the following actions: 1. Using a device running iPhone 4S or later version or a device running iPad3 or later version, download and install the BLETR application, seen Figure 3-11. Note: Users can purchase the BLETR application from the Apple Store. FIGURE 3-11: DS70005246A-page 32 BLETR APPLICATION PAGE  2016 Microchip Technology Inc. Getting Started 2. Figure 3-12 shows the Bluetooth radio on 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 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 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. DS70005246A-page 34  2016 Microchip Technology Inc. Getting Started 7. On successful connection to the BM78 EVB, BLETR displays “Dual-SPP connected” message, see Figure 3-14. FIGURE 3-14:  2016 Microchip Technology Inc. BLETR APPLICATION DS70005246A-page 35 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 and Figure 3-16. - Transparent – Displays the received data, sent data, and options to enable the features. - Proprietary – Displays the BLE connection parameters. - Device Info – Displays the BLE device information service settings. FIGURE 3-15: DS70005246A-page 36 CONNECTED DUAL-SPP DEVICE SHOWING THREE VIEWS  2016 Microchip Technology Inc. Getting Started FIGURE 3-16:  2016 Microchip Technology Inc. TRANSPARENT, PROPRIETARY, AND DEVICE INFO VIEW DETAILS DS70005246A-page 37 BM78 EVB User’s Guide 9. Tap Transparent to open the Transparent 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 data from the BLETR iOS device to the BM78 EVB, enter data in the text box using the soft keypad, see Figure 3-18. DS70005246A-page 38  2016 Microchip Technology Inc. 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 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: DS70005246A-page 40 BLUETOOTH CHAT WINDOW SHOWING RECEIVED TEXT  2016 Microchip Technology Inc. Getting Started 3.2.3 Data Modes Figure 3-20 provides detailed description of three modes: Raw, Timer, and Echo. 3.2.3.1 RAW The Raw mode is the default mode which displays all received and sent data as ASCII value instead of hex value. In the text box, all received data will be displayed in red text. FIGURE 3-20: 3.2.3.2 RAW MODE TIMER The Timer mode enables the BLETR to send repeated text patterns to the Bluetooth chat application for throughput and data transfer test. For example, BLETR is configured to transmit 100 text blocks of 20 characters in every 1000 ms. The Bluetooth Chat application receives the text pattern data and displays it in red. The line break indicates the BLE packet break, that is, the transmitted text block is fragmented into multiple BLE packets. Figure 3-21 shows the 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 BM78 EVB User’s Guide FIGURE 3-21: 3.2.3.3 BLETR APPLICATION WINDOW AND BLUETOOTH CHAT WINDOW WITH RECEIVED DATA TX FILE 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. b) The Tx File window displays .txt file sizes to be transmitted. Tap the file size to be transmitted. c) The Bluetooth chat application will display the received files. FIGURE 3-22: DS70005246A-page 42 BLETR APPLICATION: TX FILE DIALOG BOX  2016 Microchip Technology Inc. Getting Started 3.2.3.4 ECHO The Echo mode is an optional function in the Transparent mode data view. When the Echo feature is enabled, any data received by the BLETR is echoed back to the sender. Figure 3-23 shows texts sent from the Bluetooth Chat tool being echoed to the BLETR when the Echo mode is enabled. FIGURE 3-23: 3.2.4 BLUETOOTH CHAT WINDOW BLETR Application Device Information Figure 3-24 shows the device information view that displays the characteristics associated with the device information service. 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. FIGURE 3-24:  2016 Microchip Technology Inc. BLETR APPLICATION: DEVICE INFORMATION VIEW DS70005246A-page 43 BM78 EVB User’s Guide 3.2.5 Proprietary (Configuration) Feature In the Proprietary view users can remotely modify the following BLE connection parameters through 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 connection is considered lost. • Latency – number of connection events the peripheral device (BM78 module) is allowed to skip. To modify the BLE connection parameters, perform these actions: 1. Enter values for Max Interval, Connection Timeout, and Latency. 2. Tap Update. 3. Enter a new name in the text field and then tap Change name to invoke the modifications, see Figure 3-25. This name is used to advertise the peripheral name for scanning central devices. FIGURE 3-25: DS70005246A-page 44 BLETR APPLICATION: PROPRIETARY VIEW  2016 Microchip Technology Inc. Getting Started 3.3 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. The BM78 EEPROM table utility can be used to convert the EEPROM configuration dump file generated by the BM78 UI tool into an EEPROM structure file, for additional information refer to “EEPROM_Tool User Manual” available for download from the Microchip web site. The EEPROM structure file can be imported by the BM78 configuration library demo workspace to program the Bluetooth parameters to the BM78 module 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 configuration parameters. The BM78 Configuration UI Tool or BM78 UI Tool is a user friendly computer application that enables the user to update various Bluetooth parameters and save in the EEPROM configuration dump file. The Bluetooth parameters, saved in the EEPROM configuration dump file, can be downloaded to the BM78 module using the BM78 Configuration Library. The BM78 UI tool is available for download from the www.microchip.com/BM78. 1. Download the BM78 Configuration UI tool to a computer (Windows OS) and run the application. 2. From the BM78 UI tool dialog, click Load to import the default EEPROM configuration dump file (BM78_eeprom_configuration_dump_default.txt), provided with the application, see Figure 3-26. FIGURE 3-26:  2016 Microchip Technology Inc. UI TOOL VIEW DS70005246A-page 45 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: DS70005246A-page 46 UI TOOL VIEW  2016 Microchip Technology Inc. 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. FIGURE 3-29:  2016 Microchip Technology Inc. UI PARAMETER SETTING PAGE DS70005246A-page 47 BM78 EVB User’s Guide 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. In the Save As window, select the file location, and then click Save. FIGURE 3-31: DS70005246A-page 48 SAVE AS WINDOW  2016 Microchip Technology Inc. BM78 EVB USER’S GUIDE Appendix A. Schematics A.1 BM78 EVB SCHEMATICS FIGURE A-1: BM78 EVB SCHEMATICS FIGURE A-2: BM78 MODULE TEST INTERFACE  2016 Microchip Technology Inc. DS70005246A-page 49 BM78 EVB User’s Guide DS70005246A-page 50 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 I2C INTERFACE  2016 Microchip Technology Inc. BM78 EVB SCHEMATIC  2016 Microchip Technology Inc. FIGURE A-7: Schematics DS70005246A-page 51 BM78 EVB User’s Guide DS70005246A-page 52 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. NOTES:  2016 Microchip Technology Inc. DS70005246A-page 53 Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.com Asia Pacific Office Suites 3707-14, 37th Floor Tower 6, The Gateway Harbour City, Kowloon China - Xiamen Tel: 86-592-2388138 Fax: 86-592-2388130 Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 China - Zhuhai Tel: 86-756-3210040 Fax: 86-756-3210049 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 India - Bangalore Tel: 91-80-3090-4444 Fax: 91-80-3090-4123 France - Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 India - New Delhi Tel: 91-11-4160-8631 Fax: 91-11-4160-8632 Germany - Dusseldorf Tel: 49-2129-3766400 Atlanta Duluth, GA Tel: 678-957-9614 Fax: 678-957-1455 Hong Kong Tel: 852-2943-5100 Fax: 852-2401-3431 Australia - Sydney Tel: 61-2-9868-6733 Fax: 61-2-9868-6755 China - Beijing Tel: 86-10-8569-7000 Fax: 86-10-8528-2104 Austin, TX Tel: 512-257-3370 China - Chengdu Tel: 86-28-8665-5511 Fax: 86-28-8665-7889 Boston Westborough, MA Tel: 774-760-0087 Fax: 774-760-0088 China - Chongqing Tel: 86-23-8980-9588 Fax: 86-23-8980-9500 Chicago Itasca, IL Tel: 630-285-0071 Fax: 630-285-0075 Cleveland Independence, OH Tel: 216-447-0464 Fax: 216-447-0643 Dallas Addison, TX Tel: 972-818-7423 Fax: 972-818-2924 Detroit Novi, MI Tel: 248-848-4000 Houston, TX Tel: 281-894-5983 Indianapolis Noblesville, IN Tel: 317-773-8323 Fax: 317-773-5453 Los Angeles Mission Viejo, CA Tel: 949-462-9523 Fax: 949-462-9608 New York, NY Tel: 631-435-6000 San Jose, CA Tel: 408-735-9110 Canada - Toronto Tel: 905-673-0699 Fax: 905-673-6509 China - Dongguan Tel: 86-769-8702-9880 China - Hangzhou Tel: 86-571-8792-8115 Fax: 86-571-8792-8116 India - Pune Tel: 91-20-3019-1500 Japan - Osaka Tel: 81-6-6152-7160 Fax: 81-6-6152-9310 Japan - Tokyo Tel: 81-3-6880- 3770 Fax: 81-3-6880-3771 Korea - Daegu Tel: 82-53-744-4301 Fax: 82-53-744-4302 China - Hong Kong SAR Tel: 852-2943-5100 Fax: 852-2401-3431 Korea - Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 or 82-2-558-5934 China - Nanjing Tel: 86-25-8473-2460 Fax: 86-25-8473-2470 Malaysia - Kuala Lumpur Tel: 60-3-6201-9857 Fax: 60-3-6201-9859 China - Qingdao Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 Malaysia - Penang Tel: 60-4-227-8870 Fax: 60-4-227-4068 China - Shanghai Tel: 86-21-5407-5533 Fax: 86-21-5407-5066 Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 China - Shenyang Tel: 86-24-2334-2829 Fax: 86-24-2334-2393 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 China - Shenzhen Tel: 86-755-8864-2200 Fax: 86-755-8203-1760 Taiwan - Hsin Chu Tel: 886-3-5778-366 Fax: 886-3-5770-955 China - Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 Taiwan - Kaohsiung Tel: 886-7-213-7828 China - Xian Tel: 86-29-8833-7252 Fax: 86-29-8833-7256 Germany - Karlsruhe Tel: 49-721-625370 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Italy - Venice Tel: 39-049-7625286 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Poland - Warsaw Tel: 48-22-3325737 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 Sweden - Stockholm Tel: 46-8-5090-4654 UK - Wokingham Tel: 44-118-921-5800 Fax: 44-118-921-5820 Taiwan - Taipei Tel: 886-2-2508-8600 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 07/14/15 DS70005246A-page 54  2016 Microchip Technology Inc.
BM-78-PICTAIL 价格&库存

很抱歉,暂时无法提供与“BM-78-PICTAIL”相匹配的价格&库存,您可以联系我们找货

免费人工找货
BM-78-PICTAIL
  •  国内价格
  • 1+1359.15073
  • 5+1304.78591

库存:1

BM-78-PICTAIL
  •  国内价格 香港价格
  • 1+1236.563051+148.75457

库存:5

BM-78-PICTAIL
    •  国内价格
    • 1+1190.93211

    库存:1