background image

www.lairdtech.com/bluetooth 

33 

© Copyright 2018 Laird. All Rights Reserved 

Americas: +1-800-492-2320 

Europe: +44-1628-858-940 

Hong Kong: +852 2923 0610 

 

 

The 

smart

BASIC application 

nfc.all.launch.sb 

in the GitHub 

smart

BASIC sample application repository on the BL654 product 

page at 

https://github.com/LairdCP/BL654-Applications

 exercises the following over the BL654 NFC: NFC: 

 

On Android NFC enabled devices 

 Opens Laird Toolkit or shows it in the Google Play store if not installed 

 

On Windows NFC enabled devices 

 Opens the calculator 

 

On other NFC enabled devices 

 Shows the Laird website or text saying 

this is a BL654 

 

There is an optional external serial QSPI flash IC (U18) that may be used, for example, for data logging purposes. U18 can 
also capable of SPI mode.   

Solder bridges SB4, SB5, SB6, SB7, SB10 and SB11 must individually be shorted to connect this optional external serial (QSPI) 
flash (U18 to the BL654 module). 

By default, these BL644 pins are GPIO pins. 

 

 

Figure 19: Optional external serial SPI flash IC (U18) schematic and PCB 

Table 15

 shows the U18 pin mapping to BL654 SIO pin mapping (via open solder bridges). 

Table 15: U18 SPI or QSPI flashc IC pin mapping to BL654 GPIO mappings 

BL654 Pin (Pin Name) 

U18 Pin (QSPI flash IC)  

and Pin Name 

Via Open Solder bridge 

Pin 16 (SIO_17/QSPI_CS) 

Pin 1 CS# 

SB7 

BL654 Dev board R126 10K pull-up on, 

therefore by default, device not selected. 

Drive from BL654 line low to select. 

Pin 14 (SIO_19/QSPI_CLK) 

Pin 6 SCLK 

SB4 

Pin 13 (SIO_20/QSPI_DIO0) 

Pin 5 SIO_0/SI 

SB5 

SB5 NOPOP (Solderbridge_Open)

1

1

2

2

SB11

NOPOP (Solderbridge_Open)

1

1

2

2

GND

QSPI_CLK

SB4 NOPOP (Solderbridge_Open)

1

1

2

2

SB10 NOPOP (Solderbridge_Open)

1

1

2

2

QSPI_DIO3

SIO_22

SIO_20

SIO_19

SIO_23

GND

QSPI_DIO2

VDD_VSRC_nRF

VDD_VSRC_nRF

QSPI_DIO0

R126
10K

QSPI_CS#
QSPI_DIO1

U18
4Mx1,SPI,1.65~3.6V

CS#

1

SO/SIO1

2

WP#

3

GND

4

SI/SIO0

5

CLK

6

HOLD#

7

VCC

8

G

N

D

9

SB6

NOPOP (Solderbridge_Open)

1

1

2

2

SB7

NOPOP (Solderbridge_Open)

1

1

2

2

SIO_17

SIO_21

C5
0.1uF,16V

GND

Содержание BL654

Страница 1: ...Version 1 1 ...

Страница 2: ...s Reserved Americas 1 800 492 2320 Europe 44 1628 858 940 Hong Kong 852 2923 0610 Version Date Notes Contributor s Approver 1 0 27 June 2018 Initial version Raj Khatri Jonathan Kaye 1 1 13 Aug 2018 Updated DJ Jack Max voltage in Figure 1 Raj Khatri Jonathan Kaye ...

Страница 3: ...7 6 6 nAutoRUN Pin and Operating Modes 19 6 7 Virtual Serial Port Modes and Over the Air smartBASIC App Download 20 7 Software 21 8 Breakout Connector Pinouts 22 8 1 SIO Special Input Output Sockets Breakout Connectors 22 8 2 Additional Peripherals Sensors 27 8 2 1 Temperature Sensor 27 8 2 2 I2C Sensor RTC Chip 29 8 2 3 SPI Device EEPROM 30 8 2 4 Push Button and LED Connected to BL654 30 8 2 5 NF...

