DW1000 User Manual
© Decawave Ltd 2017
Version 2.12
Page 132 of 242
7.2.39.1
Sub-Register 0x26:00
– GPIO_MODE
ID
Length
(octets)
Type
Mnemonic
Description
26:00
4
RW
GPIO_MODE
GPIO Mode Control Register
Register file: 0x26 – GPIO control and status
, sub-register 0x00 is the GPIO Mode Control Register,
GPIO_MODE. The GPIO_MODE register is used to select whether the GPIO is operating as a GPIO or has
another special function. The GPIO_MODE register contains the following sub-fields:
REG:26:00 – GPIO_MODE – GPIO Mode Control Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
- - - - - - - -
M
SG
P
8
M
SG
P
7
M
SG
P
6
M
SG
P
5
M
SG
P
4
M
SG
P
3
M
SG
P
2
M
SG
P
1
M
SG
P
0
- - - - - -
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
The fields of the GPIO_MODE register identified above are individually described below:
Field
Description of fields within Sub-Register 0x26:00 – GPIO_MODE
-
Bits marked ‘-’ are reserved and should be written as zero.
MSGP0
reg:26:00
bits:7,6
Mode Selection for GPIO0/RXOKLED.
00: The pin operates as GPIO0 – This is the default (reset) state.
01: The pin operates as the RXOKLED output.
10:
bit [7] needs to be set high to get the system clock signal out on GPIO0.
11: Reserved. Do not select this value.
When operating as the RXOKLED driver, the output is asserted briefly when the receiver
completes the reception of a frame with a good FCS/CRC. The on time for the RXOKLED
depends on the blink time set in
Sub-Register 0x36:28 – PMSC_LEDC
Note: Lighting LEDs will drain power in battery-powered applications.
MSGP1
reg:26:00
bits:9,8
Mode Selection for GPIO1/SFDLED.
00: The pin operates as GPIO1– This is the default (reset) state.
01: The pin operates as the SFDLED output.
10: Reserved. Do not select this value.
11: Reserved. Do not select this value.
When operating as the driver, the output is asserted briefly when the receiver detects the SFD
sequence in the RX frame. The on time is determined by the blink time configuration set in
Sub-Register 0x36:28 – PMSC_LEDC
Note: Lighting LEDs will drain power in battery-powered applications.
MSGP2
reg:26:00
bits:11,10
Mode Selection for GPIO2/RXLED. Allowed values are:
00: The pin operates as the GPIO2 output – This is the default (reset) state.
01: The pin operates as the RXLED output.
10: Reserved. Do not select this value.
11: Reserved. Do not select this value.
When operating as the RXLED driver, the output is asserted when the receiver is on, and stays
on for a brief period after the receiver is turned off. The minimum on time is determined by
the blink time configurable in
Sub-Register 0x36:28 – PMSC_LEDC
Note: Lighting LEDs will drain power in battery-powered applications.