BM62 Evaluation Board User's Guide

BM62 Evaluation Board (EVB)
User’s Guide
 2016 Microchip Technology Inc.
Advance Information
DS70005260A
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, AnyRate,
dsPIC, FlashFlex, flexPWR, Heldo, JukeBlox, KEELOQ,
KEELOQ logo, Kleer, LANCheck, LINK MD, 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.
ClockWorks, The Embedded Control Solutions Company,
ETHERSYNCH, Hyper Speed Control, HyperLight Load,
IntelliMOS, mTouch, Precision Edge, and QUIET-WIRE are
registered trademarks of Microchip Technology Incorporated
in the U.S.A.
Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut,
BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM,
dsPICDEM.net, Dynamic Average Matching, DAM, ECAN,
EtherGREEN, In-Circuit Serial Programming, ICSP, Inter-Chip
Connectivity, JitterBlocker, KleerNet, KleerNet logo, MiWi,
motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB,
MPLINK, MultiTRAK, NetDetach, Omniscient Code
Generation, PICDEM, PICDEM.net, PICkit, PICtail,
PureSilicon, RightTouch logo, REAL ICE, Ripple Blocker,
Serial Quad I/O, SQI, SuperSwitcher, SuperSwitcher II, 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.
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.
QUALITY MANAGEMENT SYSTEM
CERTIFIED BY DNV
== ISO/TS 16949 ==
DS70005260A-page 2
Silicon Storage Technology is a registered trademark of
Microchip Technology Inc. in other countries.
GestIC is a registered trademarks 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-0582-5
Advance Information
 2016 Microchip Technology Inc.
BM62 EVB USER’S GUIDE
Object of Declaration
BM62 Evaluation Board
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 3
BM62 EVB User’s Guide
NOTES:
DS70005260A - Page 4
Advance Information
 2016 Microchip Technology Inc.
BM62 EVB USER’S GUIDE
Table of Contents
Chapter 1. Introduction
1.1 Kit Contents .................................................................................................. 13
1.2 BM62 EVB Features ..................................................................................... 14
Chapter 2. Hardware
2.1 Hardware Features ....................................................................................... 17
Chapter 3. Getting Started
3.1 Requirements ............................................................................................... 25
3.2 Getting Started with BM62 EVB ................................................................... 26
3.3 Application Demonstration ........................................................................... 26
3.4 Configuring BM62 Stereo Audio Module ...................................................... 28
3.5 Updating EEPROM Parameters ................................................................... 45
3.6 Updating Flash Code .................................................................................... 49
3.7 BLE Demonstration ...................................................................................... 51
Appendix A. Schematics
A.1 Reference Schematics ................................................................................. 55
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 5
BM62 EVB User’s Guide
NOTES:
DS70005260A - Page 6
Advance Information
 2016 Microchip Technology Inc.
BM62 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
BM62 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 BM62 EVB, 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 of the BM62 EVB and its
features.
• Chapter 2. “Hardware” provides hardware details of the BM62 EVB.
• Chapter 3. “Getting Started” provides information about how to establish the
Bluetooth® connection using the BM62 EVB.
• Appendix A. “Schematics” provides the BM62 EVB reference schematics.
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 7
BM62 EVB User’s Guide
CONVENTIONS USED IN THIS GUIDE
This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
Description
Represents
Italic characters
Initial caps
Referenced books
MPLAB IDE User’s Guide
Emphasized text
...is the only compiler...
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 <Enter>, <F1>
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
DS70005260A - Page 8
Examples
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.
Advance Information
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 BM62 EVB. The following Microchip
document is available and recommended as supplemental reference resources.
BM62/BM64 Data Sheet (DS60001403)
Refer to this document for detailed information on BM62 stereo audio module.
Reference information found in this data sheet includes:
• BM62 stereo audio module features and pin configurations
• Electrical Specifications
• 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.
Advance Information
DS70005260A - Page 9
BM62 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.
DS70005260A - Page 10
Advance Information
 2016 Microchip Technology Inc.
Preface
DOCUMENT REVISION HISTORY
Revision A (May 2016)
This is the initial draft version of this document.
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 11
BM62 EVB User’s Guide
NOTES:
DS70005260A - Page 12
Advance Information
 2016 Microchip Technology Inc.