Страница 4: ...15 4 NFC module External antenna All kits contain the following items Development Board The development board has the required BL654 module soldered onto it and exposes all available hardware interfaces Power Options USB cable Type A to micro type B The cable also provides serial communications via the FTDI USB RS232 converter chip on the board DC barrel plug for connection to external power suppl...

Страница 5: ...e soldered onto the development board The following power supply options for powering the development board USB micro USB type B External DC supply 3 5 5 5V AAA batteries three AAA battery holder fitted on underside of development board USB micro USB type B for direct use of BL654 USB interface as well Powering the BL654 module in Normal Voltage mode OPTION1 via selection switch SW7 Regulated 3 3V...

Страница 6: ... 768 kHz crystal oscillator and associated load capacitors Not required for operation of the BL654 is disconnected by open solder bridges by default Optional external serial QSPI flash IC Not required for operation of the BL654 is disconnected by open solder bridges by default Access to BL654 JTAG also known as Serial Wire Debug SWD On board SWD JTAG programmer circuitry USB2 to BL654 module SWD i...

Страница 7: ...board SWD interface and programmer circuitry I2C device U16 SPI EEPROM device J41 PTH J47 PTH J29 PTH 4 Buttons USB1 NFC Antenna Connector CON2 USB2 connector USB SWD interface DC Jack 5 5V DC max input CON1 USB3 connector BL654 nRF USB device F USB I F Optional Serial QSPI flash J48 PTH FTDI FT232R DC USB Power Source Switch SW4 Header J12 for nAutoRUN J35 J1 Header Plated Through Holes PTH for U...

Страница 8: ...e BL654 development board switches and jumpers must be configured as shown in Figure 3 Figure 3 Correct BL654 development board 455 00001 or 455 00002 jumper and switch settings image for 455 00001 SW7 middle position default for Normal Voltage VDD pin of BL654 operation J12 Fit Jumper on Pins 2 1 SW5 Switch to 3v3 SW6 Switch to 3v3 SW11 position right default TP14 Black Test Hook SW4 Switch to US...

Страница 9: ... USB1 USB type micro B connector If it requires the FTDI USB1 UART BL654 path USB2 USB type micro B connector If it requires the Atmel USB2 SWD BL654 path USB3 USB type micro B connector If it requires the USB3 to USB BL654 path External DC supply 2 5V 5 5VV into DC jack connector CON1 AAA batteries Three AAA 4 5V battery holder J25 fitted on underside of development board The external power sourc...

Страница 10: ... pin is not connected to any external voltage supply Connect external supply within a 2 5V to 5 5V range to the BL654 VDD_HV pin Leave the BL654 VDD pin unconnected For High Voltage mode operation the BL654 Development Board power supply section generates the following Regulated 2 5V 3 x AAA generated 4 5V or inject external voltage into J28pin1 up to 5 5V and then via selection switch SW8 default...

Страница 11: ... No voltage is presented to VDD pin as in High voltage mode the VDD pin becomes an output voltage pin It can be used to supply external circuitry from the VDD pin Before any current can be taken from the BL654 VDD pin this feature must be enabled in the BL654 Additionally the VDD output voltage is configurable from 1 8V to 3 3V with possible settings of 1 8V 2 1V 2 4V 2 7V 3 0V and 3 3V The defaul...

Страница 12: ...by SW5 Also supplies the I2C RTC chip U16 The use case for powering this is that the RTC chip can be configured so that after the pre determined time the RTC chip outputs via RTC_ALARM pin a transition level that can be used to wake up the BL654 module up from deep sleep VDD_nRFp Supplies the BL654 series module only Current measuring block on the development board only measures the current into p...

