User's Manual
Table Of Contents
- 1 Overview and Key Features
- 2 Specification
- 2.1 Specification Summary
- 3 Hardware Specifications
- 3.3.4 OTA (Over-the-Air) smartBASIC Application Download
- 4 Power Consumption
- 5 Functional Description
- 5.1 Power Management (includes Brown-out and Power on Reset)
- 5.2 Clocks and Timers
- 5.3 Memory for smartBASIC Application Code
- 5.4 Radio Frequency (RF)
- 5.5 NFC
- 5.6 UART Interface
- 5.7 SPI Bus
- 5.8 I2C Interface
- 5.9 General Purpose I/O, ADC, PWM and FREQ
- 5.10 nRESET pin
- 5.11 nAutoRUN pin
- 5.12 vSP Command Mode
- 5.13 Two-wire Interface JTAG
- 5.14 BL652 Wakeup
- 5.15 Low Power Modes
- 5.16 Temperature Sensor
- 5.17 Random Number Generator
- 5.18 AES Encryption/Decryption
- 5.19 Optional External Serial (SPI) Flash
- 5.20 Optional External 32.768 kHz crystal
- 5.21 BL652-SA On-board Chip Antenna Characteristics
- 6 Hardware Integration Suggestions
- 7 Mechanical Details
- 8 Application Note for Surface Mount Modules
- 9 FCC and IC Regulatory Statements
- 10 Japan (MIC) Regulatory
- 11 CE Regulatory
- 12 EU Declarations of Conformity
- 13 Ordering Information
- 14 Bluetooth SIG Qualification
BL652
Datasheet
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/bluetooth
38
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
An I2C interface allows multiple masters and slaves to communicate over a shared wired-OR type bus consisting
of two lines which normally sit at VCC. The BL652 module can only be configured as an I2C master with additional
constraint that it be the only master on the bus. The SCL is the clock line which is always sourced by the master
and SDA is a bi-directional data line which can be driven by any device on the bus.
IMPORTANT: It is essential to remember that pull-up resistors on both SCL and SDA lines are not provided in
the module and MUST be provided external to the module.
Table 22: I2C interface
Signal Name
Pin No
I/O
Comments
I2C_SDA
37
I/O
This interface is an alternate function on each pin, configurable by
smartBASIC. I2COPEN() in smartBASIC selects I2C function.
I2C_SCL
36
I/O
General Purpose I/O, ADC, PWM and FREQ
5.9.1 GPIO
The 19 SIO pins are configurable by smartBASIC. They can be accessed individually. Each has the following user
configured features:
Input/output direction
Output drive strength (standard drive 0.5 mA or high drive 5mA)
Internal pull-up and pull-down resistors (13 K typical) or no pull-up/down
Wake-up from high or low level triggers on all pins including NFC pins
5.9.2 ADC
The ADC is an alternate function on SIO pins, configurable by smart BASIC.
The BL652 provides access to 8-channel 8/10/12-bit successive approximation ADC in one-shot mode. This
enables sampling up to 8 external signals through a front-end MUX. The ADC has configurable input and
reference pre-scaling and sample resolution (8, 10, and 12 bit).
5.9.2.1 Analog Interface (ADC)
Table 23: Analog interface
Signal Name
Pin No
I/O
Comments
AIN – Analog Input
20
I
This interface is an alternate function on each pin, configurable by
smartBASIC. AIN configuration selected using GpioSetFunc()
function.
Configurable 8, 10, 12 bit resolution.
Configurable voltage scaling 4, 2, 1/1, 1/3, 1/3, 1/4, 1/5,
1/6(default).
Configurable acquisition time 3uS, 5uS, 10uS(default), 15uS, 20uS,
40uS.
Full scale input range (VCC)
AIN – Analog Input
21
I
AIN – Analog Input
22
I
AIN – Analog Input
23
I
AIN – Analog Input
32
I
AIN – Analog Input
33
I
AIN – Analog Input
34
I
AIN – Analog Input
35
I