• GAP, GATT, SM, L2CAP and integrated public
profiles
• Create custom services using command API
• Microchip Low Energy Data Protocol (MLDP) for
streaming data applications
• Software configurable role as peripheral or central, client or server
• Compact form factor 11.5 x 19.5 mm
• Low-power consumption
• UART interface, GPIO, ADC
• 64 KB internal serial flash
• Castellated SMT pads for easy and reliable PCB
mounting
• Environmentally friendly, RoHS compliant
• Certifications: FCC, IC, CE, QDID
• Device Firmware Upgrade (DFU)
Description
Microchip’s RN4020 Bluetooth Low Energy Module
provides a highly integrated solution for delivering low
power Bluetooth 4.1 solu tions. The advanced command interface offers rapid time to market.
The RN-4020 module complies with Bluetooth specification version 4.1. It integrates RF, a baseband controller, command API processor, making it a compl ete
Bluetooth Low Energy Solution.
The RN4020 can be use d with either low cost microcontroller for intelligent Bluetooth Low Energy applications. For simpl e sensor ap plications, the RN4020
internal scripting capabilities enable basic functions to
be implemented without the need for external host
MCU or software development tools.
6.0ASCII Command API .................................................................................................................................................................... 9
Appendix A: Revision History ............................................................................................................................................................... 21
The Microchip Web Site ....................................................................................................................................................................... 23
Customer Support ................................................................................................................................................................................ 23
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip
products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and
enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via
E-mail at docerrors@microchip.com. We welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page.
The last character of the literature number is the version number, (e.g., DS30000000A is version A of document DS30000000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site; http://www.microchip.com
• Your local Microchip sales office (see last page)
When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
Customer Notification System
Register on our web site at www.microchip.com to receive the most current information on all of our products.
DSXXXXXXXXA-page 2 2014 Microchip Technology Inc.
1.0DEVICE OVERVIEW
DRAFT
FIGURE 1-1:RN4020 TOP VIEW
Figure 1-2 shows the module’s pinout and
Table 1-1 describes the pins.
1GNDGroundGround
2AIO2Bi-directional with programmable analog IO 1.65V input, 1.35V out, and 30mA max out
3AIO1Bi-directional with programmable analog IO 1.65V input, 1.35V out, and 30mA max out
4AIO0Bi-directional with programmable analog IO 1.65V input, 1.35V out, and 30mA max out
5UART TXUART TXOutput from RN4020
6UART RXUART RXInput to RN4020
7WAKE-SWDeep Sleep Wake; active high to wake
module from deep sleep
8CMD/DATACommand or Data – In Command , UART
traffic is sent to command interpreter, other
maybe routed to Microchip Serial Data service.
9GNDGroundGround
10SPI-CLK
GPIO[1]
11SPI-CS#
GPIO[2]
12SPI-MOSI
GPIO[3]
13SPI-MISO
GPIO[4]
14CTS
GPIO[6]
15WAKE-HWHardware wake from Hibernate or Dormant
16GNDGroundGround
17SPI/PIO
18RTS
GPIO[5]
19ADVCONN
GPIO[7]
20RSVDDo not connect. Factory diagnosticsNC
SPI-CLK for diagnostics and factory calibration if pin 17 asserted. Default state is output: Active Low indicates module is
connected to remote device. High level indicates disconnected state. Configurable as
GPIO[1] via software command.
SPI-CS# for diagnostics and factory calibration if pin 17 asserted. Default state is output. Active High indicates module has a
pending event. Low level indicates no
events. Event only triggered in DATA , pin 8
is high. Configurable as GPIO[2] via software command.
SPI-MOSI for diagnostics and factory calibration if pin 17 asserted. Default state is
output. Active High indicates module is
awake and active. Low level indicates a
sleep state. Configurable as GPIO[3] via
software command.
SPI-MISO for diagnostics and factory calibration if pin 17 asserted. Configurable as
GPIO[4] via software command.
Reserved for CTS if hardware flow control is
on UART. Configurable as GPIO[6] if hardware flow control is disabled.
state
SPI/PIO for pins 10-13, Active HighInput with internal pull down; selects SPI on 10-
Reserved for RTS if hardware flow control
on UART. Configurable as GPIO[5] if hardware flow control disable
Active Low; In Peripheral the input put
module in advertising state (discoverable
and open for connection). In Central , initiates connect to stored address.
Input; weak pull down
Input; Active High to enter Command
• SPI-CLK
• Connected Status (Green LED)
• GPIO[1]
• SPI-CS#
• Event Pending (Red LED)
• GPIO[2]
• SPI-CLK
• Wake Status (Blue LED)
• GPIO[3]
• SPI-CLK
• GPIO[4]
• CTS (input)
• GPIO[6]
Active High; internal pull down
13
• RTS (output)
• GPIO[5]
Initiate Advertising state or connect to stored
address
DSXXXXXXXXA-page 4 2014 Microchip Technology Inc.
TABLE 1-1:PIN DESCRIPTION (CONTINUED)
DRAFT
PinSymbolDescriptionFunction
21RSVDDo not connect. Factory diagnosticsNC
22RSVDDo not connect. Factory diagnosticsNC
23VDDSupply voltage: 2.0 to 4.2VSupply Voltage, 2.0 to 4.2
24GNDGroundGround
RN4020
2.0GENERAL SPECIFICATIONS
Table 2-1 provides the general specifications for the
module. Ta bl e 2 -2 , Ta bl e 2 -3 , and Table 2-4 provide
the module’s weight, dimensions, electrical characteristics, and current consumption.
Figure 3-1 illustrates the interface between PIC micro-
controller and RN4020 module. The minimum interface
consists of UART and WAKE HW line. This enables the
microcontroller to communi cate with RN 4020 module
using ASCII comman d API. T he command API is
described in Sec XX.
3.1CTS/RTS Hardware Flow Control
For customer applications using the Microch ip Low
Energy Data Protocol (MLEDP), Pin 8 (CMD/DATA) is
required. CTS/RTS hardware control is also highly recommended for this service to avoid buffer overruns.
3.2Microchip Low Energy Data
Protocol (MLDP)
The Microchip Low En ergy Data Protocol is a private
BTLE service that provides a 20kbps serial data transport over Bluetooth Low Energy on the RN4020. Pin 8
(CMD/DATA) is required. CTS/RTS hardware control is
also highly recommended for this service to avoid data
loss.
Refer to “ RN4020 Command Reference”, for more
information on how to configure the MLDP service
mandatory for DFU over UART.
DSXXXXXXXXA-page 6 2014 Microchip Technology Inc.
RN4020
DRAFT
4.0PHYSICAL DIMENSIONS
Figure 4-1 shows the physical dimensions for RN4020 module. Figure 4-2 shows the recommended PCB layout.