Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
74
1 bit wide if GPIO_PORTB_SINGLE_CTL = 1
GPIO_PWIDTH_B
bits wide if GPIO_PORTB_SINGLE_CTL = 0
Address offset
: 0x14
Read/write access
: read/write
Bit
Name
Access Description
0
-or-
0:
GPIO_PWIDTH_B
-1
(See above)
Port B 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_B configuration parameter.
0 – Software mode (default)
1 – Hardware mode
If GPIO_PORTB_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_B 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_PORTB = 1.
Reset Value:
If GPIO_PORTB_SINGLE_CTL = 1, then the reset value is
GPIO_DFLT_SRC_B.
If GPIO_PORTB_SINGLE_CTL = 0, then the reset value is
{GPIO_PWIDTH_B{GPIO_DFLT_SRC_B in each bit}}.
8.3.3.7
gpio_swportc_dr
Name:
Port C Data Register
Size:
GPIO_PWIDTH_C
Address offset
: 0x18
Read/write access
: read/write
Bit
Name
Access
Description
31:
GPIO_PWIDTH_C
Reserved
Read as zero
Reserved
GPIO_PWIDTH_C
–1:0
Port C Data Register
R/W
Values written to this register are output on the I/O signals for
Port C if the corresponding data direction bits for Port C are set to
Output mode and the corresponding control bit for Port C is set to
Software mode. The value read back is equal to the last value
written to this register.
Reset Value:
GPIO_SWPORTC_RESET
8.3.3.8
gpio_swportc_ddr
Name:
Port C Data Direction
Size:
GPIO_PWIDTH_C
Address offset
: 0x1C
Read/write access
: read/write
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03