PIC-BLE Hardware User Guide · 2020. 11. 12. · PIC-BLE PIC-BLE Hardware User Guide Preface The...

31
PIC-BLE PIC-BLE Hardware User Guide Preface The PIC-BLE Development Board is a small and easily expandable demonstration and development platform for Bluetooth ® Low Energy (BLE) solutions based on the PIC ® microcontroller architecture. It is designed to demonstrate that the design of a typical BLE application can be simplified by partitioning the task into three blocks: Smart – represented by the PIC16LF18456 microcontroller Secure – represented by the ATECC608A secure element Connected – represented by the RN4870 BLE module Also, the PIC-BLE Development Board features the following elements: The on-board debugger (PKoB nano) supplies full programming and debugging support through Microchip MPLAB ® X IDE. It also provides access to a serial port interface (serial to USB bridge) and one logic analyzer channel (debug GPIO). A mikroBUS socket enables the ability to expand the board capabilities with the selection from 450+ sensors and actuators options offered by MikroElektronika (www.mikroe.com) via a growing portfolio of Click board . © 2020 Microchip Technology Inc. User Guide DS50002963B-page 1

Transcript of PIC-BLE Hardware User Guide · 2020. 11. 12. · PIC-BLE PIC-BLE Hardware User Guide Preface The...

  • PIC-BLE PIC-BLE Hardware User Guide

    Preface

    The PIC-BLE Development Board is a small and easily expandable demonstration and development platform forBluetooth® Low Energy (BLE) solutions based on the PIC® microcontroller architecture. It is designed to demonstratethat the design of a typical BLE application can be simplified by partitioning the task into three blocks:

    • Smart – represented by the PIC16LF18456 microcontroller• Secure – represented by the ATECC608A secure element• Connected – represented by the RN4870 BLE module

    Also, the PIC-BLE Development Board features the following elements:• The on-board debugger (PKoB nano) supplies full programming and debugging support through Microchip

    MPLAB® X IDE. It also provides access to a serial port interface (serial to USB bridge) and one logic analyzerchannel (debug GPIO).

    • A mikroBUS™ socket enables the ability to expand the board capabilities with the selection from 450+ sensorsand actuators options offered by MikroElektronika (www.mikroe.com) via a growing portfolio of Click board™.

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 1

    http://www.mikroe.com

  • Table of Contents

    Preface...........................................................................................................................................................1

    1. Introduction............................................................................................................................................. 3

    1.1. Features....................................................................................................................................... 31.2. Board Overview............................................................................................................................3

    2. Getting Started........................................................................................................................................ 6

    2.1. Quick Start....................................................................................................................................62.2. Design Documentation and Relevant Links................................................................................. 7

    3. Hardware User Guide............................................................................................................................. 8

    3.1. On-Board Debugger Overview.....................................................................................................83.2. Power Supply............................................................................................................................. 143.3. Low-Power Operation.................................................................................................................143.4. Target Current Measurement..................................................................................................... 153.5. Peripherals................................................................................................................................. 15

    4. Hardware Revision History and Known Issues..................................................................................... 22

    4.1. Identifying Product ID and Revision........................................................................................... 224.2. Revision 4...................................................................................................................................224.3. Revision 3...................................................................................................................................22

    5. Document Revision History...................................................................................................................23

    6. Appendix............................................................................................................................................... 24

    6.1. Schematics.................................................................................................................................246.2. Assembly Drawing......................................................................................................................27

    The Microchip Website.................................................................................................................................28

    Product Change Notification Service............................................................................................................28

    Customer Support........................................................................................................................................ 28

    Microchip Devices Code Protection Feature................................................................................................ 28

    Legal Notice................................................................................................................................................. 29

    Trademarks.................................................................................................................................................. 29

    Quality Management System....................................................................................................................... 30

    Worldwide Sales and Service.......................................................................................................................31

    PIC-BLE

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 2

  • 1. Introduction

    1.1 Features• PIC16LF18456 Microcontroller• Two User LEDs (Data and Error)• Mechanical Button• RN4870 Bluetooth Low Energy (BLE) Module• MCP9844 Temperature Sensor• BMA253 Acceleration Sensor• ATECC608A CryptoAuthentication™ Device• SST25PF040CT 4 Mb Serial Flash• mikroBUS Socket• On-board Debugger

    – Board identification in Microchip MPLAB® X IDE– Programming and debugging– Virtual serial port (USB CDC)– One logic analyzer channel (DGI GPIO)

    • USB or Battery Powered

    1.2 Board OverviewThe PIC-BLE development board is a hardware platform that is being used to evaluate the PIC16LF18456microcontroller and RN4870 BLE module.

    Figure 1-1. PIC-BLE Development Board Front Side

    Micro-USB Connector

    DebuggerPower/Status LED

    ATECC6080ACrypto

    Data LED (Green)

    Error LED(Red)

    SST25PF040CT Serial Flash

    USB/Battery MUX

    BLE LED (Blue)

    MCP9844 Temp-sensor

    BMA253 Accelerometer

    PIC16LF18456 MCU

    User Switch (SW0)

    RN4870 BLE module

    PIC-BLEIntroduction

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 3

  • Figure 1-2. PIC-BLE Development Board Back Side

    CR2032 Battery Holder

    Additional RN4870 GPIO

    PIC-BLEIntroduction

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 4

  • Figure 1-3. PIC-BLE Quick Reference Overview

    PIC-

    BLE

    Deve

    lopm

    ent B

    oard

    (DT1

    0011

    2)

    MIC

    3305

    0 D

    C/D

    C C

    onve

    rter

    BM

    A25

    3 A

    ccel

    erat

    ion

    Sens

    or

    ATE

    CC

    608A

    Sec

    ure

    Elem

    ent

    RA

    4

    RA

    1

    RB

    3

    RB

    0

    RB

    1

    RB

    2

    5.0V

    GN

    D

    SST2

    5PF0

    40C

    4M

    B F

    LASH

    RA

    5

    Mic

    ro U

    SB C

    onne

    ctor

    PKoB

    Nan

    o D

    ebug

    ger/

    Prog

    ram

    mer

    MC

    P984

    4 Te

    mpe

    ratu

    re S

    enso

    r

    AN

    RST

    SPI C

    S

    SPI S

    CK

    SPI M

    ISO

    SPI M

    OSI

    3.3V

    GN

    D

    PIC

    16LF

    1845

    6 M

    CU

    Use

    r Sw

    itch

    0

    RN

    4870

    Blu

    etoo

    th L

    ow E

    nerg

    y M

    odul

    e

    RA

    2

    RA

    3

    RC

    0

    RC

    1

    RC

    2

    RC

    3

    RA

    7

    PWM

    INT

    UA

    RT

    RX

    UA

    RT

    TX

    I2 C S

    CL

    I2 C S

    DA

    DA

    TA L

    ED

    RN

    4870

    P2_

    2

    RN

    4870

    P1_

    1BL

    E ST

    ATU

    S LE

    D

    ERR

    OR

    LED

    CD

    C R

    X

    CD

    C T

    X

    DEB

    UG

    GPI

    O0

    RB

    4 | E

    USA

    RT1

    TX

    RB

    5 | E

    USA

    RT1

    RX

    RA

    7

    I2 C S

    CL

    I2 C S

    DA

    RB

    1

    RB

    2

    BLE

    MO

    DE

    BLE

    RST

    BLE

    RX

    RA

    7

    RA

    0

    RC

    4 | E

    USA

    RT2

    TX

    BLE

    TX

    RC

    5 | E

    USA

    RT2

    RX

    SPI F

    LASH

    CS

    SPI S

    CK

    SPI M

    ISO

    RC

    7

    RC

    1

    RC

    2

    SPI M

    OSI

    RC

    3

    I2 C S

    CL

    I2 C S

    DA

    BM

    A 2

    53 IN

    T1

    RB

    1

    RB

    2

    RA

    6

    I2 C S

    CL

    I2 C S

    DA

    RB

    1

    RB

    2

    GR

    EEN

    BLUE

    RED

    PIC-BLEIntroduction

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 5

  • 2. Getting Started

    2.1 Quick StartDemo Application

    Out of the box, the PIC-BLE board comes programmed with the pic-lightblue-explorer-demo. This application can beused to demonstrate a number of the board features using the LightBlue® app by Punch Through.

    1. Download the latest demo firmware from the releases section on the pic-lightblue-explorer-demo GitHub page.2. Connect a USB cable (Standard-A to Micro-B or Micro-AB) between the PC and the debug USB port on the

    board.3. Program the PIC-BLE with the downloaded .hex file through the drag-and-drop feature.4. Download the LightBlue® app for iOS or Android.5. Power the board through a Micro-USB cable or CR2032 battery.6. Open the LightBlue® app and select the PIC-BLE peripheral.7. Use the custom interface to explore the board.

    Info:  The PIC-BLE will show up in the LightBlue® app as PIC-BLE_xxxx, where xxxx are the last twobytes of the RN4870 BLE module’s Bluetooth MAC address. This makes it possible to distinguish betweenmultiple PIC-BLE boards.

    Communication between the demo application and the LightBlue® app is done by using a protocol based on ASCIIpackets. Refer to the protocol section on the pic-lightblue-explorer-demo page for a list of commands with examples,as well as the full source code for the project.

    Development Requirements

    MPLAB® X IDE:• MPLAB X IDE v5.30 or later• XC8 Compiler v2.10 or later

    For help with installation, view the MPLAB X installation guide.

    Build an Application

    View the default source code that is pre-loaded onto the development board. Explore, modify, and build off thissource code to create a custom application.

    1. View the source code at the pic-lightblue-explorer-demo GitHub page.2. Read through the README.md to get more information on how to expand the solution.3. Download the project from GitHub and open it in the latest version of MPLAB® X IDE.4. Connect a USB cable (Standard-A to Micro-B or Micro-AB) between the Windows®, Mac®, or Linux® device

    and the debug USB port on the PIC-BLE. The board will be identified in the kit window in MPLAB® X IDE.5. Explore, modify, and build off the source code.6. Make and program the device. Select the PKoB nano serial number as the debug tool when prompted.

    Driver InstallationWhen the board connects to your computer for the first time, the operating system will perform a driver softwareinstallation. The driver file supports both 32- and 64-bit versions of Microsoft® Windows® XP, Windows Vista®,Windows® 7, Windows® 8, and Windows® 10. The drivers for the board are included with MPLAB® X IDE.

    Kit WindowOnce the board is powered, the green status LED will lit, and MPLAB® X IDE will auto-detect which boards areconnected. The Kit Window in MPLAB® X IDE will present relevant information like data sheets and boarddocumentation. The PIC16LF18456 device on the PIC-BLE board is programmed and debugged by the on-boarddebugger, and, therefore, no external programmer or debugger tool is required.

    PIC-BLEGetting Started

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 6

    https://github.com/microchip-pic-avr-solutions/pic-lightblue-explorer-demohttps://punchthrough.com/https://github.com/microchip-pic-avr-solutions/pic-lightblue-explorer-demohttps://apps.apple.com/us/app/lightblue-explorer/id557428110https://play.google.com/store/apps/details?id=com.punchthrough.lightblueexplorerhttps://github.com/microchip-pic-avr-solutions/pic-lightblue-explorer-demohttps://www.microchip.com/mplab/mplab-x-idehttps://www.microchip.com/mplab/compilershttps://microchipdeveloper.com/mplabx:installationhttps://github.com/microchip-pic-avr-solutions/pic-lightblue-explorer-demo

  • Tip:  If closed, the Kit Window in MPLAB® X IDE can be reopened through the menu bar Window > KitWindow.

    2.2 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the PIC-BLE board:

    • MPLAB® X IDE - MPLAB X IDE is a software program that runs on a PC (Windows®, Mac OS®, Linux®) todevelop applications for Microchip microcontrollers and digital signal controllers. It is named an IntegratedDevelopment Environment (IDE) because it provides a single integrated “environment” to develop code forembedded microcontrollers.

    • MPLAB® XC Compilers - MPLAB® XC8 C Compiler is available as a free, unrestricted-use download.Microchips MPLAB® XC8 C Compiler is a comprehensive solution for your project’s software development onWindows®, macOS® or Linux®. MPLAB® XC8 supports all 8-bit PIC® and AVR® microcontrollers (MCUs).

    • MPLAB® Xpress Cloud-based IDE - MPLAB Xpress Cloud-Based IDE is an online development environmentthat contains the most popular features of our award-winning MPLAB X IDE. This simplified and distilledapplication is a faithful reproduction of our desktop-based program, which allows users to easily transitionbetween the two environments.

    • MPLAB® Code Configurator - MPLAB Code Configurator (MCC) is a free software plug-in that provides agraphical interface to configure peripherals and functions specific to your application.

    • Microchip Sample Store - Microchip sample store where you can order samples of devices.• MPLAB Data Visualizer - MPLAB Data Visualizer is a program used for processing and visualizing data. The

    Data Visualizer can receive data from various sources such as serial ports and on-board debugger’s DataGateway Interface, as found on Curiosity Nano and Xplained Pro boards.

    • Microchip PIC® and AVR® Examples - Microchip PIC and AVR Device Examples is a collection of examplesand labs that use Microchip development boards to showcase the use of PIC and AVR device peripherals.

    • Microchip PIC® and AVR® Solutions - Microchip PIC and AVR Device Solutions contains completeapplications for use with Microchip development boards, ready to be adapted and extended.

    • PIC-BLE website - Kit information, latest user guide and design documentation.• PIC-BLE on Microchip Direct - Purchase this kit on Microchip Direct.

    PIC-BLEGetting Started

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 7

    https://www.microchip.com/mplab/mplab-x-idehttps://www.microchip.com/mplab/compilershttps://www.microchip.com/mplab/mplab-xpresshttps://www.microchip.com/mplab/mplab-code-configuratorhttps://www.microchip.com/samples/default.aspxhttps://gallery.microchip.com/packages?q=MPLAB-Data-Visualizerhttps://github.com/microchip-pic-avr-exampleshttps://github.com/microchip-pic-avr-solutionshttp://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=DT100112http://www.microchipdirect.com/ProductSearch.aspx?Keywords=DT100112

  • 3. Hardware User Guide

    3.1 On-Board Debugger OverviewPIC-BLE contains an on-board debugger for programming and debugging. The on-board debugger is a compositeUSB device consisting of several interfaces:

    • A debugger that can program and debug the PIC16LF18456 in MPLAB® X IDE• A mass storage device that allows drag-and-drop programming of the PIC16LF18456• A virtual serial port (CDC) that is connected to a Universal Asynchronous Receiver/Transmitter (UART) on the

    PIC16LF18456, and provides an easy way to communicate with the target application through terminal software• A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize

    program flow

    The on-board debugger controls a Power and Status LED (marked PS) on the PIC-BLE board. The table belowshows how the LED is controlled in different operation modes.

    Table 3-1. On-Board Debugger LED Control

    Operation Mode Power and Status LED

    Boot Loader mode The LED blinks slowly during power-up

    Power-up The LED is ON

    Normal operation The LED is ON

    Programming Activity indicator: The LED blinks slowly during programming/debugging

    Drag-and-dropprogramming Success: The LED blinks slowly for 2 sec.

    Failure: The LED blinks rapidly for 2 sec.

    Fault The LED blinks rapidly if a power fault is detected

    Sleep/Off The LED is OFF. The on-board debugger is either in a sleep mode or powered down.This can occur if the board is externally powered.

    Info:  Slow blinking is approximately 1 Hz, and rapid blinking is approximately 5 Hz.

    3.1.1 DebuggerThe on-board debugger on the PIC-BLE board appears as a Human Interface Device (HID) on the host computer’sUSB subsystem. The debugger supports full-featured programming and debugging of the PIC16LF18456 usingMPLAB® X IDE.

    Remember:  Keep the debugger’s firmware up-to-date. Firmware upgrades automatically when usingMPLAB® X IDE.

    3.1.2 Virtual Serial Port (CDC)The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device.

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 8

  • 3.1.2.1 OverviewThe on-board debugger implements a composite USB device that includes a standard Communications Device Class(CDC) interface, which appears on the host as a virtual serial port. The CDC can be used to stream arbitrary data inboth directions between the host computer and the target: All characters sent through the virtual serial port on thehost computer will be transmitted as UART on the debugger’s CDC TX pin, and UART characters captured on thedebugger’s CDC RX pin will be returned to the host computer through the virtual serial port.

    Figure 3-1. CDC Connection

    Target MCU

    UART TX

    UART RX

    Debugger

    USBCDC RX

    CDC TX

    PCTerminalSoftware

    TargetReceive

    TargetSend

    TerminalReceive

    TerminalSend

    Info:  As shown in Figure 3-1, the debugger’s CDC TX pin is connected to a UART RX pin on the targetfor receiving characters from the host computer. Similarly, the debugger’s CDC RX pin is connected to aUART TX pin on the target for transmitting characters to the host computer.

    3.1.2.2 Operating System SupportOn Windows® machines, the CDC will enumerate as Curiosity Virtual COM Port and appear in the Ports section ofthe Windows Device Manager. The COM port number can also be found there.

    Info:  On older Windows systems, the CDC requires a USB. This driver is included in installations ofMPLAB® X IDE.

    On Linux® machines, the CDC will enumerate and appear as /dev/ttyACM#.

    Info:  tty* devices belong to the “dialout” group in Linux, so it may be necessary to become a member ofthat group to have permissions to access the CDC.

    On Mac® machines, the CDC will enumerate and appear as /dev/tty.usbmodem#. Depending on which terminalprogram is used, it will appear in the available list of modems as usbmodem#.

    Info:  For all operating systems: Be sure to use a terminal emulator that supports DTR signaling. See 3.1.2.4 Signaling.

    3.1.2.3 LimitationsNot all UART features are implemented in the on-board debugger CDC. The constraints are outlined here:

    • Baud rate: Must be in the range of 1200 bps to 500 kbps. Any baud rate outside this range will be set to theclosest limit, without warning. Baud rate can be changed on-the-fly.

    • Character format: Only 8-bit characters are supported.

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 9

  • • Parity: Can be odd, even, or none.• Hardware flow control: Not supported.• Stop bits: One or two bits are supported.

    3.1.2.4 SignalingDuring USB enumeration, the host OS will start both communication and data pipes of the CDC interface. At thispoint, it is possible to set and read back the baud rate and other UART parameters of the CDC, but data sending andreceiving will not be enabled.

    When a terminal connects to the host, it must assert the DTR signal. As this is a virtual control signal implemented onthe USB interface, it is not physically present on the board. Asserting the DTR signal from the host will indicate to theon-board debugger that a CDC session is active. The debugger will then enable its level shifters (if available) andstart the CDC data send and receive mechanisms.

    Deasserting DTR in debugger firmware version 1.20 or earlier has the following behavior:• Debugger UART receiver is disabled, and no further data will be transferred to the host computer• Debugger UART transmitter will continue to send data that is queued for sending, but no new data is accepted

    from the host computer• Level shifters (if available) are not disabled, and the debugger CDC TX line remains driven

    Deasserting DTR in debugger firmware version 1.21 or later has the following behavior:• Debugger UART receiver is disabled, so no further data will be transferred to the host computer• Debugger UART transmitter will continue to send data that is queued for sending, but no new data is accepted

    from the host computer• Once the ongoing transmission is complete, level shifters (if available) are disabled, so the debugger CDC TX

    line will become high-impedance

    Remember:  Set up the terminal emulator to assert the DTR signal. Without the signal, the on-boarddebugger will not send or receive any data through its UART.

    Tip:  The on-board debugger’s CDC TX pin will not be driven until the CDC interface is enabled by thehost computer. Also, there are no external pull-up resistors on the CDC lines connecting the debugger andthe target, which means that during power-up, these lines are floating. To avoid any glitches resulting inunpredictable behavior like framing errors, the target device may enable the internal pull-up resistor on thepin connected to the debugger’s CDC TX pin.

    3.1.2.5 Advanced Use

    CDC Override ModeIn normal operation, the on-board debugger is a true UART bridge between the host and the device. However, incertain use cases, the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes.

    Dropping a text file into the on-board debugger’s mass storage drive can be used to send characters out of thedebugger’s CDC TX pin. The filename and extension are trivial, but the text file must start with the characters:CMD:SEND_UART=

    Debugger firmware version 1.20 or earlier has the following limitations:• The maximum message length is 50 characters – all remaining data in the frame are ignored• The default baud rate used in this mode is 9600 bps, but if the CDC is already active or has been configured,

    the previously used baud rate still applies

    Debugger firmware version 1.21 and later has the following limitations/features:

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 10

  • • The maximum message length may vary depending on the MSC/SCSI layer timeouts on the host computerand/or operating system. A single SCSI frame of 512 bytes (498 characters of payload) is ensured, and files ofup to 4 KB will work on most systems. The transfer will complete on the first NULL character encountered in thefile.

    • The baud rate used is always 9600 bps for the default command:CMD:SEND_UART=

    • Do not use the CDC override mode simultaneously with data transfer over the CDC/terminal. If a CDC terminalsession is active at the time a file is received via CDC override mode, it will be suspended for the duration of theoperation and resumed once complete.

    • Additional commands are supported with explicit baud rates:CMD:SEND_9600=

    CMD:SEND_115200=

    CMD:SEND_460800=

    USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks, which will be chunked into 64-byte USBframes. Each such frame will be queued up for sending to the debugger’s CDC TX pin. Transferring a small amountof data per frame can be inefficient, particularly at low baud rates, as the on-board debugger buffers frames and notbytes. A maximum of four 64-byte frames can be active at any time. The on-board debugger will throttle the incomingframes accordingly. Sending full 64-byte frames containing data is the most efficient method.

    When receiving data on the debugger’s CDC RX pin, the on-board debugger will queue up the incoming bytes into64-byte frames, which are sent to the USB queue for transmission to the host when they are full. Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals, triggered by USB start-of-frame tokens. Up toeight 64-byte frames can be active at any time.

    If the host (or the software running on it) fails to receive data fast enough, an overrun will occur. When this happens,the last-filled buffer frame will be recycled instead of being sent to the USB queue, and a full data frame will be lost.To prevent this occurrence, the user must ensure that the CDC data pipe is being read continuously, or the incomingdata rate must be reduced.

    3.1.3 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation, which is accessible for read/writeoperations via the host operating system to which it is connected.

    It provides:• Read access to basic text and HTML files for detailed kit information and support• Write access for programming Intel® HEX formatted files into the target device’s memory• Write access for simple text files for utility purposes

    3.1.3.1 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitations,partly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application.

    The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not, in any way, fulfillthe expectations of a general purpose mass storage device. This behavior is intentional.

    When using the Windows operating system, the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager. The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system.

    The CURIOSITY drive contains approximately one MB of free space, and this does not reflect the size of the targetdevice’s Flash in any way. When programming an Intel® HEX file, the binary data are encoded in ASCII withmetadata providing a large overhead, so one MB is a trivially chosen value for disk size.

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 11

  • It is not possible to format the CURIOSITY drive. When programming a file to the target, the filename may appear inthe disk directory listing. This is merely the operating system’s view of the directory, which, in reality, has not beenupdated. It is not possible to read out the file contents. Removing and replugging the board will return the file systemto its original state, but the target will still contain the application that has previously been programmed.

    To erase the target device, copy a text file starting with “CMD:ERASE” onto the disk.By default, the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information:

    • AUTORUN.ICO – icon file for the Microchip logo• AUTORUN.INF – system file required for Windows Explorer to show the icon file• CLICK-ME.HTM – redirect to the PIC-BLE web demo application• KIT-INFO.HTM – redirect to the development board website• KIT-INFO.TXT – a text file containing details about the board’s debugger firmware version, board name, USB

    serial number, device, and drag-and-drop support• STATUS.TXT – a text file containing the programming status of the board

    Info:  STATUS.TXT is dynamically updated by the on-board debugger. The contents may be cached bythe OS and, therefore, do not reflect the correct status.

    3.1.3.2 Configuration Words

    Configuration Words (PIC® MCU Targets)Configuration Word settings included in the project being programmed after program Flash is programmed. Thedebugger will not mask out any bits in the Configuration Words when writing them, but since it uses Low-VoltageProgramming mode, it is unable to clear the LVP Configuration bit. If the incorrect clock source is selected, forexample, and the board does not boot, it is always possible to perform a bulk erase (always done beforeprogramming) and restore the device to its default settings.

    3.1.3.3 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk. The filename or extension isirrelevant – the command handler reacts to content only.

    Table 3-2. Special File Commands

    Command Content Description

    CMD:ERASE Executes a chip erase of the targetCMD:SEND_UART= Sends a string of characters to the CDC UART. See “CDC

    Override Mode.”

    CMD:SEND_9600=CMD:SEND_115200=CMD:SEND_460800=

    Sends a string of characters to the CDC UART at the baud ratespecified. Note that only the baud rates explicitly specified hereare supported! See “CDC Override Mode”. (Debugger firmwarev1.21 or newer.)

    CMD:RESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately afterward. Exacttiming can vary according to the programming interface of thetarget device. (Debugger firmware v1.16 or newer.)

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 12

  • Info:  The content sent to the mass storage emulated disk triggers the commands listed here andprovides no feedback in the case of either success or failure.

    3.1.4 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools. MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data. It is available as a plug-in for MPLAB® X IDE or a stand-alone application that can be usedin parallel with MPLAB® X IDE.

    Although DGI encompasses several physical data interfaces, the PIC-BLE implementation includes logic analyzerchannels:

    • One debug GPIO channel (also known as DGI GPIO)

    3.1.4.1 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application. They are typically used to plot the occurrence of low-frequency events on a time-axis – forexample, when certain application state transitions occur.

    The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer.Figure 3-2. Monitoring Debug GPIO with MPLAB® Data Visualizer

    Debug GPIO channels are timestamped, so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module.

    Important:  Although bursts of higher-frequency signals can be captured, the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz. Attempting to capture signals above thisfrequency will result in data saturation and overflow, which may cause the DGI session to be aborted.

    3.1.4.2 TimestampingDGI sources are timestamped as they are captured by the debugger. The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency, providing a timestamp resolution of a half microsecond.

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 13

    https://gallery.microchip.com/packages?q=MPLAB-Data-Visualizer

  • 3.2 Power SupplyThe board can be powered through the USB port or by a CR2032 battery. It will automatically switch to the battery ifUSB power is not available. While powered through USB, the board generates 3.3V for the debugger,PIC16LF18456, and peripherals. During battery operation, the PIC16LF18456 and peripherals run directly on thebattery voltage, while the debugger is not powered.

    Current drawn from the USB port is limited to 500 mA by a PTC resettable fuse.

    Important:  When powering the PIC-BLE board with a CR2032 battery, it is important to leave thePIC16LF18456 pins that connect to the CDC UART in Tri-State (Input) mode. This is to prevent thedebugger from getting powered through its GPIO.

    Figure 3-3. Power Supply Block Diagram

    USB On-BoardDebugger

    Power source

    Power disconnect

    Power consumer

    Power converter

    VUSBMIC33050

    (buck)

    MUX(MIC94050)(MIC94165)

    Power MUX

    Battery Holder

    (CR2032)

    VCC_P3V3

    VBAT

    VBAT_OUT

    0Ω resistor

    Target MCU

    Peripherals mBUS

    RN4870

    0Ω resistorP3V3_ENABLE

    Info:  On the mikroBUS socket, the +5V rail is powered from the USB port. Consequently, +5V will not beavailable when the board is powered from a battery.

    3.3 Low-Power OperationTo achieve the lowest power consumption of the board, the following considerations must be taken:

    • Set the MCP9844 in Shutdown mode– Set bit 8 (SHDN) in the 16-bit CONFIG register (address 0x01)

    • Set the BMA253 in Deep Suspend mode– Set bit 5 (deep suspend) in the 8-bit PMU_LPW register (address 0x11)

    • Set the RN4870 in sleep mode– Set the RX_IND pin high (RC6 on the PIC16LF18456)– Send the "O,0\r" command to the RN4870

    • Set unused PIC16LF18456 I/O pins as input and disable the digital input buffer

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 14

  • Important:  EUSART pins RB4 and RB5 are connected directly to the on-board debugger. It is importantto tri-state the EUSART pins when the board is powered from a CR2032 battery to prevent powering thedebugger through its I/O pins. Doing so will increase the power consumption and cause undefinedbehavior from the on-board debugger.

    Info:  The load switch U300 in the power MUX can leak up to 1 μA when the board is powered from abattery. By modifying the board and removing resistor R303 (0Ω), U300 can be disconnected. Be warnedthat a board modified this way can no longer be powered from USB, and consequently neitherprogrammed nor debugged using the on-board debugger until the 0Ω resistor is reconnected.

    3.4 Target Current MeasurementPower to the PIC16LF18456 and its peripherals is connected from the on-board power supply through a 0Ω resistor(R301) in parallel with a 100-mil Current sense pin header footprint marked with “ISNS” in silkscreen (J301). Tomeasure the power consumption of the PIC16LF18456 and other peripherals on the board, de-solder the 0Ω resistorand connect an ammeter over the Current sense footprint.

    Figure 3-4. Current sense footprint

    0Ω resistor(R301)

    Current sense footprint(J301)

    Tip:  A 100-mil pin header can be soldered into the Current sense (J301) footprint for easy connection ofan ammeter. Once the ammeter is not needed anymore, place a jumper cap on the pin header.

    3.5 Peripherals

    3.5.1 PIC16LF18456Microchip PIC16LF18456 is a microcontroller featuring Intelligent Analog, Core Independent Peripherals (CIPs), andcommunication peripherals combined with eXtreme Low Power (XLP) for a wide range of general purpose and low-power applications. Features such as a 12-bit Analog-to-Digital Converter with Computation (ADC2 ), MemoryAccess Partitioning (MAP), the Device Information Area (DIA), Power-Saving Operating modes, and Peripheral PinSelect (PPS) offer flexible solutions for a wide variety of custom applications.

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 15

  • 3.5.2 mikroBUS™ SocketFigure 3-5. mikroBUS™ Socket Pinout

    AN PWMRST INTCS RXSCK TXMISO SCLMOSI SDA+3.3V +5VGND GND

    RA2 RA4

    RA3 RA1

    RC0 RB3

    RC1 RB0

    RC2 RB1

    RC3 RB2

    VCC VBUS

    GND GND

    The PIC-BLE board features a mikroBUS socket for expanding the functionality of the development board using theMikroElektronika Click board and other mikroBUS add-on boards. The socket is populated with two 1x8 2.54 mmpitch female headers and is ready to mount add-on boards.

    Table 3-3. mikroBUS™ Socket Pinout

    mikroBUS™ Socket Pin PIC16LF18456 Pin Function Shared Functionality

    AN RA2 ADCC ANA2 —

    RST RA3 GPIO —

    CS RC0 MSSP SPI CS —

    SCK RC1 MSSP SPI SCK SST25PF040CT

    MISO RC2 MSSP SPI MISO SST25PF040CT

    MOSI RC3 MSSP SPI MOSI SST25PF040CT

    +3.3V VDD VCC_TARGET —

    GND GND Ground —

    PWM RA4 CCP5 —

    INT RA1 EXT_INT —

    RX RB3 EUSART RX —

    TX RB0 EUSART TX —

    SCL RB1 MSSP I2C SCL MCP9844, BMA253 and ATECC608A

    SDA RB2 MSSP I2C SDA MCP9844, BMA253 and ATECC608A

    +5V — VBUS —

    GND GND Ground —

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 16

  • Info:  VBUS is powered by USB. Consequently, +5V will not be available while the board is powered by abattery.

    Info:  VCC_TARGET will have the battery voltage when the board is powered by a battery, which can beless than +3.3V.

    3.5.3 RN4870 BLE ModuleThe RN4870 is a Bluetooth® Low Energy (BLE) module that integrates a Bluetooth® 5.0 baseband controller, on-board Bluetooth stack, digital and analog I/O, and RF power amplifier into one solution.

    Additional Features:• Range up to 50m• Operating voltage range: 1.9V to 3.6V• TX / RX mode peak current: 10 mA (typical)• Low-Power mode current: 60 μA (typical)• Shutdown current: 2.9 μA (max.)

    The RN4870 BLE module is connected to the PIC16LF18456 through UART as well as three GPIOs for the controland configuration of the module. The RST signals reset the module, while the RX_IND signal is used to wake themodule from Low-Power mode. The MODE signal, available from the PIC16LF18456, the debugger as well as by aphysical switch, allows the module to be put in a “Test Mode” where the RN4870 firmware can be updated.

    The module has two of its GPIO pins connected to LEDs. By default, the BLE LED will indicate connection status,while ERR LED must be controlled by the user. Both LEDs can be configured for several other functions. Many of theother RN4870 GPIO pins are available as pads around the label on the backside of the PIC-BLE board, as can beseen in Figure 1-2.

    Info:  Some RN4870 settings have been changed during the manufacturing of PIC-BLE. Using the S-command, the device name has been changed to “PIC-BLE”. Also, the communication settings have beenconfigured for PIC16LF18456 EUSART settings of 9600,8,N,1.

    Table 3-4. RN4870 Connections

    RN4870 Pin PIC16LF18456Pin

    Function Shared Functionality

    RX RC4 EUSART TX —

    TX RC5 EUSART RX —

    RST RA0 GPIO —

    P2_0 / MODE RA7 GPIO Mechanical Switch and On-boarddebugger

    P3_3 / RX_IND RC6 GPIO —

    P1_1 / STATUS1 — Connection LED (BLE) BLE LED

    P2_2 — Custom configurable LED (ERR) ERR LED

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 17

  • Info:  The RST and MODE signals are pulled up by external resistors.

    3.5.4 ATECC608A Secure ElementThe ATECC608A is a secure element from the Microchip CryptoAuthentication portfolio with advanced Elliptic CurveCryptography (ECC) capabilities. With ECDH and ECDSA being built right in, this device is ideal for the rapidlygrowing Internet of Things (IoT) market by easily supplying the full range of security, such as confidentiality, dataintegrity, and authentication to systems with MCU or MPUs running encryption/decryption algorithms. Similar to allMicrochip CryptoAuthentication products, the ATECC608A employs ultra-secure, hardware-based cryptographic keystorage and cryptographic countermeasures that eliminate any potential backdoors linked to software weaknesses.

    The ATECC608A CryptoAuthentication device on the PIC-BLE board can be used to authenticate the board withother hardware for secure IoT communication.

    Info:  7-bit I2C address: 0x58.

    Table 3-5. ATECC608A Connections

    ATECC608A Pin PIC16LF18456Pin

    Function Shared Functionality

    SDA RB2 MSSP I2C SDA MCP9844, BMA253 and mikroBUS

    SCL RB1 MSSP I2C SCL MCP9844, BMA253 and mikroBUS

    3.5.5 SST25PF040CT Serial FlashThe SST25PF040CT is a 4 Mbit Serial Flash with an extended operating voltage range and low-power consumption.

    Additional Features:• Operating Voltage Range: 2.3V to 3.6V• Active Read Current: 5 mA (typical)• Power Down Standby Current: 3 μA (typical)

    The SST25PF040CT Serial Flash is connected to the PIC16LF18456 through SPI.

    Info:  The Flash is SPI Mode 0 and Mode 3 compatible and supports clock speeds up to 40 MHz

    Table 3-6. SST25PF040CT Connections

    SST25PF040CTPin

    PIC16LF18456Pin

    Function Shared Functionality

    CS RC7 GPIO —

    SCK RC1 MSSP SPI SCK mikroBUS

    MISO RC2 MSSP SPI MISO mikroBUS

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 18

  • ...........continuedSST25PF040CTPin

    PIC16LF18456Pin

    Function Shared Functionality

    MOSI RC3 MSSP SPI MOSI mikroBUS

    3.5.6 MCP9844 Temperature SensorThe MCP9844 digital temperature sensor converts circuit board temperatures between -40°C and +125°C to a digitalword with ±1°C/±3°C (typical/maximum) accuracy.

    Additional features:• Accuracy:

    – ±0.2°C/±1°C (typical/maximum) from +75°C to +95°C– ±0.5°C/±2°C (typical/maximum) from +40°C to +125°C– ±1°C/±3°C (typical/maximum) from -40°C to +125°C

    • User selectable measurement resolution:– 0.5°C, 0.25°C, 0.125°C, 0.0625°C

    • User programmable temperature limits:– Temperature window limit– Critical temperature limit

    • User Programmable Temperature Alert Output• Operating voltage range:

    – 1.7V to 3.6V• Operating current:

    – 100 μA (typical)• Shutdown current:

    – 0.2 μA (typical)

    The MCP9844 temperature sensor is connected to the PIC16LF18456 through I2C.

    Info:  7-bit I2C address: 0x18.

    Table 3-7. MCP9844 Connections

    MCP9844 Pin PIC16LF18456Pin

    Function Shared Functionality

    SDA RB2 MSSP I2C SDA ATECC608A, BMA253 and mikroBUS

    SCL RB1 MSSP I2C SCL ATECC608A, BMA253 and mikroBUS

    3.5.7 BMA253 Acceleration SensorThe Bosch BMA253 is a low-g acceleration sensor with digital output for measurements of acceleration in threeperpendicular axes.

    Additional features:• 12-Bit sensitivity• User selectable acceleration ranges: ±2g, ±4g, ±8g, ±16g• On-chip 32 frame First-In First-Out (FIFO)• Motion triggered interrupts:

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 19

  • – New data– Any motion detection– Single/double tap sensing– Orientation recognition– Flat detection– Low/high-g detection– Inactivity detection

    • Operating voltage range: 1.62V to 3.6V• Operating current (Normal Mode): 130 μA (typical)• Shutdown current (Deep Suspend Mode): 1 μA (typical)

    The BMA253 acceleration sensor is connected to the PIC16LF18456 through I2C and a GPIO for the userconfigurable interrupt outputs.

    Info:  7-bit I2C address: 0x19

    Table 3-8. BMA253 Connections

    BMA253 Pin PIC16LF18456Pin

    Function Shared Functionality

    SDA RB2 MSSP I2C SDA MCP9844, ATECC608A and mikroBUS

    SCL RB1 MSSP I2C SCL MCP9844, ATECC608A and mikroBUS

    INT1 RA6 GPIO / EXT_INT —

    3.5.8 LEDsThere is one user LED available on the PIC-BLE board that can be controlled by either GPIO or PWM. Also, thereare two LEDs connected directly to the BLE module. The LEDs can be activated by driving their connected I/O linesto GND.

    Table 3-9. LED Connections

    LED PIC16LF18456 Pin Function Shared Functionality

    Green Data LED RA5 GPIO / CCP5 On-board debugger

    Red Error LED — Connected to BLE module RN4870

    Blue BLE LED — Connected to BLE module RN4870

    3.5.9 Mechanical SwitchThe PIC-BLE board has one mechanical switch, which is a generic user-configurable switch that will drive theconnected I/O line to ground (GND) when it is pressed. An external resistor pulls the signal high when the switch isnot pressed.

    Holding the switch during power-up can be used to put the Bluetooth module in Configuration mode. See 3.5.3 RN4870 BLE Module for more information.

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 20

  • Table 3-10. Mechanical Switch Connection

    Switch PIC16LF18456 Pin Function Shared Functionality

    SW0 RA7 GPIO / EXT_INT RN4870 and On-boarddebugger

    Info:  The SW0 signal is pulled up by an external resistor.

    3.5.10 On-Board Debugger ImplementationPIC-BLE features an on-board debugger that can be used to program and debug the PIC16LF18456 using In-CircuitSerial Programming™ (ICSP™). The on-board debugger also includes a virtual serial port (CDC) interface over UARTand debug GPIO. MPLAB® X IDE can be used as a front-end for the on-board debugger for programming anddebugging. MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO.

    3.5.10.1 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section. All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface. Hence, since thereare little contaminations of the signals, the pins can be configured to anything the user wants.

    For further information on how to use the capabilities of the on-board debugger, see 3.1 On-Board DebuggerOverview.

    Table 3-11. On-Board Debugger Connections

    PIC16LF18456Pin

    Debugger Pin Function Shared Functionality

    RB5 CDC TX EUSART RX (PIC16LF18456 RXline)

    RB4 CDC RX EUSART TX (PIC16LF18456 TXline)

    RB7 DBG0 ICSP DATA —

    RB6 DBG1 ICSP CLOCK —

    RA7 DBG2 DEBUG GPIO0 Mechanical Switch and RN4870

    MCLR DBG3 MCLR —

    PIC-BLEHardware User Guide

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 21

    https://gallery.microchip.com/packages?q=MPLAB-Data-Visualizer

  • 4. Hardware Revision History and Known IssuesThis user guide provides information about the latest available revision of the board. The following sections containinformation about known issues, a revision history of older revisions, and how older revisions differ from the latestrevision.

    4.1 Identifying Product ID and RevisionThere are two ways to find the revision and product identifier of the PIC-BLE: Either by utilizing the MPLAB® X IDEKit Window or by looking at the sticker on the bottom side of the PCB.

    By connecting PIC-BLE to a computer with MPLAB® X IDE running, the Kit Window will pop up. The first six digits ofthe serial number, listed under kit information, contain the product identifier and revision.

    Tip:  If closed, the Kit Window can be opened in MPLAB® X IDE through the menu bar Window > KitWindow.

    The same information is found on the sticker on the bottom side of the PCB. Most boards will have the identifier andrevision printed in plain text as A09-nnnn\rr, where “nnnn” is the identifier, and “rr” is the revision. Boards with limitedspace have a sticker with only a data matrix code containing the product identifier, revision, and serial number.

    The serial number string has the following format:

    "nnnnrrssssssssss"

    n = product identifier

    r = revision

    s = serial number

    The product identifier for PIC-BLE is A09-3283.

    4.2 Revision 4Revision 4 is functionally the same as revision 3, but features a RN4870 BLE module with firmware version 1.40 (partnumber RN4870-V/RM140).

    In the silkscreen, the part number of the serial flash chip is wrong. It is supposed to be SST25PF040C, but showsSST25P040C.

    4.3 Revision 3Revision 3 is the initial released revision of the board. It features a RN4870 BLE module with firmware version 1.30(part number RN4870-I/RM130).

    PIC-BLEHardware Revision History and Known Issues

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 22

  • 5. Document Revision HistoryDoc. rev. Date Comment

    B 11/2020 Document updated with the latest information. Steps describing how to downloadand install the latest demonstration firmware added to the Quick Start section.

    A 03/2020 Initial document release

    PIC-BLEDocument Revision History

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 23

  • 6. Appendix

    6.1 SchematicsFigure 6-1. PIC-BLE Target schematic

    11

    22

    33

    44

    55

    66

    77

    88

    DD

    CC

    BB

    AA

    2 of

    5

    PIC-

    BLE

    2020

    -01-

    10PI

    C-BL

    E_Ta

    rget

    _MCU

    .Sch

    Doc

    Proj

    ect T

    itle

    PCB

    Ass

    embl

    y N

    umbe

    r:PC

    BA R

    evisi

    on:

    File

    :PC

    B N

    umbe

    r:PC

    B Re

    visio

    n:

    Des

    igne

    d wi

    th

    Dra

    wn

    By:

    Mic

    roch

    ip N

    orw

    ay

    Shee

    t Titl

    eTa

    rget

    MCU

    Engi

    neer

    :TF

    A08

    -300

    33

    Size

    A3

    A09

    -328

    34

    Page

    :D

    ate:A

    ltium

    .com

    GN

    D

    100n

    C200

    1kR2

    10

    USE

    R L

    EDS

    VCC

    _TA

    RGET

    USE

    R B

    UTT

    ON

    DBG0

    CDC_

    UART

    TX RXU

    ART

    DBG1

    DBG2

    2185-108SS0CYNP1

    1 2 3 4 5 6 7 8

    J200

    2185-108SS0CYNP1

    1 2 3 4 5 6 7 8

    J201

    mik

    roBU

    S

    GN

    DG

    ND

    AN

    RST

    CS SCK

    MIS

    OM

    OSI

    +3.3

    VG

    ND

    PWM

    INT

    RX TX SCL

    SDA

    +5V

    GN

    D

    Hea

    der (

    Fem

    ale)

    TMRN48

    7010

    uF/1

    0VC2

    0210

    nFC2

    01

    330RR207 12

    4 3

    5

    KMR221G

    SW20

    01k

    R2091k

    R208

    GN

    D

    SDA

    5SC

    L6

    GND

    4

    VCC

    8

    PAD

    9

    NC1

    NC2

    NC3

    NC7

    U20

    1

    GN

    D

    GN

    D

    100kR201

    VCC

    _TA

    RGET

    VCC

    _TA

    RGET

    RB1_

    I2C_

    SCL

    RB2_

    I2C_

    SDA

    VCC

    _TA

    RGET

    GN

    D

    100n

    C204

    Cry

    ptoA

    uthe

    ntic

    atio

    nTM

    Tem

    pera

    ture

    Sen

    sor

    GN

    D

    VCC

    _TA

    RGET

    4.7kR204

    4.7kR205

    VCC

    _TA

    RGET

    VCC

    _TA

    RGET

    TP21

    1

    TP20

    3

    TP21

    0

    TP21

    2

    TP20

    8

    21

    GRE

    EN L

    EDSM

    L-P1

    2MTT

    86R

    D20

    0 RED

    LED

    SML-

    P12V

    TT86

    R

    21

    D20

    1

    Def

    ault

    I2C

    addr

    ess:

    0x18

    RC5_

    BLE_

    UA

    RT2_

    RXRC

    4_BL

    E_U

    ART

    2_TX

    RA3_

    MBU

    S_RS

    T

    RB1_I2C_SCLRB2_I2C_SDA

    RA2_

    MBU

    S_A

    INRA

    1_M

    BUS_

    INT

    Def

    ault

    I2C

    addr

    ess:

    0x58

    21

    BLU

    E LE

    DSM

    LP13

    BC8T

    T86

    D20

    2

    VCC

    _TA

    RGET

    GN

    D

    RB0_

    UA

    RT2_

    TXRB

    3_U

    ART

    2_RX

    TP21

    4

    100n

    C205

    SW0

    VBU

    S0R R2

    06+5

    V

    TP21

    3

    TP20

    9

    MCL

    R

    DATA

    ATEC

    C608

    A

    DBG3

    RB1_I2C_SCLRB2_I2C_SDA

    4.7kR203

    4.7kR202

    GN

    D

    VCC

    _TA

    RGET

    GN

    D

    RB7_

    ICSP

    DA

    TRB

    6_IC

    SPCL

    K

    MCL

    R

    RB1_I2C_SCLRB2_I2C_SDA

    RA2_MBUS_AINRA3_MBUS_RST

    RB3_UART2_RX

    RB0_UART2_TXRA

    1_M

    BUS_

    INT

    RC6_

    BLE_

    RX_I

    ND

    RB4_

    CDC_

    TXRB

    5_CD

    C_RX

    10kR200

    3-ax

    ial A

    ccel

    erat

    ion

    Sens

    or

    VCC

    _TA

    RGET

    GN

    D 100n

    C206 GN

    D

    100nC207

    GN

    D

    Alte

    rnat

    e I2

    C ad

    dres

    s: 0x

    19

    VCC

    _TA

    RGET

    RB1_I2C_SCL

    RB2_I2C_SDA

    1uF

    C203

    GN

    DPI

    C16L

    F184

    56

    RA6_

    ACC

    EL_I

    NT1

    RC7_

    FLA

    SH_C

    SG

    ND

    MCP

    9844

    SDA

    5SC

    L6

    EVEN

    T7

    GND

    4A2

    3A1

    2A0

    1VD

    D8

    EP 9

    U20

    2

    RN4870_BLE_LED

    RN48

    70_B

    LE_L

    ED

    RA6_ACCEL_INT1

    RA2 1RA3 2RA4 3RA5 4VSS 5RA7 6RA6 7

    RC0

    8RC

    19

    RC2

    10RC

    311

    RC4

    12RC

    513

    RC6

    14

    RC715

    RB4

    22RB

    523

    ICSP

    CLK/

    RB6

    24IC

    SPDA

    T/RB

    725

    MCLR

    /RE3

    26RA

    027

    RA1

    28RB321RB220

    RB018VDD17VSS16

    RB119

    PAD29

    PIC1

    6LF1

    8456

    T-I/S

    TXU

    200

    RC2_

    SPI_

    MIS

    ORC

    1_SP

    I_SC

    K

    RC3_

    SPI_

    MO

    SI

    RC0_

    SPI_

    CS

    RC2_

    SPI_

    MIS

    ORC

    1_SP

    I_SC

    K

    RC3_

    SPI_

    MO

    SI

    RC0_

    SPI_

    CS

    RC6_

    BLE_

    RX_I

    ND

    RC5_

    BLE_

    UA

    RT2_

    RXRC

    4_BL

    E_U

    ART

    2_TX

    RA0_

    BLE_

    RST

    SDO/

    ASEL

    1

    SDx

    2

    VDDI

    O3

    NC4

    INT1 5

    INT2 6

    VDD

    7GN

    DIO

    8GN

    D9

    CSB

    10

    PS11SCx12

    BMA

    253

    U20

    3

    512k

    x 8

    Ser

    ial F

    lash

    VCC

    _TA

    RGET

    GN

    D

    100n

    C208

    GN

    D

    VCC

    _TA

    RGET

    RN48

    70_E

    RR_L

    ED

    RN4870_ERR_LED

    RA4_

    MBU

    S_PW

    M

    RA4_MBUS_PWM

    RA5_DATA_LED

    RA5_DATA_LED

    BLE

    ERR

    RA7_

    SW0_

    DG

    I_FW

    TP20

    1

    RC7_FLASH_CSRC2_SPI_MISO

    RC1_SPI_SCKRC3_SPI_MOSI

    10kR212

    10k

    R211

    VCC

    _TA

    RGET

    VCC

    _TA

    RGET

    TP20

    7TP

    206

    TP20

    2TP

    204

    TP20

    5

    RA0_

    BLE_

    RST

    RN48

    70-V

    /RM

    140

    GN

    D1

    GN

    D2

    GN

    D3

    VBA

    T4

    P2_2

    5

    VD

    D_I

    O6

    VD

    D_I

    O7

    ULP

    C_O

    8

    P2_3

    9

    BK_O

    10

    P1_1

    12P1

    _016

    P3_6

    /RTS

    17

    P2_0

    /MO

    DE

    18

    P2_4

    19

    NC

    20

    RST

    21

    UA

    RT_R

    X22

    UA

    RT_T

    X23

    P3_1

    24

    P3_2

    25

    P3_3

    26

    P3_4

    27

    P3_5

    28

    P0_7

    29P0

    _230

    GN

    D31

    GN

    D32

    GN

    D33

    P2_7

    /TX

    _IN

    D11

    P1_2

    /SCL

    13

    P1_3

    /SD

    A14

    P0_0

    /CTS

    15

    M20

    0

    CE#

    1SO

    /SIO

    12

    WP#

    3VS

    S4

    VDD

    8HO

    LD#

    7SC

    K6

    SI/S

    IO0

    5

    SST2

    5PF0

    40CT

    -40I

    /NP

    U20

    4

    Mak

    e su

    re th

    at th

    e CD

    C U

    ART

    and

    ICSP

    pin

    s are

    no

    t use

    d (d

    riven

    hig

    h) w

    hen

    oper

    atin

    g in

    bat

    tery

    m

    ode

    to a

    void

    pow

    erin

    g th

    e de

    bugg

    er th

    roug

    h its

    I/O

    pin

    s (ca

    usin

    g le

    akag

    e fro

    m V

    CC_T

    ARG

    ET to

    V

    CC_D

    EBU

    GG

    ER).

    BKO

    PCO

    CTS

    RTS

    P02

    P07

    P12

    P13

    P27

    0RR213 0R R214

    RN48

    70_T

    XRN

    4870

    _RX

    RA7_SW0_DGI_FW

    RA7_SW0_DGI_FW

    RA7_

    SW0_

    DG

    I_FW

    VDD

    3VO

    UT1

    VSS

    2

    MCP

    111T

    -195

    U20

    5 N.M

    .

    GN

    D

    VCC

    _TA

    RGET

    P35

    Cros

    sing

    RX/T

    X h

    ere!

    RN48

    70_T

    XRN

    4870

    _RX

    RA7_

    SW0_

    DG

    I_FW

    PIC-BLEAppendix

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 24

  • Figure 6-2. PIC-BLE Power Schematic

    11

    22

    33

    44

    55

    66

    77

    88

    DD

    CC

    BB

    AA

    3 of

    5

    PIC-

    BLE

    2020

    -01-

    10PI

    C-BL

    E_Po

    wer

    .Sch

    Doc

    Proj

    ect T

    itle

    PCB

    Ass

    embl

    y N

    umbe

    r:PC

    BA R

    evisi

    on:

    File

    :PC

    B N

    umbe

    r:PC

    B Re

    visio

    n:

    Des

    igne

    d wi

    th

    Dra

    wn

    By:

    Mic

    roch

    ip N

    orw

    ay

    Shee

    t Titl

    ePo

    wer

    Engi

    neer

    :TF

    A08

    -300

    33

    Size

    A3

    A09

    -328

    34

    Page

    :D

    ate:A

    ltium

    .com

    VCC

    _P3V

    3

    GN

    D

    4.7uF

    C300

    GN

    D

    560p

    C301

    SW4

    PGND 2

    VOUT

    7

    SNS

    10EN

    9VO

    UT8

    SW5

    VIN

    1

    AGND 12

    EP 13

    SW3

    SW6

    FB/C

    FF11

    MIC

    3305

    0-SY

    HL

    U30

    1

    100kR305

    10uF

    /10V

    C302

    GN

    D

    GN

    D

    VCC

    _DEB

    UG

    GER

    VCC

    _TA

    RGET

    12CH7410-2032LF

    J300

    VBU

    S

    MIC

    9416

    5

    VIN

    B2VO

    UTA1

    VIN

    A2

    ENC2

    GND

    C1VO

    UTB1

    U30

    0

    MIC

    9416

    5

    VIN

    B2VO

    UTA1

    VIN

    A2

    ENC2

    GND

    C1VO

    UTB1

    U30

    2

    GN

    D

    GN

    D

    GN

    D

    GN

    D

    2MR3

    00

    VBA

    T0R

    R301 0R

    R304

    12

    1125

    -110

    2S0S

    113R

    1J3

    01

    N.M

    .

    2

    1

    4SS

    G

    DS

    3

    MIC

    9405

    0Q

    300

    0RR303

    1kR306

    P3V

    3_EN

    ABL

    EVBA

    T_O

    UT

    21

    NSR

    20F3

    0NX

    T5G

    D30

    0

    GN

    D1kR308

    2.2k

    R307

    5.6kR302

    VBU

    Smin

    = 4

    .4V

    -> P

    3V3_

    ENA

    BLE

    = 3.

    16V

    , V

    BUSm

    ax =

    5.2

    5V ->

    P3V

    3_EN

    ABL

    E =

    3.77

    V

    POW

    ER

    MIC

    3305

    0:Vi

    n: 2

    .5V

    to 5

    .5V

    Vout

    : Fix

    ed 3

    .3V

    Imax

    : 600

    mA

    PIC-BLEAppendix

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 25

  • Figure 6-3. PIC-BLE Debugger Schematic

    11

    22

    33

    44

    55

    66

    77

    88

    DD

    CC

    BB

    AA

    4 of

    5

    PIC-

    BLE

    2020

    -01-

    10PI

    C-BL

    E_D

    ebug

    ger.S

    chD

    oc

    Proj

    ect T

    itle

    PCB

    Ass

    embl

    y N

    umbe

    r:PC

    BA R

    evisi

    on:

    File

    :PC

    B N

    umbe

    r:PC

    B Re

    visio

    n:

    Des

    igne

    d wi

    th

    Dra

    wn

    By:

    Mic

    roch

    ip N

    orw

    ay

    Shee

    t Titl

    eD

    ebug

    ger

    Engi

    neer

    :TF

    A08

    -300

    33

    Size

    A3

    A09

    -328

    34

    Page

    :D

    ate:A

    ltium

    .com

    DEB

    UG

    GER

    USB

    MIC

    RO

    -B C

    ON

    NEC

    TOR

    GN

    D

    USB

    D_P

    USB

    D_N

    100n

    C102

    100n

    C103

    RX TXU

    ART

    CDC_

    UART

    1kR1

    00V

    CC_D

    EBU

    GG

    ER

    SRST

    STAT

    US_

    LED

    SHIE

    LD

    VBU

    S

    VCC

    _DEB

    UG

    GER

    GN

    D

    TP10

    0

    Testp

    oint

    Arra

    y

    12

    34

    56

    78

    910

    TCK

    TDO

    TMS

    Vsu

    pTD

    IG

    ND

    TRST

    SRST

    VTr

    efG

    ND

    J100

    DBG0

    21

    GRE

    EN L

    EDSM

    L-P1

    2MTT

    86R

    D10

    0

    VBUS

    1D-

    2D+

    3

    GND

    5SH

    IELD

    16

    SHIE

    LD2

    7

    ID4

    SHIE

    LD3

    8SH

    IELD

    49 M

    U-M

    B014

    2AB2

    -269

    J101

    PAD

    33

    PA00

    1PA

    012

    PA02

    3PA

    034

    GND 10VDDANA 9

    PA04

    5PA

    056

    PA06

    7PA

    078

    PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

    PA16

    17PA

    1718

    PA18

    19PA

    1920

    PA22

    21US

    B_SO

    F/PA

    2322

    USB_

    DM/P

    A24

    23US

    B_DP

    /PA2

    524

    PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLK/PA3031 SWDIO/PA3132

    SAM

    D21

    E18A

    -MU

    TU

    100

    USB

    D_P

    USB

    D_N

    GN

    D

    1uC101

    VCC

    _MCU

    _CO

    RE

    VCC

    _DEB

    UG

    GER

    GN

    D

    GN

    D

    GN

    D

    DBG2

    S1_0

    _TX

    S0_2

    _TX

    DA

    CV

    TG_A

    DC

    RESE

    RVED

    S0_3

    _CLK

    DBG0_CTRL

    CDC_

    TX_C

    TRL

    BOO

    T

    DEB

    UG

    GER

    PO

    WER

    /STA

    TUS

    LED

    1kR1

    04

    DBG1

    DBG1_CTRL

    REG_ENABLE

    100kR101

    100kR102

    SWCL

    K

    100kR109 G

    ND

    SRST

    DEB

    UG

    GER

    TES

    TPO

    INT DBG2_CTRL

    CDC_

    RX_C

    TRL

    100kR106

    SWCL

    K

    DBG2_GPIO

    VBUS_ADC

    VTG_ADC

    ID_S

    YS

    VTG

    _EN

    VBU

    S_A

    DC

    SWD

    IO

    SWD

    IO

    GN

    DV

    OFF

    VCC

    _DEB

    UG

    GER

    330R

    R107330R

    R105330R

    R103

    Cros

    sing

    RX/T

    X h

    ere!

    DBG

    0

    DBG

    2

    S1_1

    _RX

    S0_0

    _RX

    DBG

    1

    DBG3

    GN

    D

    DBG

    3_CT

    RL1

    23

    DM

    N65

    D8L

    FBQ

    100

    1kR1

    08

    DBG

    3_CT

    RL

    DBG

    3 O

    PEN

    DR

    AIN

    Sign

    al

    DBG

    0

    DBG

    1

    DBG

    2

    DBG

    3

    ICSP

    Inte

    rface

    DAT

    CLK

    GPI

    O

    MCL

    R

    CD

    C T

    X

    CD

    C R

    X

    UA

    RT R

    X

    UA

    RT T

    X

    TAR

    GET

    VC

    C-

    MC3

    6213

    F100

    Targ

    et a

    nd d

    ebug

    ger

    VCC

    is th

    e sa

    me.

    VCC

    _VBU

    S

    330R

    R111330R

    R110

    1

    23

    DM

    N65

    D8L

    FBQ

    101

    VCC

    _DEB

    UG

    GER

    VCC

    _DEB

    UG

    GER

    100kR112

    GN

    D

    VCC

    _DEB

    UG

    GER

    100k

    R113

    DEB

    UG

    GER

    Prog

    ram

    min

    g co

    nnec

    tor

    for f

    acto

    ry p

    rogr

    amm

    ing

    of th

    e D

    ebug

    ger

    PIC-BLEAppendix

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 26

  • 6.2 Assembly DrawingFigure 6-4. PIC-BLE Assembly Drawing Top

    ®

    ®

    E

    PIC-BLE

    PAC10101 PAC10102 COC101

    PAC10201 PAC10202 COC102

    PAC10301

    PAC10302 COC103

    PAC20001 PAC20002 COC200

    PAC20102 PAC20101 COC201

    PAC20201 PAC20202 COC202

    PAC20302

    PAC20301 COC203

    PAC20401 PAC20402 COC204

    PAC20501

    PAC20502 COC205

    PAC20602 PAC20601 COC206

    PAC20702 PAC20701 COC207

    PAC20802 PAC20801 COC208

    PAC30001 PAC30002 COC300 PAC30102 PAC30101 COC301

    PAC30201

    PAC30202 COC302

    PAD10001 PAD10002 COD100

    PAD20001 PAD20002 COD200 PAD20101 PAD20102 COD201 PAD20201 PAD20202 COD202

    PAD30002 PAD30001 COD300

    PAF10001

    PAF10002 COF100

    PAJ10001

    PAJ10002

    PAJ10003

    PAJ10004

    PAJ10005

    PAJ10006 COJ100

    PAJ10106

    PAJ10107 PAJ10109

    PAJ10108 PAJ101010

    PAJ101011 PAJ10105

    PAJ10104

    PAJ10103

    PAJ10102

    PAJ10101

    PAJ10100

    COJ101

    PAJ20001 PAJ20002 PAJ20004 PAJ20003 PAJ20007 PAJ20008 PAJ20006 PAJ20005 PAJ20000 COJ200

    PAJ20101 PAJ20102 PAJ20104 PAJ20103 PAJ20107 PAJ20108 PAJ20106 PAJ20105 PAJ20100 COJ201

    PAJ30002 PAJ30001 COJ300

    PAJ30101 PAJ30102 PAJ30100 COJ301 COLABEL1

    PAM20003

    PAM200031

    PAM20008 PAM20007 PAM200014 PAM200013 PAM20006

    PAM200021

    PAM200020

    PAM200010 PAM20004

    PAM200030

    PAM20005 PAM200011 PAM20009

    PAM200024 PAM200028 PAM200029

    PAM200012

    PAM200025 PAM200026 PAM200027

    PAM200016

    PAM200019 PAM200018 PAM200017

    PAM200015

    PAM200023 PAM200022 PAM200032 PAM200033

    PAM20002 PAM20001

    COM200

    PAQ10001 PAQ10002 PAQ10003 PAQ10000 COQ100

    PAQ10101 PAQ10102

    PAQ10103 PAQ10100

    COQ101

    PAQ30001 PAQ30002

    PAQ30003 PAQ30004

    COQ300

    PAR10002 PAR10001 COR100

    PAR10102

    PAR10101 COR101 PAR10202 PAR10201 COR102 PAR10302 PAR10301 COR103

    PAR10401

    PAR10402 COR104 PAR10502 PAR10501 COR105

    PAR10601 PAR10602 COR106

    PAR10701

    PAR10702 COR107

    PAR10802 PAR10801 COR108

    PAR10902 PAR10901 COR109

    PAR11002

    PAR11001 COR110 PAR11102 PAR11101 COR111

    PAR11202 PAR11201 COR112

    PAR11302 PAR11301 COR113

    PAR20002 PAR20001 COR200 PAR20101

    PAR20102 COR201

    PAR20201 PAR20202 COR202

    PAR20301

    PAR20302 COR203

    PAR20402 PAR20401 COR204 PAR20502 PAR20501 COR205

    PAR20602 PAR20601 COR206

    PAR20701 PAR20702 COR207

    PAR20802 PAR20801 COR208 PAR20901 PAR20902 COR209 PAR21002 PAR21001 COR210

    PAR21101

    PAR21102 COR211

    PAR21202 PAR21201 COR212

    PAR21302 PAR21301 COR213

    PAR21402 PAR21401 COR214

    PAR30002

    PAR30001 COR300

    PAR30101 PAR30102 COR301

    PAR30202 PAR30201 COR302

    PAR30301 PAR30302 COR303

    PAR30401

    PAR30402 COR304

    PAR30501 PAR30502 COR305

    PAR30601

    PAR30602 COR306 PAR30701 PAR30702 COR307 PAR30802 PAR30801 COR308

    PASW20003 PASW20004

    PASW20001 PASW20002

    PASW20005 COSW200

    PATP10001 COTP100

    PATP20101 COTP201 PATP20201 COTP202 PATP20301 COTP203 PATP20401 COTP204 PATP20501 COTP205 PATP20601 COTP206 PATP20701 COTP207

    PATP20801 COTP208 PATP20901 COTP209 PATP21001 COTP210 PATP21101 COTP211 PATP21201 COTP212 PATP21301 COTP213 PATP21401 COTP214

    PAU10009

    PAU10008 PAU10007 PAU10006 PAU10005 PAU10004 PAU10003 PAU10002 PAU10001

    PAU100010

    PAU100011

    PAU100012

    PAU100013

    PAU100014

    PAU100015 PAU100016

    PAU100017 PAU100018 PAU100019 PAU100020 PAU100021 PAU100022 PAU100023 PAU100024 PAU100025 PAU100026

    PAU100027

    PAU100028 PAU100029

    PAU100030

    PAU100031 PAU100032

    PAU100033 COU100

    PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023

    PAU200022

    PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014

    PAU200013

    PAU200012 PAU200011 PAU200010 PAU20009 PAU20008

    PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001 PAU20000 COU200

    PAU20109 PAU20101 PAU20102

    PAU20103 PAU20104 PAU20105

    PAU20106

    PAU20107

    PAU20108

    COU201

    PAU20209 PAU20201 PAU20202

    PAU20204 PAU20203 PAU20206

    PAU20205

    PAU20207 PAU20208

    PAU20200

    COU202

    PAU20306 PAU20305

    PAU20303 PAU20304

    PAU20307 PAU20308 PAU20309

    PAU20302 PAU20301

    PAU203010

    PAU203011 PAU203012 COU203

    PAU20400 PAU20408

    PAU20407 PAU20406 PAU20405 PAU20404

    PAU20403 PAU20402

    PAU20401

    COU204 PAU20501 PAU20502

    PAU20503

    COU205 PAU3000C2 PAU3000C1 PAU3000B2 PAU3000B1

    PAU3000A2 PAU3000A1 COU300

    PAU30101

    PAU30102 PAU30103 PAU30104

    PAU30105 PAU30106

    PAU301012

    PAU301011 PAU301010 PAU30109

    PAU30108 PAU30107

    PAU301013 COU301

    PAU3020C2 PAU3020C1

    PAU3020B2 PAU3020B1

    PAU3020A2 PAU3020A1

    COU302

    Figure 6-5. PIC-BLE Assembly Drawing Bottom

    LAB

    EL

    PC

    BAc

    t

    b

    R

    PAC10101 PAC10102 COC101

    PAC10201 PAC10202 COC102

    PAC10301

    PAC10302 COC103

    PAC20001 PAC20002 COC200

    PAC20102 PAC20101 COC201

    PAC20201 PAC20202 COC202

    PAC20302

    PAC20301 COC203

    PAC20401 PAC20402 COC204

    PAC20501

    PAC20502 COC205

    PAC20602 PAC20601 COC206

    PAC20702 PAC20701 COC207

    PAC20802 PAC20801 COC208

    PAC30001 PAC30002 COC300 PAC30102 PAC30101 COC301

    PAC30201

    PAC30202 COC302

    PAD10001 PAD10002 COD100

    PAD20001 PAD20002 COD200 PAD20101 PAD20102 COD201 PAD20201 PAD20202 COD202

    PAD30002 PAD30001 COD300

    PAF10001

    PAF10002 COF100

    PAJ10001

    PAJ10002

    PAJ10003

    PAJ10004

    PAJ10005

    PAJ10006 COJ100

    PAJ10106

    PAJ10107 PAJ10109

    PAJ10108 PAJ101010

    PAJ101011 PAJ10105

    PAJ10104

    PAJ10103

    PAJ10102

    PAJ10101

    PAJ10100

    COJ101

    PAJ20001 PAJ20002 PAJ20004 PAJ20003 PAJ20007 PAJ20008 PAJ20006 PAJ20005 PAJ20000 COJ200

    PAJ20101 PAJ20102 PAJ20104 PAJ20103 PAJ20107 PAJ20108 PAJ20106 PAJ20105 PAJ20100 COJ201

    PAJ30002 PAJ30001 COJ300

    PAJ30101 PAJ30102 PAJ30100 COJ301 COLABEL1

    PAM20003

    PAM200031

    PAM20008 PAM20007 PAM200014 PAM200013 PAM20006

    PAM200021

    PAM200020

    PAM200010 PAM20004

    PAM200030

    PAM20005 PAM200011 PAM20009

    PAM200024 PAM200028 PAM200029

    PAM200012

    PAM200025 PAM200026 PAM200027

    PAM200016

    PAM200019 PAM200018 PAM200017

    PAM200015

    PAM200023 PAM200022 PAM200032 PAM200033

    PAM20002 PAM20001

    COM200

    PAQ10001 PAQ10002 PAQ10003 PAQ10000 COQ100

    PAQ10101 PAQ10102

    PAQ10103 PAQ10100 COQ101

    PAQ30001 PAQ30002

    PAQ30003 PAQ30004

    COQ300

    PAR10002 PAR10001 COR100

    PAR10102

    PAR10101 COR101 PAR10202 PAR10201 COR102 PAR10302 PAR10301 COR103

    PAR10401

    PAR10402 COR104 PAR10502 PAR10501 COR105

    PAR10601 PAR10602 COR106

    PAR10701

    PAR10702 COR107

    PAR10802 PAR10801 COR108

    PAR10902 PAR10901 COR109

    PAR11002

    PAR11001 COR110 PAR11102 PAR11101 COR111

    PAR11202 PAR11201 COR112

    PAR11302 PAR11301 COR113

    PAR20002 PAR20001 COR200 PAR20101

    PAR20102 COR201

    PAR20201 PAR20202 COR202

    PAR20301

    PAR20302 COR203

    PAR20402 PAR20401 COR204 PAR20502 PAR20501 COR205

    PAR20602 PAR20601 COR206

    PAR20701 PAR20702 COR207

    PAR20802 PAR20801 COR208 PAR20901 PAR20902 COR209 PAR21002 PAR21001 COR210

    PAR21101

    PAR21102 COR211

    PAR21202 PAR21201 COR212

    PAR21302 PAR21301 COR213

    PAR21402 PAR21401 COR214

    PAR30002

    PAR30001 COR300

    PAR30101 PAR30102 COR301

    PAR30202 PAR30201 COR302

    PAR30301 PAR30302 COR303

    PAR30401

    PAR30402 COR304

    PAR30501 PAR30502 COR305

    PAR30601

    PAR30602 COR306 PAR30701 PAR30702 COR307 PAR30802 PAR30801 COR308

    PASW20003 PASW20004

    PASW20001 PASW20002

    PASW20005 COSW200

    PATP10001 COTP100

    PATP20101 COTP201 PATP20201 COTP202 PATP20301 COTP203 PATP20401 COTP204 PATP20501 COTP205 PATP20601 COTP206 PATP20701 COTP207

    PATP20801 COTP208 PATP20901 COTP209 PATP21001 COTP210 PATP21101 COTP211 PATP21201 COTP212 PATP21301 COTP213 PATP21401 COTP214

    PAU10009

    PAU10008 PAU10007 PAU10006 PAU10005 PAU10004 PAU10003 PAU10002 PAU10001

    PAU100010

    PAU100011

    PAU100012

    PAU100013

    PAU100014

    PAU100015 PAU100016

    PAU100017 PAU100018 PAU100019 PAU100020 PAU100021 PAU100022 PAU100023 PAU100024 PAU100025 PAU100026

    PAU100027

    PAU100028 PAU100029

    PAU100030

    PAU100031 PAU100032

    PAU100033 COU100

    PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023

    PAU200022

    PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014

    PAU200013

    PAU200012 PAU200011 PAU200010 PAU20009 PAU20008

    PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001 PAU20000 COU200

    PAU20109 PAU20101 PAU20102

    PAU20103 PAU20104 PAU20105

    PAU20106

    PAU20107

    PAU20108

    COU201

    PAU20209 PAU20201 PAU20202

    PAU20204 PAU20203 PAU20206

    PAU20205

    PAU20207 PAU20208

    PAU20200

    COU202

    PAU20306 PAU20305

    PAU20303 PAU20304

    PAU20307 PAU20308 PAU20309

    PAU20302 PAU20301

    PAU203010

    PAU203011 PAU203012 COU203

    PAU20400 PAU20408

    PAU20407 PAU20406 PAU20405 PAU20404

    PAU20403 PAU20402

    PAU20401

    COU204 PAU20501 PAU20502

    PAU20503

    COU205 PAU3000C2 PAU3000C1 PAU3000B2 PAU3000B1

    PAU3000A2 PAU3000A1 COU300

    PAU30101

    PAU30102 PAU30103 PAU30104

    PAU30105 PAU30106

    PAU301012

    PAU301011 PAU301010 PAU30109

    PAU30108 PAU30107

    PAU301013 COU301

    PAU3020C2 PAU3020C1

    PAU3020B2 PAU3020B1

    PAU3020A2 PAU3020A1 COU302

    PIC-BLEAppendix

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 27

  • The Microchip Website

    Microchip provides online support via our website at www.microchip.com/. This website is used to make files andinformation easily available to customers. Some of the content available includes:

    • Product Support – Data sheets and errata, application notes and sample programs, design resources, user’sguides and hardware support documents, latest software releases and archived software

    • General Technical Support – Frequently Asked Questions (FAQs), technical support requests, onlinediscussion groups, Microchip design partner program member listing

    • Business of Microchip – Product selector and ordering guides, latest Microchip press releases, listing ofseminars and events, listings of Microchip sales offices, distributors and factory representatives

    Product Change Notification Service

    Microchip’s product change notification service helps keep customers current on Microchip products. Subscribers willreceive email notification whenever there are changes, updates, revisions or errata related to a specified productfamily or development tool of interest.

    To register, go to www.microchip.com/pcn and follow the registration instructions.

    Customer Support

    Users of Microchip products can receive assistance through several channels:

    • Distributor or Representative• Local Sales Office• Embedded Solutions Engineer (ESE)• Technical Support

    Customers should contact their distributor, representative or ESE for support. Local sales offices are also available tohelp customers. A listing of sales offices and locations is included in this document.

    Technical support is available through the website at: www.microchip.com/support

    Microchip Devices Code Protection Feature

    Note the following details of the code protection feature on Microchip devices:

    • Microchip products meet the specifications contained in their particular Microchip Data Sheet.• Microchip believes that its family of products is secure when used in the intended manner and under normal

    conditions.• There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

    of the Microchip devices. We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchip’s Data Sheets. Attempts to breach these codeprotection features, most likely, cannot be accomplished without violating Microchip’s intellectual property rights.

    • Microchip is willing to work with any customer who is concerned about the integrity of its code.• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code. Code

    protection does not mean that we are guaranteeing the product is “unbreakable.” Code protection is constantlyevolving. 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 suefor relief under that Act.

    PIC-BLE

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 28

    http://www.microchip.com/http://www.microchip.com/pcnhttp://www.microchip.com/support

  • Legal Notice

    Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts. Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates. It is your responsibility to ensure that your application meets with your specifications.

    THIS INFORMATION IS PROVIDED BY MICROCHIP “AS IS”. MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OROTHERWISE, RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION, QUALITY, OR PERFORMANCE.

    IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL ORCONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW,MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION. 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, orexpenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectualproperty rights unless otherwise stated.

    Trademarks

    The Microchip name and logo, the Microchip logo, Adaptec, AnyRate, AVR, AVR logo, AVR Freaks, BesTime,BitCloud, chipKIT, chipKIT logo, CryptoMemory, CryptoRF, dsPIC, FlashFlex, flexPWR, HELDO, IGLOO, JukeBlox,KeeLoq, Kleer, LANCheck, LinkMD, maXStylus, maXTouch, MediaLB, megaAVR, Microsemi, Microsemi logo, MOST,MOST logo, MPLAB, OptoLyzer, PackeTime, PIC, picoPower, PICSTART, PIC32 logo, PolarFire, Prochip Designer,QTouch, SAM-BA, SenGenuity, SpyNIC, SST, SST Logo, SuperFlash, Symmetricom, SyncServer, Tachyon,TimeSource, tinyAVR, UNI/O, Vectron, and XMEGA are registered trademarks of Microchip Technology Incorporatedin the U.S.A. and other countries.

    AgileSwitch, APT, ClockWorks, The Embedded Control Solutions Company, EtherSynch, FlashTec, Hyper SpeedControl, HyperLight Load, IntelliMOS, Libero, motorBench, mTouch, Powermite 3, Precision Edge, ProASIC, ProASICPlus, ProASIC Plus logo, Quiet-Wire, SmartFusion, SyncWorld, Temux, TimeCesium, TimeHub, TimePictra,TimeProvider, WinPath, and ZL are registered trademarks of Microchip Technology Incorporated in the U.S.A.

    Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, Augmented Switching,BlueSky, BodyCom, CodeGuard, CryptoAuthentication, CryptoAutomotive, CryptoCompanion, CryptoController,dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, Espresso T1S, EtherGREEN, IdealBridge, In-Circuit Serial Programming, ICSP, INICnet, Intelligent Paralleling, Inter-Chip Connectivity, JitterBlocker, maxCrypto,maxView, memBrain, Mindi, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach,Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, PowerSmart, PureSilicon, QMatrix, REAL ICE,Ripple Blocker, RTAX, RTG4, SAM-ICE, Serial Quad I/O, simpleMAP, SimpliPHY, SmartBuffer, SMART-I.S., storClad,SQI, SuperSwitcher, SuperSwitcher II, Switchtec, SynchroPHY, Total Endurance, TSHARC, USBCheck, VariSense,VectorBlox, VeriPHY, ViewSpan, WiperLock, XpressConnect, and ZENA are trademarks of Microchip TechnologyIncorporated in the U.S.A. and other countries.

    SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.

    The Adaptec logo, Frequency on Demand, Silicon Storage Technology, and Symmcom are registered trademarks ofMicrochip Technology Inc. in other countries.

    GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of MicrochipTechnology Inc., in other countries.

    All other trademarks mentioned herein are property of their respective companies.© 2020, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.

    ISBN: 978-1-5224-7078-6

    PIC-BLE

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 29

  • Quality Management SystemFor information regarding Microchip’s Quality Management Systems, please visit www.microchip.com/quality.

    PIC-BLE

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 30

    http://www.microchip.com/quality

  • AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPECorporate Office2355 West Chandler Blvd.Chandler, AZ 85224-6199Tel: 480-792-7200Fax: 480-792-7277Technical Support:www.microchip.com/supportWeb Address:www.microchip.comAtlantaDuluth, GATel: 678-957-9614Fax: 678-957-1455Austin, TXTel: 512-257-3370BostonWestborough, MATel: 774-760-0087Fax: 774-760-0088ChicagoItasca, ILTel: 630-285-0071Fax: 630-285-0075DallasAddison, TXTel: 972-818-7423Fax: 972-818-2924DetroitNovi, MITel: 248-848-4000Houston, TXTel: 281-894-5983IndianapolisNoblesville, INTel: 317-773-8323Fax: 317-773-5453Tel: 317-536-2380Los AngelesMission Viejo, CATel: 949-462-9523Fax: 949-462-9608Tel: 951-273-7800Raleigh, NCTel: 919-844-7510New York, NYTel: 631-435-6000San Jose, CATel: 408-735-9110Tel: 408-436-4270Canada - TorontoTel: 905-695-1980Fax: 905-695-2078

    Australia - SydneyTel: 61-2-9868-6733China - BeijingTel: 86-10-8569-7000China - ChengduTel: 86-28-8665-5511China - ChongqingTel: 86-23-8980-9588China - DongguanTel: 86-769-8702-9880China - GuangzhouTel: 86-20-8755-8029China - HangzhouTel: 86-571-8792-8115China - Hong Kong SARTel: 852-2943-5100China - NanjingTel: 86-25-8473-2460China - QingdaoTel: 86-532-8502-7355China - ShanghaiTel: 86-21-3326-8000China - ShenyangTel: 86-24-2334-2829China - ShenzhenTel: 86-755-8864-2200China - SuzhouTel: 86-186-6233-1526China - WuhanTel: 86-27-5980-5300China - XianTel: 86-29-8833-7252China - XiamenTel: 86-592-2388138China - ZhuhaiTel: 86-756-3210040

    India - BangaloreTel: 91-80-3090-4444India - New DelhiTel: 91-11-4160-8631India - PuneTel: 91-20-4121-0141Japan - OsakaTel: 81-6-6152-7160Japan - TokyoTel: 81-3-6880- 3770Korea - DaeguTel: 82-53-744-4301Korea - SeoulTel: 82-2-554-7200Malaysia - Kuala LumpurTel: 60-3-7651-7906Malaysia - PenangTel: 60-4-227-8870Philippines - ManilaTel: 63-2-634-9065SingaporeTel: 65-6334-8870Taiwan - Hsin ChuTel: 886-3-577-8366Taiwan - KaohsiungTel: 886-7-213-7830Taiwan - TaipeiTel: 886-2-2508-8600Thailand - BangkokTel: 66-2-694-1351Vietnam - Ho Chi MinhTel: 84-28-5448-2100

    Austria - WelsTel: 43-7242-2244-39Fax: 43-7242-2244-393Denmark - CopenhagenTel: 45-4485-5910Fax: 45-4485-2829Finland - EspooTel: 358-9-4520-820France - ParisTel: 33-1-69-53-63-20Fax: 33-1-69-30-90-79Germany - GarchingTel: 49-8931-9700Germany - HaanTel: 49-2129-3766400Germany - HeilbronnTel: 49-7131-72400Germany - KarlsruheTel: 49-721-625370Germany - MunichTel: 49-89-627-144-0Fax: 49-89-627-144-44Germany - RosenheimTel: 49-8031-354-560Israel - Ra’ananaTel: 972-9-744-7705Italy - MilanTel: 39-0331-742611Fax: 39-0331-466781Italy - PadovaTel: 39-049-7625286Netherlands - DrunenTel: 31-416-690399Fax: 31-416-690340Norway - TrondheimTel: 47-72884388Poland - WarsawTel: 48-22-3325737Romania - BucharestTel: 40-21-407-87-50Spain - MadridTel: 34-91-708-08-90Fax: 34-91-708-08-91Sweden - GothenbergTel: 46-31-704-60-40Sweden - StockholmTel: 46-8-5090-4654UK - WokinghamTel: 44-118-921-5800Fax: 44-118-921-5820

    Worldwide Sales and Service

    © 2020 Microchip Technology Inc. User Guide DS50002963B-page 31

    http://www.microchip.com/supporthttp://www.microchip.com

    PrefaceTable of Contents1. Introduction1.1. Features1.2. Board Overview

    2. Getting Started2.1. Quick Start2.2. Design Documentation and Relevant Links

    3. Hardware User Guide3.1. On-Board De