User's Manual

Table Of Contents
BL652
Datasheet
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/bluetooth
42
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
Note: J3 and J4 (on the DVK-BL652-xx development board allows Laird on-board JTAG J-link programmer
signals to be routed off the development board by fitting jumpers in the J3 pins (2-3) and J4 pins (2-3).
BL652 Wakeup
5.14.1 Waking Up BL652 from Host
Wake the BL652 from the host using wake-up pins (any SIO pin). Refer to the smartBASIC user guide for details.
You may configure the BL652’s wakeup pins via smartBASIC to do any of the following:
Wake up when signal is low
Wake up when signal is high
Wake up when signal changes
Refer to the smartBASIC user guide for details. You can access this guide from the Laird BL652 product page.
Low Power Modes
The BL652 has three power modes: Run, Standby Doze, and Deep Sleep.
The module is placed automatically in Standby Doze if there are no pending events (when WAITEVENT statement
is encountered within a customer’s smartBASIC script). The module wakes from Standby Doze via any interrupt
(such as a received character on the UART Rx line). If the module receives a UART character from either the
external UART or the radio, it wakes up.
Deep sleep is the lowest power mode. Once awakened, the system goes through a system reset.
Temperature Sensor
The on-silicon temperature sensor has a temperature range greater than or equal to the operating temperature
of the device. Resolution is 0.25 degrees.
To read temperature from on-silicon temperature sensor (in tenth of centigrade, so 23.4°C is output as 234):
In command mode, use ATI2024
or
From running from a running smartBASIC application script, use SYSINFO(2024)
Random Number Generator
Exposed via an API in smartBASIC (see smartBASIC documentation available from the BL652 product page).
The rand() function from a running smartBASIC application returns a value.
AES Encryption/Decryption
Exposed via an API in smartBASIC (see smartBASIC documentation available from the BL652 product page).
Function called aesencrypt and aesdecrypt.