Страница 13: ...INV IN1 3 VCC 4 Non INV IN2 5 INV IN2 6 OUT2 7 VCC 8 R137 1M U20 Load Switch IC 1A VOUT 1 GND 2 CONTROL 3 NC 4 VIN 5 VDD_nRF_SENSE R52 0R VDD_nRF_SENSE V5V Q2 DUAL NCH 20V 800mA S1 1 G1 2 D2 3 D1 6 G2 5 S2 4 GND VSUPPLY_EN R61 1M C18 0 1uF 16V GND GND GND GND Q3 NPN 45V 2 0A GND SB15 NOPOP Solderbridge_Open 1 1 2 2 VSUPPLY U21 Load Switch IC 1A VOUT 1 GND 2 CONTROL 3 NC 4 VIN 5 VDD_VSRC_nRF SB24 N...

Страница 14: ...ch U25 The placement of the Reset button is shown in Figure 6 Figure 6 Reset button placement Figure 7 Reset button schematic and routing through analog switch and location diagram By default whether the analog switch U25 control line USB_DETECT is low USB2 cable not plugged in or high USB2 cable plugged in the nReset button SW3 is routed via the analog switch U25 to BL654 nReset pin nRESET_BLE C6...

Страница 15: ...e We recommend that you use JTAG two wire interface to handle future BL654 module firmware upgrades You MUST wire out the JTAG two wire interface on your host design four lines should be wired out namely SWDIO SWDCLK GND and VCC Firmware upgrades can still be performed over the BL654 UART interface but this is slower 60 seconds using UART vs 10 seconds when using JTAG than using the BL654 JTAG two...

Страница 16: ...1 SWDIO_EXT SWDIO_BLE SIO_32_SWO_BLE nRESET_EXT R131 NOPOP 0R U24 Dual DPDT 1 65V 4 45V 1B0 1 1B1 15 2B0 5 2B1 3 1A 16 2A 4 1S 2 3B0 9 3B1 7 4B0 13 4B1 11 3A 8 4A 12 2S 10 GND 6 VCC 14 OB_RESET SWDCLK_BLE SWDCLK_EXT OB_SWO USB_DETECTp SWO_EXT nRESET_BLE USB_DETECT SW11 position2 1 High Default USB2 BL654 SWD SW11 Slide SW SMD 180d 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 GND GND USB_DETECTp GND GND R13...

Страница 17: ...amming BL654 over the SWD interface The development board provides access to the BL654 module four wire UART interface TX RX CTS RTS either through USB via UT10 FTDI USB UART convertor chip or through a breakout header connector J1 Note The BL654 module provides four wire UART interface on the HW and the other four signals DTR DSR DCD RI which are low bandwidth signals can be implemented in a smar...

Страница 18: ...t This is achieved automatically by removal of the USB cable from connector USB1 placing SW4 in the DC position or fitting a jumper on J27 Fit a jumper on J35 to switch the Analog switch U15 and route BL654 UART to J1 when connecting an external UART source for example FTDI USB UART TTL 3 3V converter cable using J1 This isolates the BL654 UART from the on board USB UART FTDI device By default the...

Страница 19: ...to BL654 ultimately On the development board the USB_DTR output FTDI chip U10 from the PC is wired to BL654 module pin SIO_35 pin 5 which is the nAutoRUN pin Note smartBASIC runtime engine FW checks for the status of nAutoRUN during power up or reset The nAutoRUN pin detects if the BL654 module should power up into Interactive Development Mode 3 3 V or Self contained Run mode 0V The module enters ...

Страница 20: ... do the following Remove the jumper on header connector J12 pin 2 1 Then nAutoRUN can be controlled by inserting the jumper onto J12 pin 2 3 as shown in Table 5 this is the default The BL654 by default has pull down enabled on the SIO_35 nAutoRUN pin so the jumper into J12 pin 2 3 is optional The Over the Air OTA feature makes it possible to download smartBASIC applications over the air to the BL6...

Страница 21: ...ow by fitting jumper in J12 pin 2 3 SIO_02 High externally selects the VSP service When SIO_02 is High and nAutoRUN SIO_35 is Low externally this selects VSP Command mode When SIO_02 is High and nAutoRUN is High externally this selects VSP Bridge to UART mode When SIO_02 on module is set HIGH externally VSP is enabled and auto bridged to UART when connected However for VSP Command mode auto bridge...