BM62 EVB USER’S GUIDE
Chapter 1. Introduction
Thank you for purchasing the BM62 Evaluation Board (EVB). This document provides
detailed information about the Microchip BM62 EVB.
The BM62 EVB enables the user to evaluate and demonstrate the functionality of the
BM62 stereo audio module. The BM62 EVB includes an integrated configuration and
programming interface for plug-and-play capability, and also has status LEDs which
enable rapid prototyping and faster time to market.
Along with the BM62 EVB, software tools and applications are provided to demonstrate
the Bluetooth connections to the on-board BM62 stereo audio module and to optionally
configure or program it.
This chapter includes the following topics:
1.1 “Kit Contents”
1.2 “BM62 EVB Features”
1.1
KIT CONTENTS
The BM62 EVB kit contains the following items, as illustrated in Figure 1-1:
•
•
•
•
One BM62 EVB, which contains the BM62SPKS1MC2 module
One micro-USB cable
Two speaker cables
One 5V DC power adapter
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 13
BM62 EVB User’s Guide
FIGURE 1-1:
Note:
DS70005260A - Page 14
BM62 EVB KIT CONTENTS
If you are missing any part of the BM62 EVB 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.
Advance Information
 2016 Microchip Technology Inc.
Introduction
1.2
BM62 EVB FEATURES
The following are key features of the BM62 EVB:
• The BM62 EVB includes a BM62 stereo audio module, qualified for Bluetooth 4.2
specifications
• The BM62 EVB can be powered by a PC host using the micro-USB cable or by
connecting a Li-Ion battery
• Built-in 3W Class-D stereo audio amplifier
• Built-in Near Field Communication (NFC)
• Stereo audio output for high-quality audio
• Easy access to I/O pins
• RoHS compliant
Figure 1-2 illustrates the top view of the BM62 EVB with the following components:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
BM62SPKS1MC2 module
Three status LEDs
NFC tag
Li-Ion battery connector (JP19/JP20)
USB connector (P1)
USB to UART converter (MCP2200)
GPIO header (J1)
Mode switch (SW12)
Audio control buttons, Multi-Function Button (MFB) and Reset button
Slide switch (SW6)
External MCU header (J6)
3W Class-D amplifier output connector (J3 and J4)
External audio amplifier connector (JP26)
Internal/External audio amplifier switch (SW46)
External MCU selection switch (SW48 and SW49)
Auxiliary input 3.5 mm jack (P7)
Microphone input 3.5 mm jack (P5)
Stereo output 3.5 mm jack (P6)
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 15
BM62 EVB User’s Guide
FIGURE 1-2:
DS70005260A - Page 16
BM62 EVB (TOP VIEW)
Advance Information
 2016 Microchip Technology Inc.
BM62 EVB USER’S GUIDE
Chapter 2. Hardware
This chapter describes hardware features of the BM62 EVB. The BM62 EVB includes
a range of peripheral components, refer to Figure 2-1.
FIGURE 2-1:
2.1
BM62 EVB BLOCK DIAGRAM
HARDWARE FEATURES
The following list provides the details of each component in the BM62 EVB. For detailed
information about the location of these components, refer to Figure 1-2.
2.1.1
Power Supply
Users can supply power to the BM62 EVB using either of the following options:
• Li-Ion battery
• USB (PC host over USB)
2.1.2
USB connectivity
The BM62 EVB connects to the PC host using a USB cable. The USB signals are
converted to/from UART by the MCP2200.
2.1.3
Switches and Push buttons
The functions of the switches and push buttons on the BM62 EVB are:
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 17
BM62 EVB User’s Guide
•
•
•
•
•
•
•
•
•
MFB – Push to turn on/off the BM62 stereo audio module
SW4 – Skip the audio track backward
SW5 – Skip the audio track forward
SW9 – Increase volume
SW10 – Decrease volume
SW11 – Reset button
SW12 – Mode switch
SW46 – Button for 3W Class-D stereo amplifier signal connection
SW48 and SW49 – Buttons for external MCU connection
Table 2-1 provides the settings of the Mode switch SW12 to configure the BM62 EVB
in various operating modes.
TABLE 2-1:
Mode
DS70005260A - Page 18
SWITCH SW12 DETAILS
Switch SW12
Switch 12 PIN Definition
Write Flash
1. ON (P2_0: LOW)
2. ON (P2_4: LOW)
3. ON (EAN: HIGH)
Test Mode
(Write EEPROM)
1. ON (P2_0: LOW)
2. OFF (P2_4: HIGH)
3. OFF (EAN: LOW)
Application Mode
1. OFF (P2_0: HIGH)
2. OFF (P2_4: HIGH)
3. OFF (EAN: LOW)
Advance Information
 2016 Microchip Technology Inc.
