
NINA-B4 series - System integration manual
UBX-19052230 - R09
Design-in
Page 19 of 61
C1-Public
2.4.3
I2C interface
The (NINA-B40 only) Inter-Integrated Circuit (I2C) interface can be used to transfer or receive data on
a 2-wire bus network. NINA-B40 can operate as both master and slave on the I2C bus using both
standard (100 kbps) and fast (400 kbps) transmission speeds. The interface uses the
SCL
signal to
clock instructions and data on the
SDA
signal.
External pull-up resistors are required for the I2C interface. The value of the pull-up resistor should be
selected depending on the speed and capacitance of the bus. See also the Electrical specifications in
the NINA-B40 series data sheet
for recommended resistor values.
2.4.4
USB 2.0 interface
NINA-B40 series modules (only) include a full speed Universal Serial Bus (USB) device interface
compliant with version 2.0 of the USB specification. The pin configuration of the USB interface is
provided below:
•
VBUS
, 5 V supply input needed to use the interface
•
USB_DP
,
USB_DM
, differential data pair
The USB interface has a dedicated power supply that requires a 5 V supply voltage for the
VBUS
pin.
This allows the USB interface to be used even though the rest of the module might be battery powered
or supplied by a 1.8 V supply, etc.
2.5
GPIO pins
In an unconfigured state, NINA-B40 modules have 40 GPIO pins, 10 of which are analog-enabled pins
that can be assigned to analog functions.
In an unconfigured state, NINA-B41 modules support a total of 26 GPIO pins with no analog interfaces.
All interfaces or functions must be allocated to a GPIO pin before use. The digital and analog functions
that can be assigned to a GPIO pin, in addition to the serial interfaces, are shown in
Function
Description
Default
NINA-B4 pin
Configurable
GPIOs
General purpose
input
Digital input with configurable pull-up, pull-down, edge detection
and interrupt generation
Any
General purpose
output
Digital output with configurable drive strength, push-pull, open-
collector, or open-emitter output
Any
Pin disabled
Pin is disconnected from the input and output buffers.
All*
Any
Timer/ counter
High-precision time measurement between two pulses/ Pulse
counting with interrupt/event generation
Any
Interrupt/ Event
trigger
Interrupt/event trigger to software application/ Wake-up event
Any
HIGH/LOW/Toggle
on event
Programmable digital level triggered by internal or external events
without CPU involvement
Any
ADC input
8/10/12/14-bit analog to digital converter
Any analog
Analog comparator
input
Compare two voltages, capable of generating wake-up events and
interrupts
Any analog
PWM output
Output simple or complex pulse width modulation waveforms
Any
Connection status
indicator
Indicates if a BLE connection is maintained
BLUE**
Any
* = If left unconfigured
** = If using u-connectXpress software
Table 11: GPIO custom functions configuration