General Purpose Input/Output (GPIO)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
77
0
-or-
0:
GPIO_PWIDTH_D-1
(S
ee above)
Port D Data Source
R/W
The data and control source for a signal can come from either software or
hardware; this bit selects between them. The default source is configurable
through the GPIO_DFLT_SRC_D configuration parameter.
0 – Software mode (default)
1 – Hardware mode
If GPIO_PORTD_SINGLE_CTL = 0, the register will contain one bit for each bit of
the signal. Upon reset in this case, the value of GPIO_DFLT_SRC_D is replicated
across all bits of the signal so that all bits power up with the same operating
mode. Furthermore, the default source of each bit of the signal can subsequently
be changed by writing to the corresponding bit of this register.
This register is not available unless GPIO_HW_PORTD = 1.
Reset Value
:
If GPIO_PORTD_SINGLE_CTL = 1, then the reset value is
GPIO_DFLT_SRC_D
.
If GPIO_PORTD_SINGLE_CTL = 0, then the reset value is
{GPIO_PWIDTH_D{GPIO_DFLT_SRC_D in each bit}}.
8.3.3.13
gpio_inten
Name:
Interrupt enable
Size:
GPIO_PWIDTH_A
Address offset
: 0x30
Read/write access
: read/write
This register is available only if Port A is configured to generate interrupts (GPIO_PORTA_INTR = Include (1)).
Bit
Name
Access
Description
31:
GPIO_PWIDTH_A
Reserved
Read as zero
Reserved
GPIO_PWIDTH_A
–1:0
Interrupt enable
R/W
Allows each bit of Port A to be configured for interrupts. By default,
the generation of interrupts is disabled. Whenever a 1 is written to a
bit of this register, it configures the corresponding bit on Port A to
become an interrupt; otherwise, Port A operates as a normal GPIO
signal. Interrupts are disabled on the corresponding bits of Port A if
the corresponding data direction register is set to Output or if
Port A mode is set to Hardware.
0 – Configure Port A bit as normal GPIO signal (default)
1 – Configure Port A bit as interrupt
Reset Value:
0x0
8.3.3.14
gpio_intmask
Name:
Interrupt mask
Size:
GPIO_PWIDTH_A
Address offset
: 0x34
Read/write access
: read/write
This register is available only if Port A is configured to generate interrupts (GPIO_PORTA_INTR = Include (1)).
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03