Hardware
Table 2-2 provides the switch SW46 details for 3W Class-D stereo amplifier signal connection.
TABLE 2-2:
SWITCH SW46 DETAILS
Mode
Switch SW46
Switch 46 PIN Definition
On-board 3W Class-D
stereo amplifier signal
connection (default
on-board stereo amplifier)
1.
2.
3.
4.
ON (Amplifier power)
ON (L-CH signal)
ON (R-CH signal)
ON (Amplifier enable)
External stereo amplifier
connection
1.
2.
3.
4.
OFF (Amplifier power)
OFF (L-CH signal)
OFF (R-CH signal)
OFF (Amplifier enable)
Table 2-3 provides switch SW48/SW49 details of the signals and buttons connections
to the BM62 module and the external MCU.
TABLE 2-3:
SWITCH SW48/SW49 DETAILS
Mode
Switch SW48/SW49
Connect buttons and
signals to module
(default)
SW48/SW49 PIN Definition
SW48
1.
2.
3.
4.
ON (MFB)
ON (Volume down)
ON (Play/Pause)
ON (Volume up)
SW49
1.
2.
3.
4.
 2016 Microchip Technology Inc.
Advance Information
ON (Previous Track)
ON (Next Track)
ON (NFC trigger)
ON (NC)
DS70005260A - Page 19
BM62 EVB User’s Guide
Mode
Switch SW48/SW49
Disconnect Buttons and
signals to module (for
external MCU usage)
SW48/SW49 PIN Definition
SW48
1.
2.
3.
4.
OFF (MFB)
OFF (Volume down)
OFF (Play/Pause)
OFF (Volume up)
SW49
1.
2.
3.
4.
2.1.4
OFF (Previous Track)
OFF (Next Track)
OFF (NFC trigger)
OFF (NC)
LED
The functions of the three LEDs on BM62 EVB are listed as follows:
• LED1 – Indicates the Bluetooth connection status (UI configuration dependent)
• LED2 – Indicates the Bluetooth connection status (UI configuration dependent)
• LED3 – User defined (UI configuration dependent)
2.1.5
Jumpers and Headers
The following are the jumpers and headers (J1, J6, JP19, JP20, JP22, JP23, JP26)
available on the BM62 EVB.
Figure 2-2 illustrates the GPIO header J1 and Table 2-4 provides the pin details and
descriptions.
DS70005260A - Page 20
Advance Information
 2016 Microchip Technology Inc.
Hardware
FIGURE 2-2:
TABLE 2-4:
GPIO HEADER J1
GPIO HEADER J1
Part Number
J1
Pin
Description
1
P0_0
2
P3_0
3
P2_0
4
P1_5
5
P0_4
6
P0_1
7
P2_4
8
P0_2
9
P0_3
10
P0_5
11
P2_7
12
P2_4
The header J6 provides the interface to connect an external MCU to the BM62 EVB
over UART. Figure 2-3 illustrates the external MCU header J6 and Table 2-5 provides
the pin details and descriptions.
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 21
BM62 EVB User’s Guide
FIGURE 2-3:
TABLE 2-5:
EXTERNAL MCU HEADER J6
EXTERNAL MCU HEADER J6
Part Number
JP2
Pin
Description
1
NC
2
HCI_RXD
3
NC
4
HCI_TXD
5
GND
6
GND
7
NC
8
RST_N
9
NC
10
MFB (for RX_IND)
11
NFC
12
P0_0 (for TX_IND)
Figure 2-4 illustrates the battery connector JP20 and JP19, and Table 2-6 provides the
pin details and descriptions.
Note:
The Li-Ion battery can be connected to JP20 or JP19 of the BM62 EVB.
FIGURE 2-4:
TABLE 2-6:
BATTERY CONNECTOR JP20 AND JP19
BATTERY CONNECTOR JP20 AND JP19
Part Number
JP20
JP19
DS70005260A - Page 22
Pin
Description
1
BAT_IN
2
GND
1
GND
2
BAT_IN
Advance Information
 2016 Microchip Technology Inc.
