LoRa/BLE Modules
Hardware Integration Guide
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/wireless
20
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
Table 15: Peripheral supports
Signal Name
Pin #
I/O
Comments
SPI_MOSI
17
O
This interface is an alternate function configurable by
smart BASIC. Default in the FW pin 15 and 17 are inputs. SPIOPEN() in
smart BASIC selects SPI function and changes pin14 and 16 to outputs
(when in SPI master mode).
SPI_MISO
16
I
SPI_CLK
15
O
I2C Interface
The I2C interface is an alternate function on SIO pins, configurable by smart
BASIC command.
The two-wire interface can interface a bi-directional wired-OR bus with two lines (SCL, SDA) and has master
/slave topology. The interface is capable of clock stretching. Data rates of 100 kbps and 400 kbps are supported.
An I2C interface allows multiple masters and slaves to communicate over a shared wired-OR type bus consisting
two lines which normally sit at VCC. The RM1xx 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 16: I2C Interface
Signal Name
Pin #
I/O
Comments
I2C_SDA
10
I/O
This interface is an alternate function on each pin, configurable by
smartBASIC. I2COPEN() in smartBASIC selects I2C function.
I2C_SCL
9
I/O
General Purpose I/O, ADC and PWM/FREQ
GPIO
All 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.5mA or high drive 5mA)
Internal pull up and pull down resistors (13K typical) or no pull-up/down
Wake-up from high or low level triggers on all pins
ADC
The ADC is an alternate function on four select SIO pins, configurable by smart
BASIC. This enables sampling up
to four external signals via an internal MUX to the 10 bit ADC. The ADC has configurable input pre-scaling and
sample resolution.
Analog Interface (ADC)
Table 17: Analog interface
Signal Name
Pin No
I/O
Comments
AIN – Analog Input
17
I
This interface is an alternate function on each pin,
configurable by smartBASIC. AIN configuration selected
using GpioSetFunc() function.
10 bit resolution. Voltage scaling 1/1, 2/3, 1/3.
AIN – Analog Input
18
I
AIN – Analog Input
19
I
AIN – Analog Input
20
I