User's Manual
NINA-B1 series - Data Sheet
UBX-15019243 - R05 Early Production Information Interfaces
Page 12 of 35
2.5 GPIO
The NINA-B1 modules are versatile concerning pin-out. If un-configured, there will be 19 GPIO pins in total and
no analog or digital interfaces. All digital interfaces or functions must then be allocated to a GPIO pin before use.
7 out of the 19 GPIO pins are analog enabled thus they can have an analog function allocated to them. In
addition to the serial interfaces, Table 4 shows the number of digital and analog functions that can be assigned
to a GPIO pin.
This list is not final, and functions may be added or removed without notice.
Function
Description
Default
NINA
pin
Configurable
GPIOs
General purpose input
Digital input with configurable edge detection and interrupt generation
Any
General purpose output
Digital output with configurable drive strength, pull-up, pull-down, open-
source, open-drain and/or slew rate
Any
Pin disabled
Pin is disconnected from input buffers and output drivers.
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 the software application/ Wake up event
Any
ADC input
8/10/12-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 complex pulse width modulation waveforms
Any
Connection status indication
Indicates if a BLE connection is maintained
BLUE**
Any
* = If left unconfigured ** = If using u-blox NINA-B11x firmware
Table 4: GPIO custom functions configuration
2.6 Analog interfaces
7 out of the 19 digital GPIOs can be multiplexed to analog functions. The following analog functions are
available for use:
1x 8-channel ADC
1x Analog comparator*
1x Low-power analog comparator*
*Only one of the comparators can be used simultaneously.
2.6.1 ADC
The Analog to Digital Converter (ADC) can sample up to 200 kHz using different inputs as sample triggers. It
supports 8/10/12-bit resolution. Any of the 8 analog inputs can be used both as single-ended inputs and as
differential pairs for measuring the voltage across them. The ADC supports full 0 V to VCC input range.
2.6.2 Comparator
The comparator compares voltages from any analog pin with different references as shown in Table 5. It
supports full 0 V to VCC input range and can generate different software events to the rest of the system.
2.6.3 Low power comparator
The low-power comparator operates in the same way as the normal comparator, with some reduced
functionality. It can be used during sleep mode as a wake up source.