Hardware
The header JP22 is used for connecting a microphone to the BM62 EVB. Figure 2-5
and Table 2-7 provides the JP22 pin details and descriptions.
FIGURE 2-5:
TABLE 2-7:
MIC JP22
MIC JP22
Part Number
JP22
Pin
Description
1
MIC_P1
2
GND
3
MIC_N1
Figure 2-6 illustrates the audio output header JP23 and Table 2-8 provides the pin
details and descriptions.
FIGURE 2-6:
TABLE 2-8:
AUDIO OUTPUT HEADER JP23
AUDIO OUTPUT HEADER JP23
Part Number
JP23
 2016 Microchip Technology Inc.
Pin
Description
1
AOHPL
2
AOHPM
3
AOHPR
Advance Information
DS70005260A - Page 23
BM62 EVB User’s Guide
Figure 2-7 illustrates the External amplifier header JP26 and Table 2-9 provides the pin
details and descriptions.
FIGURE 2-7:
TABLE 2-9:
EXTERNAL AMPLIFIER HEADER JP26
EXTERNAL AMPLIFIER HEADER JP26
Part Number
JP26
DS70005260A - Page 24
Pin
Description
1
EXT_AMP_EN
2
SPKR
3
AGND
4
SPKL
5
AMP_POW
Advance Information
 2016 Microchip Technology Inc.
BM62 EVB USER’S GUIDE
Chapter 3. Getting Started
This chapter describes how to establish a Bluetooth connection between the BM62
EVB and a host device. It also demonstrates the process of updating the parameters
using various tools.
This chapter includes the following topics:
3.1 “Requirements”
3.2 “Getting Started with the BM62 EVB”
3.3 “Application Demonstration”
3.4 “Configuring BM62 Stereo Audio Module”
3.5 “Updating EEPROM Parameters”
3.6 “Updating Flash Code”
3.7 “BLE Demonstration”
3.1
REQUIREMENTS
The following hardware and software components are required for getting started with
the BM62 EVB.
3.1.1
Hardware Requirements
• BM62 EVB
• Bluetooth enabled smartphone:
- Android™ device with Android 4.3 or later version
- iOS: iPhone® 4S or later version (with BLE support)
• Windows® host PC with USB port
• Speaker, microphone or headset
• Micro-USB cable
3.1.2
Software Requirements
Download the latest firmware and corresponding tools from the Microchip web site at:
www.microchip.com/BM62.
•
•
•
•
•
•
•
•
User Interface tool
DSP tool
Mass Production EEPROM Tool (MPET)
Flash update tool
Flash code
EEPROM tool
UART command set tool
mBIoT Utility app, available at Apple Store for iPhone® and at Google
Play™ Store for Android™
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 25
BM62 EVB User’s Guide
3.2
GETTING STARTED WITH THE BM62 EVB
To establish a Bluetooth connection between the BM62 EVB and a host device,
perform the following actions:
1. Set switch SW12 to Application mode, as illustrated in Figure 3-1.
FIGURE 3-1:
SW12 IN APPLICATION MODE
2. Connect a speaker to the audio out connector (P6) of the board.
3. Connect the BM62 EVB to a PC through a micro-USB cable for the power supply.
LED2 (red) will turn on.
Note:
The user can also power the board by connecting a Li-Ion battery to JP19
or JP20 on the BM62 EVB.
4. To turn on the Bluetooth, long press the MFB button until LED1 (blue) and LED2
(red) blink alternately. Then LED1 (blue) will blink to indicate that the BM62 EVB
is discoverable.
5. Turn on the host device Bluetooth (PC or smartphone), and it will display a list of
discoverable Bluetooth devices. The BM62 EVB is displayed as “Dual_SPK” or
“LE_Dual_SPK”. Select the device to establish the connection.
6. Once the BM62 EVB is connected, LED1 (blue) starts blinking fast. This indicates
that the BM62 EVB is in pairing mode.
7. When the BM62 EVB is paired with the host device, LED1 (blue) blinks twice at
regular intervals. With the default settings, the BM62 stereo audio module
enables Advanced Audio Distribution Profile (A2DP) for audio playback and
Audio Video Remote Control Profile (AVRCP) for player control.
3.3
APPLICATION DEMONSTRATION
3.3.1
Speaker Audio Demonstration
In this demonstration, the user can stream audio on the BM62 EVB using a host device
(PC or smartphone). Perform the following actions for the audio demonstration. Refer
to Figure 3-2.
1. Establish the connection between the BM62 EVB and a host device, using the
procedure listed in 3.2 “Getting Started with the BM62 EVB”.
2. Once the connection between the BM62 EVB and the host device is established,
open the audio source on the host device. Microchip recommends using a media
player (for example: Windows® Media Player, iTunes®, or Android™).
3. Start the audio stream on the media player, and LED1 (blue) and LED2 (red) will
blink once at regular intervals.
The audio control buttons are used to:
- Control the volume of audio output (long press VOL+ or VOL- button)
- Go to the previous track (short press REV button)
- Go to the next track (short press FWD button)
- Start/stop playing the current track (short press PLAY button)
DS70005260A - Page 26
Advance Information
 2016 Microchip Technology Inc.