Страница 22: ...eturns a four hex digit error code In UwTerminalX select those four digits right click and select Lookup Selected Error Code Hex A description of the error is then printed on screen Access to all 48 BL654 series module signal pins SIO s Signal Input Output is available on plated through holes for 2 54 mm pitch header connectors on J44 J47 J48 J41 J29 J1 J12 J1 J5 J17 J21 J6 and J36 Note The BL654 ...

Страница 23: ... SI0_ 14 J26 Connects SIO_35 to LED1 J26 jumper fitted default J37 Connects SIO_14 to LED2 J37 jumper fitted default J45 Connects SIO_15 to LED3 J45 jumper fitted default J39 Connects SIO_16 to LED4 J39 jumper fitted default NOPOP PIN HEADER 2 54mm 1X2P J44 1 1 2 2 SIO_00_Header SIO_01_Header GND R127 0R R128 0R SIO_00_Header GND Y3 32 768KHz 20ppm 9pF 1 2 SIO_00 XL1 SIO_01 C70 10pF 50V C71 12pF 5...

Страница 24: ...J2 9 BL654 pin plated holes for access SI0_ 30 SI0_ 31 SI0_ 27 SI0_ 26 SI0_ 04 connects to Eeprom_MISO SI0_ 40 connects to Eeprom_MOSI SI0_ 41 connects to Eeprom_SCK SI0_ 12 SI0_ 11 GND J48 NOPOP PIN HEADER 2 54mm 1X10P 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 SIO_03 SIO_29 SIO_45 Eeprom_CS_SIO_44 SIO_47 SIO_46 SIO_39 SIO_42 SIO_43 SIO_28 SIO_38 SIO_36 SIO_37 SIO_32_SWO_BLE SIO_25 SIO_33 SIO_34 S...

Страница 25: ...ATA2 TRACEDATA3 SB23 NOPOP Solderbridge_Open 1 1 2 2 GND SWDCLK_BLE SIO_32_SWO_BLE SWDIO_BLE SIO_11 nRESET_BLE SIO_07 SIO_12 J46 NOPOP PIN HEADER 1 27mm 2X10P 1 2 3 4 5 6 7 8 9 10 11 13 15 17 19 12 14 16 18 20 Eeprom_SCK_SIO_41 SIO_32_SWO_BLE SIO_06 R1 NOPOP 0R Module pin BL654 UART Data Flow SIO_06 Module_TX Output SIO_08 Module_RX Input SIO_05 Module_RTS Output SIO_07 Module_CTS Input SIO_07 SIO...

Страница 26: ... fitted default J3 6 BL654 pin plated holes for access SI0_ 09 via R100 0R default NOPOP SI0_ 10 via R101 0R default NOPOP To use NFC1 pin as SIO_09 fit R100 0R and NOPOP R98 To use NFC1 pin as SIO_09 fit R101 0R and NOPOP R99 R25 NOPOP 10K USB_DTR GND VDD_VSRC_nRF PIN HEADER 2 54mm 1X3P J12 1 1 2 2 3 3 n_Autorun module_DSR Module_DSR Develop Jumper J12 pin2 1 default nAUTORUN Jumper J12 pin2 3 SI...

Страница 27: ...ry on the BL654 product page at https github com LairdCP BL654 Applications The temperature sensor U1 by default is connected to the BL654 module as jumper on J6 pin bridges TEMP_SENS and SIO_03 Figure 14 Temperature sensor schematic and PCB The on board temperature sensor TI LM20BIM7 www ti com lit ds symlink lm20 pdf has an analogue output that can be connected to BL654 module pin SIO_03 but sin...

Страница 28: ... uA max Output impedance 160 Ohms max The LM20BIM7 datasheet states the relationship of Temperature T to Voltage output Vo can be approximated as a linear equation for temperature range of 40ºC to 85ºC Vo mV 11 67mV ºC x T 1858 3 gives the following calculated Vo versus temperature Table 10 LM20BIM7 Temperature to Voltage Output relationship Temperature T Typical Voltage 80ºC 924 7mV 70ºC 1041 4mV...

