
Modes
USB direct mode
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
131
Configure the data pins
Set
to
7
to configure pins 7 and 8 for USB direct mode.
If USB Direct is not enabled (
P1
is not set to
7
), then
bit 2 and
P0
being set to
6
have no effect on the USB VBUS state.
Enable USB direct mode
You can enable USB direct mode in two ways:
1. Enable via software: Set
bit 2. Ensure that
is not set to
6
as that would override the
DO
setting.
2. Enable based on the state of VBUS (pin 6): Set
P0
to
6
. Apply a logic high signal to DIO10/PWM0
(pin 6) to enable USB or a logic low signal to disable USB.