Getting Started
FIGURE 3-2:
3.3.2
BM62 EVB AUDIO CONTROL BUTTONS
HSP/HFP Demonstration
In this demonstration, the user can explore the Headset Profile (HSP) or Hands-Free
Profile (HFP) setting to receive an incoming voice call from a paired smartphone. Perform the following actions for demonstration. Refer to Figure 3-2.
1. Establish a connection between the BM62 EVB and a host device using the procedure listed in 3.2 “Getting Started with the BM62 EVB”.
2. Connect the PC headset/microphone (with two-plugs) to the BM62 EVB’s audio
output connector (P6) and audio input connector (P5), respectively.
3. Initiate a call from another phone to the smartphone that is paired with the BM62
EVB. The A2DP stream pauses and the ringtone is played on the headset. LED1
(blue) blinks three times at regular intervals.
4. Press the MFB button on the BM62 EVB to accept the incoming call. LED1 (blue)
and LED2 (red) will blink three times at regular intervals.
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 27
BM62 EVB User’s Guide
3.4
CONFIGURING BM62 STEREO AUDIO MODULE
3.4.1
UI Tool Configuration
The User Interface (UI) tool is a configuration tool which enables the user to change
the parameters of the BM62 stereo audio module. To configure the UI parameters,
perform the following actions:
1. Open the UI configuration tool and click OK to configure the UI parameters
(Figure 3-3).
Note:
Download and install the UI tool, which is available on the Microchip web
site: www.microchip.com/BM62. For this demonstration
UITool_IS206x_012_DualModeSPK1.0_v1.01 was used.
FIGURE 3-3:
UI TOOL
2. In the UI configuration tool, click Load (Figure 3-4).
FIGURE 3-4:
UI CONFIGURATION TOOL
3. From the Open window, select the default UI parameter text file (provided with
the UI tool) for the BM62 stereo audio module, and then click Open (Figure 3-5).
DS70005260A - Page 28
Advance Information
 2016 Microchip Technology Inc.
Getting Started
FIGURE 3-5:
LOADING DEFAULT UI PARAMETERS
4. After selecting the UI parameters, click Edit (Figure 3-6).
FIGURE 3-6:
EDIT UI PARAMETERS
5. In the Main Feature dialog, the user can enable or disable the Supported Profile
and audio line-in function Button and set the following parameters, as illustrated
in Figure 3-7.
a) Select the “UART Command” check box which allows the module to be controlled by the MCU through the UART interface. Deselect the “UART Rx IND”
check box.
b) Select the “Btn0(MFB)” check box.
c) Select the “Ind.1” check box to enable the external audio amplifier.
d) Click Next.
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 29
BM62 EVB User’s Guide
FIGURE 3-7:
MAIN FEATURE SETTINGS
6. The System and Functional Settings dialog with various options (tabs) is displayed to configure the parameters. In the Sys. Setup2 tab, in the Indication 1
Setting section, enable External Amplifier Indication, as illustrated in
Figure 3-8. Click Help to get more detailed information.
DS70005260A - Page 30
Advance Information
 2016 Microchip Technology Inc.
Getting Started
FIGURE 3-8:
ENABLE EXTERNAL AMPLIFIER INDICATION
7. After setting up the parameters, click Finish. A notification is displayed to check
the EEPROM size on the system. Click OK (Figure 3-9).
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 31
BM62 EVB User’s Guide
FIGURE 3-9:
EEPROM NOTIFICATION
8. Click Save to save these UI parameters as a .txt file (Figure 3-10).
FIGURE 3-10:
DS70005260A - Page 32
SAVING UI PARAMETERS
Advance Information
 2016 Microchip Technology Inc.
