BL652 Development Kit
User Guide
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/bluetooth
31
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
Figure 15: LEDs and Buttons schematic and PCB
The buttons (BUTTON1 and BUTTON2) have no external pull-up resistor, so to use the buttons, the SIO_11 and
SIO_15 pins must be configured as inputs with internal pull-up resistors (which is the default), the following
smartBASIC lines configure the pull-ups:
rc = GPIOSETFUNC(17,1,4)
'//sets SIO_11 (Button1) as a digital in,
strong pull up
rc = GPIOSETFUNC(19,1,4)
'//sets SIO_15 (Button5) as a digital in,
strong pull up
Refer to the smartBASIC application script example “btn.button.led.test.sb” in the GitHub smartBASIC sample
application repository on the BL652 product page at
https://github.com/LairdCP/BL652-Applications
The LEDs are active high, meaning that writing a logical one (“1”) to the output pin illuminates the LED.
One example of when push buttons can be used is when a smartBASIC application is written to simulate a
generic data profile. Push buttons can then be pressed to increment and decrement, such as a heart rate.
8.3.5
NFC External Antenna Connector and NFC Antenna RF Matching Circuit
The NFC antenna input connector (CON2) allows the Laird supplied flex-PCB NFC antenna to be plugged in. The
BL652 module NFC circuit uses two pins, pin 15 (NFC1/SIO_9) and pin 16 (NFC2/SIO_10) to connect the
antenna. These pins are shared with GPIOs (SIO.09 and SIO.10). BL652 NFC pins are enabled by default. NFC can
be disabled via smartBASIC application. Pin 15 (NFC1/SIO_9) and pin 16 (NFC2/SIO_10) are configured by
default on the development board schematic to use NFC antenna, but if pin 15 (NFC1/SIO_9) and pin 16
(NFC2/SIO_10) are needed as normal GPIO’s, R98 and R99 must be removed and R100 and R101 must be
shorted by 0R.
R17 560R
SIO_17
R36 560R
PIN HEADER,2.54mm 1X2P
J37
1
1
2
2
LED2
LED1
PIN HEADER,2.54mm 1X2P
J26
1
1
2
2
SIO_19
GND
L
E
D
1
R15
1K
LED1
D1
Blue,0603
1
2
GND
L
E
D
2
R16
1K
LED2
D2
Blue,0603
1
2
SIO_11
R83 560R
BUTTON1
R94 560R
BUTTON2
SIO_15