User's Manual

Table Of Contents
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