Getting Started
9. From the Save As window, select the file location and then click Save
(Figure 3-11).
FIGURE 3-11:
SAVE AS WINDOW
10. After saving the UI parameters, click Exit.
3.4.2
DSP Tool Configuration
The DSP configuration tool provides the visual interface to configure the DSP-related
parameters for the voice and audio signal processing functions.To configure the DSP
parameters, perform the following actions:
1. Open the DSP tool. A dialog displays various options (tabs) to configure the
parameters, as illustrated in Figure 3-12.
Note:
 2016 Microchip Technology Inc.
Download and install the DSP tool, which is available on the Microchip web
site: www.microchip.com/BM62. For this demonstration
DSPTool_IS206x_012_DualModeSPK1.0_v1.01 was used.
Advance Information
DS70005260A - Page 33
BM62 EVB User’s Guide
FIGURE 3-12:
DS70005260A - Page 34
DSP TOOL SETTINGS
Advance Information
 2016 Microchip Technology Inc.
Getting Started
2. From the Voice Function tab, set the parameters as illustrated in Figure 3-13.
FIGURE 3-13:
 2016 Microchip Technology Inc.
DSP VOICE FUNCTION SETTING
Advance Information
DS70005260A - Page 35
BM62 EVB User’s Guide
3. From the Audio Function tab, set the parameters as illustrated in Figure 3-14.
FIGURE 3-14:
DS70005260A - Page 36
DSP AUDIO FUNCTION SETTING
Advance Information
 2016 Microchip Technology Inc.
Getting Started
4. Click Save to save these DSP parameters as .txt file (Figure 3-15).
FIGURE 3-15:
 2016 Microchip Technology Inc.
SAVING DSP PARAMETERS
Advance Information
DS70005260A - Page 37
BM62 EVB User’s Guide
5. After saving the DSP parameters, from the notification pop up click OK
(Figure 3-16). Click Exit to exit the DSP tool settings.
FIGURE 3-16:
DS70005260A - Page 38
SAVE NOTIFICATION
Advance Information
 2016 Microchip Technology Inc.
Getting Started
3.4.3
MPET Tool Configuration
The MPET tool is used to merge the UI and the DSP parameters and generate a patch
file (.ipf) or binary file (.bin). To configure the MPET tool, perform the following
actions:
1. Open the MPET tool and then click Next to continue with the configuration
settings (Figure 3-17).
Note:
Download and install the MPET tool, which is available on the Microchip
web site: www.microchip.com/BM62. For this demonstration
MPET_V2.1.29.4773 was used.
FIGURE 3-17:
MPET TOOL SETTING
2. Select UI Patch Only to merge the UI and the DSP parameters and then click
Next as illustrated in Figure 3-18.
Note:
 2016 Microchip Technology Inc.
For the UI parameter settings, refer to 3.4.1 “UI Tool Configuration”, and
for the DSP parameter settings, refer to 3.4.2 “DSP Tool Configuration”.
Advance Information
DS70005260A - Page 39
BM62 EVB User’s Guide
FIGURE 3-18:
MERGE UI AND DSP PARAMETERS
3. Click Browse to load the default .bin file (provided with the MPET tool). From
the Open window, select the default .bin file and then click Open (Figure 3-19).
DS70005260A - Page 40
Advance Information
 2016 Microchip Technology Inc.
Getting Started
FIGURE 3-19:
LOADING DEFAULT BIN FILE
4. The bin file description displays. Click Next (Figure 3-20).
FIGURE 3-20:
 2016 Microchip Technology Inc.
DEFAULT BIN FILE SETTING
Advance Information
DS70005260A - Page 41
BM62 EVB User’s Guide
5. Click the “+” button to load the UI and the DSP parameters (.txt file) into the
MPET tool to merge with the EEPROM table and then click Next, as illustrated
in Figure 3-21.
FIGURE 3-21:
CUSTOMIZED SETTINGS TO MERGE
6. Select an Output File path to create the merged EEPROM table (.ipf file), and
then click Next (Figure 3-22).
DS70005260A - Page 42
Advance Information
 2016 Microchip Technology Inc.
Getting Started
FIGURE 3-22:
SELECTING OUTPUT FILE NAME AND PATH
7. Click Generate to generate the EEPROM table (.ipf file) (Figure 3-23).
FIGURE 3-23:
 2016 Microchip Technology Inc.
GENERATE EEPROM TABLE
Advance Information
DS70005260A - Page 43
BM62 EVB User’s Guide
8. The calibration parameters included in the UI patch file can be selected or
ignored. Click Next (Figure 3-24).
Note:
If the items are selected, the calibration parameters of .ipf file will
overwrite the parameters in the device.
FIGURE 3-24:
CALIBRATION PARAMETER CHECK
9. After generating the merged EEPROM table (.ipf file), click Finish to exit the
wizard (Figure 3-25).
DS70005260A - Page 44
Advance Information
 2016 Microchip Technology Inc.