Страница 29: ...the BL654 I2C interface use smartBASIC application rtcs erver sb in the GitHub smartBASIC sample application repository on the BL654 product page at https github com LairdCP BL654 Applications This application runs on the BL654 and can be used with an Android phone requires an app such as nRF connect https play google com store apps details id no nordicsemi android mcp hl en_GB or another BT900 BL...

Страница 30: ...EPROM U2 a smartBASIC application for this will be available in the future in the GitHub smartBASIC sample application repository on the BL654 product page at https github com LairdCP BL654 Applications The two push buttons and two LEDs on the BL654 are connected to dedicated SIOs of the BL654 module Table 13 LED s and Buttons to BL654 SIO signal mappings Part BL654 U5 SIO Comments LED1 D1 Pin 20 ...

Страница 31: ... button led test sb in the GitHub smartBASIC sample application repository on the BL654 product page at https github com LairdCP BL654 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 pre...

Страница 32: ...pin 57 NFC2 SIO_10 are needed as normal GPIOs R98 and R99 must be removed and R100 and R101 must be shorted by 0R C53 300pF and C54 300pF are RF tuning elements for the flexi PCB NFC antenna Table 14 NFC input BL654 SIO signal mappings BL654 U5 SIO Bring out SIO_9 and SIO_10 to NFC antenna connector CON2 Bring out SIO_9 and SIO_10 to Header connector J36 pin 59 NFC1 SIO_9 Fit R98 0R default Remove...

Страница 33: ...PI flash U18 to the BL654 module By default these BL644 pins are GPIO pins Figure 19 Optional external serial SPI flash IC U18 schematic and PCB Table 15 shows the U18 pin mapping to BL654 SIO pin mapping via open solder bridges Table 15 U18 SPI or QSPI flashc IC pin mapping to BL654 GPIO mappings BL654 Pin Pin Name U18 Pin QSPI flash IC and Pin Name Via Open Solder bridge Pin 16 SIO_17 QSPI_CS Pi...

Страница 34: ...ption to connect an external higher accuracy 20 ppm 32 768 kHz crystal to the BL654 SX xx pins SIO_01 XL2 pin 41 and SIO_00 XL1 pin 42 This provides improved protocol timing and helps with radio power consumption in the system standby doze deep sleep modes by reducing the time that the Rx window must be open To connect the optional external 32 76kHz crystal oscillator circuit to the BL654 module r...

Страница 35: ...rtBASIC sample application repository on the BL654 product page at https github com LairdCP BL654 Applications Note This measures the current consumption of the BL654 series module ONLY The current drawn by the BL654 series module can be monitored on the development board Figure 21 shows the schematic and location of measuring points on the PCB related to current measurements Figure 21 Current mea...

Страница 36: ...6 which is mounted across J7 pins 1 2 can be used as current sense resistor Connect an oscilloscope or similar with two probes on the pins on the J7 connector and measure the differential voltage drop The voltage drop is proportional with current consumption If the 10 Ohm resistor is chosen 10 mV equals 1mA This method allows the dynamic current consumption waveforms to be shown on an oscilloscope...

Страница 37: ...llow these steps 1 Hold down the coin cell holder J34 at the corners 2 Use a screwdriver in the position shown in picture below to gently remove the coin cell from the coin cell holder J34 This is the correct method to remove coin cell from holder J34 Note Due to tight fit of coin cell in the coin cell holder J34 care should be taken prevent damage to the J34 land pads Figure 24 Removing the coin ...

Страница 38: ... change without notice Responsibility for the use and application of Laird materials or products rests with the end user since Laird and its agents cannot be aware of all potential uses Laird makes no warranties as to non infringement nor as to the fitness merchantability or sustainability of any Laird materials or products for any specific or general uses Laird Laird Technologies Inc or any of it...

Отзывы: