Data Sheet
NINA-B40 series - Data sheet
UBX-19049405 - R04 Interfaces Page 16 of 40
C1 - Public
Since the run current of the low power comparator is very low, it can be used as an analog trigger to
wake up the CPU when the module sleeps in the System OFF mode. See section 2.3.1 for additional
information.
2.7.4 Analog pin options
Table 4 shows the supported connections of the analog functions.
☞ An analog pin may not be simultaneously connected to multiple functions.
Table 4: Possible uses of the analog pins
2.8 GPIO
NINA-B40 series modules have a versatile pin-out. With no dedicated analog or digital interfaces, all
module interfaces and functions must be allocated to a specific GPIO pin.
NINA-B40 modules have 40 GPIO pins. 10 of these are analog-enabled pins can be assigned to an
analog function.
In addition to the serial interfaces, describes the digital and analog functions that can be assigned to
a GPIO pin. Two of the GPIOs are optional NFC and two GPIOs optional for external an LFCLK crystal,
namely XL1 and XL2.
Function Description Default NINA 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 the software application/
Wake up event
Any
HIGH/LOW/Toggl
e 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
Table 5: GPIO custom functions configuration
Symbol Analog function Can be connected to
ADCP ADC single-ended or differential positive input Any analog pin or VCC
ADCN ADC differential negative input Any analog pin or VCC
VIN+ Comparator input Any analog pin
VREF Comparator single-ended mode reference ladder input Any analog pin, VCC, 1.2 V, 1.8V or 2.4V
VIN- Comparator differential mode negative input Any analog pin
LP_VIN+ Low-power comparator IN+ Any analog pin
LP_VIN- Low-power comparator IN-
GPIO_16 or GPIO_18, 1/16 to 15/16 VCC in steps of
1/16 VCC