Getting Started
FIGURE 3-25:
3.5
GENERATED OUTPUT FILE
UPDATING EEPROM PARAMETERS
Perform the following actions to update the EEPROM parameters.
1. Set switch SW12 to Test Mode (Figure 3-26).
FIGURE 3-26:
SWITCH SW12 IN TEST MODE
2. Connect the BM62 EVB to a PC using a micro-USB cable as illustrated in
Figure 3-27. The default LED behavior in Test mode is: LED1 and LED2 (blue
and red) will be ON.
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 45
BM62 EVB User’s Guide
FIGURE 3-27:
Note:
EEPROM PARAMETER SETUP
Download and install the EEPROM tool, which is available on the Microchip
web site: www.microchip.com/BM62. For this demonstration
EEPROM_Tool_V2.1.28.4653 was used.
3. Open the EEPROM tool and a window displays (Figure 3-28).
FIGURE 3-28:
DS70005260A - Page 46
EEPROM TOOL
Advance Information
 2016 Microchip Technology Inc.
Getting Started
4. Specify the COM Port and click IC/Module Identify as illustrated in Figure 3-29
FIGURE 3-29:
EEPROM TOOL SETTINGS
5. Click Browse and load the generated patch file (.ipf) to write the EEPROM
parameter table on the BM62 EVB (Figure 3-30).
Note:
 2016 Microchip Technology Inc.
The patch file (.ipf) is generated using the MPET tool. For information on
generating the patch file, refer to 3.4.3 “MPET Tool Configuration”.
Advance Information
DS70005260A - Page 47
BM62 EVB User’s Guide
FIGURE 3-30:
LOADING GENERATED PATCH FILE
6. Click Write to program the EEPROM parameters on the BM62 EVB. After programming the EEPROM parameters, a message is displayed. Click OK as illustrated in Figure 3-31.
FIGURE 3-31:
DS70005260A - Page 48
WRITE EEPROM
Advance Information
 2016 Microchip Technology Inc.
Getting Started
7. Click Exit and remove the micro-USB cable. Next set SW12 to Application mode
(Figure 3-32) and reboot.
FIGURE 3-32:
3.6
SWITCH SW12 IN FLASH APPLICATION MODE
UPDATING FLASH CODE
Flash programming is required to update the firmware with a newer version or a specific
version. To update the flash code, perform the following actions:
1. Set switch SW12 to Write Flash mode (Figure 3-33).
FIGURE 3-33:
SWITCH SW12 IN WRITE FLASH MODE
2. Connect the BM62 EVB to a PC using a micro-USB cable, as illustrated in
Figure 3-34. The default LED behavior in Write Flash mode is that LED1 and
LED2 (blue and red) will blink. LED3 (green) is on and this is an I/O control LED.
FIGURE 3-34:
Note:
FLASH CODE SETUP
Download and install the isbtflash.exe firmware tool, which is available
on the Microchip web site: www.microchip.com/BM62. For this demonstration, flash code DUAL_SPK_FIRMWARE_V1.0 was used.
3. Open the isbtflash.exe firmware update tool on the PC. Specify the COM
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 49
BM62 EVB User’s Guide
Port and then click Connect, as illustrated in Figure 3-35.
FIGURE 3-35:
ISBTFLASH TOOL
4. Click Browse to select the flash code files (.hex files) downloaded from the
Microchip web site (Figure 3-36).
FIGURE 3-36:
LOADING FLASH CODE FILES
5. Click Update to write the flash code on the BM62 EVB (Figure 3-37).
Note:
DS70005260A - Page 50
Alternately, the user can also click Burst Update to write the flash code,
which is faster than Update.
Advance Information
 2016 Microchip Technology Inc.
