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
39
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
5.9.3 PWM Signal Output on up to 12 SIO Pins
The PWM output is an alternate function on SIO pins, configurable by smartBASIC.
The ability to output a PWM (Pulse Width Modulated) signal on ALL GPIO (SIO) output pins can be selected using
GpioSetFunc() function.
The PWM output signal has a frequency and duty cycle property. Frequency is adjustable (up to 1MHz ) and the
duty cycle can be set over a range from 0% to 100% (both configurable by smart BASIC command).
5.9.4 FREQ Signal Output on up to 2 SIO Pins
The FREQ output is an alternate function on SIO pins, configurable by smartBASIC.
The ability to output a FREQ output signal on 2 GPIO (SIO) output pins can be selected using GpioSetFunc()
function.
Note: The frequency driving each of the two SIO pins is the same but the duty cycle can be independently
set for each pin.
FREQ output signal frequency can be set over a range of 0Hz to 4 MHz (with 50% mark-space ratio).
nRESET pin
Table 24: nRESET pin
Signal Name
Pin No
I/O
Comments
nRESET
7
I
BL652 HW reset (active low). Pull the nRESET pin low for minimum
100mS in order for the BL652 to reset.
nAutoRUN pin
Refer to nAutoRUN pin and Operating Modes regarding operating modes and the nAutoRUN pin.
Self-contained Run mode
Interactive/Development mode
vSP Command Mode
This section discusses VSP Command mode through pulling SIO_2 high and nAutoRUN low. Read this section in
conjunction with the VSP Configuration chapter of the BL652 smartBASIC Extensions Guide, found in the
documentation tab of the BL652 product page.
Figure 7 shows the difference between VSP Bridge to UART mode and VSP Command mode and how SIO_02 and
nAutoRUN must be configured to select between these two modes.
VSP Bridge to UART mode takes data sent from phone or tablet (over BLE) and sends to BL652 to be sent
out of the BL652 UART (therefore data not stored on BL652).
VSP Command mode takes data sent from phone or tablet and sends to BL652 which will interpret as an AT
command and response will be sent back. The OTA Android or iOS application can be used to download any
smartBASIC application script over the air to the BL652 because a smartBASIC application is downloaded
using AT commands.