2016 Microchip Technology Inc.
DS50002547A-page 39
RN4870/71 PICtail™/PICtail PLUS
DAUGHTER BOARD USER’S GUIDE
Chapter 5. PIC Configuration Library
5.1
OVERVIEW
The BM7x Configuration Library provides a set of functions for the RN4870/71 module
to create command packets to perform the following functions:
• Update the Bluetooth parameter table
• Perform pairing procedure
• Configure a subset of parameters in Application mode
• Set the module into different operating modes
The RN4870/71 module uses the UART interface for configuration and data transfer.
The RN4870/71 Configuration and Events are defined as Command and Response
protocol packets. A Command packet is sent to the RN4870/71 over UART to update
a parameter. A Response packet is received from the RN4870/71 over UART for the
command issued. RN4870/71 also sends out Event packets over UART when a
defined event occurs. The PICtail Plus and PICtail interface on the RN4870/71 PICtail
board are used to configure the RN4870/71 module over the UART using the BM7x
Configuration Library with an external PIC MCU and to send and receive raw data over
UART. The PICtail interface can also be used to access the UART and the GPIOs on
the RN4870/71 module.
5.2
USING BM7X CONFIGURATION LIBRARY WITH PICtail BOARD
The RN4870/71 PICtail plugs into the Explorer 16 Development board with a
PIC32/PIC24 Plug-In-Module (PIM) or into the PIC18 Explorer board with a PIC18 PIM.
The BM7x Configuration Library demo is an example application that can be pro-
grammed in to the PIC32/PIC24/PIC18 PIMs to configure and control the RN4870/71
module on the PICtail board.
5.2.1
Download/Install
1. Download the BM7x Configuration Library installer from
2. Install the Library on a Windows PC.
3. Refer to the
getting_started.htm
file for more information on the MPLAB
®
X
workspace.
5.2.2
Programming/Debugging
1. Plug the PIC Plug-In-Module (PIM) into the relevant Explorer Development board
based on the hardware combination selected for evaluation.
2. Plug the RN4870/71 PICtail Plus board into the Explorer Development board
with the RN4870/71 module facing towards the PIC PIM as shown in
or
based on hardware combination used.
Note:
If using PIC32MX795F512L PIM, ensure that on jumpers J1 and J2 on the
PIM, pins 2 and 3 are connected using a jumper to select the CAN config-
uration and all jumpers on J9 and J10 on the PIM are
not
connected.