Getting Started
FIGURE 3-37:
UPDATING FLASH CODE
6. After the flash code update, click Disconnect and remove the micro-USB cable.
Then set SW12 to Application mode (Figure 3-32) and reboot.
3.7
BLE DEMONSTRATION
In this demonstration, the user can perform a data transmission between the BM62
EVB and a smartphone. Perform the following steps for demonstration:
1. Set switch SW12 to Application mode, see Figure 3-32.
2. Connect the BM62 EVB to a PC using micro-USB cable, as illustrated in
Figure 3-38.
FIGURE 3-38:
BLE DEMONSTRATION
3. Long press the MFB button until LED1 (blue) and LED2 (red) blink alternately.
The BM62 EVB will turn on Bluetooth and enter pairing mode.
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 51
BM62 EVB User’s Guide
4. Connect the BM62 EVB to a smartphone that supports the BLE Bluetooth profiles.
5. Download and install the mBIoT Utility app available at the Apple Store for
iPhone® or at the Google Play Store for Android™. For the demonstration iPhone
is used.
6. Open the mBIoT app on the smartphone and select BM78/BM6X BLE UART
(Figure 3-39).
FIGURE 3-39:
SELECT BM78/BM6X BLE UART
7. Click Transparent and the smartphone displays a list of discoverable BLE
devices. Click LE_Dual_SPK to connect. Under the Connected Device tab,
click LE_Dual_SPK connected to find detailed information (Figure 3-40).
FIGURE 3-40:
CONNECT BM78/BM6X BLE UART
Note:
DS70005260A - Page 52
Download and install SPKCommandSetTool.exe, which is available on
the Microchip web site: www.microchip.com/BM62.
Advance Information
 2016 Microchip Technology Inc.
Getting Started
8. Open the SPKCommandSetTool.exe program on a PC to emulate the MCU
and a window is displayed (Figure 3-41).
9. Specify the COM Port and then click Open.
10. Select the SPP tab.
11. Click Browse to choose the data file to transmit.
12. Select the Fragment and Show data check boxes.
13. Click Transmit to send the data to the smartphone.
FIGURE 3-41:
 2016 Microchip Technology Inc.
SPKCOMMANDSET TOOL
Advance Information
DS70005260A - Page 53
BM62 EVB User’s Guide
NOTES:
DS70005260A - Page 54
Advance Information
 2016 Microchip Technology Inc.
BM62 EVB USER’S GUIDE
Appendix A. Schematics
A.1
REFERENCE SCHEMATICS
FIGURE A-1:
 2016 Microchip Technology Inc.
BM62 EVB SCHEMATICS
Advance Information
DS70005260A - Page 55
BM62 EVB User’s Guide
DS70005260A - Page 56
FIGURE A-2:
INPUT/OUTPUT TEST
FIGURE A-3:
STATUS LEDS
Advance Information
 2016 Microchip Technology Inc.
NFC TAG CIRCUIT
 2016 Microchip Technology Inc.
FIGURE A-4:
Advance Information
Schematics
DS70005260A - Page 57
BM62 EVB User’s Guide
DS70005260A - Page 58
FIGURE A-5:
POWER SUPPLY
FIGURE A-6:
EXTERNAL MCU INTERFACE
Advance Information
 2016 Microchip Technology Inc.
USB TO UART INTERFACE
 2016 Microchip Technology Inc.
FIGURE A-7:
Advance Information
Schematics
DS70005260A - Page 59
BM62 EVB User’s Guide
FIGURE A-8:
DS70005260A - Page 60
UART INTERFACE
Advance Information
 2016 Microchip Technology Inc.
Schematics
FIGURE A-9:
SWITCH SW12 CONFIGURATION
FIGURE A-10:
POWER SOURCE
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 61
DS70005260A - Page 62
Advance Information
BM62 EVB User’s Guide
AUDIO TEST INTERFACE
FIGURE A-11:
 2016 Microchip Technology Inc.
Schematics
FIGURE A-12:
 2016 Microchip Technology Inc.
EXTERNAL AMPLIFIER SWITCH AND CONNECTOR
Advance Information
DS70005260A - Page 63
BM62 EVB User’s Guide
DS70005260A - Page 64
FIGURE A-13:
SPEAKER
FIGURE A-14:
MICROPHONE
Advance Information
 2016 Microchip Technology Inc.
Schematics
FIGURE A-15:
AUXILIARY INPUT
FIGURE A-16:
MFB AND RESET PUSH BUTTON
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 65
BM62 EVB User’s Guide
DS70005260A - Page 66
FIGURE A-17:
MUSIC CONTROL PUSH BUTTONS
FIGURE A-18:
SLIDE SWITCH
Advance Information
 2016 Microchip Technology Inc.
NOTES:
 2016 Microchip Technology Inc.
Advance Information
DS70005260A - Page 67
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
DS70005260A - Page 68
Advance Information
 2016 Microchip Technology Inc.