Pad Control and Pinmux
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
49
AF0 (GPIO)
AF1 (UART_DATA)
AF2 (LOGUART_DATA/UART_RTS/UART_CTS)
AF3 (SPI)
AF4 (RTC/LP_TIM4_Triger/LP_TIM5_Triger)
AF5 (IR)
AF6 (SPI_FLASH)
AF7 (I2C)
AF8 (SD_HOST/SDIO_DEVICE)
AF9 (HS_PWM)
AF10 (LP_PWM)
AF11 (SWD)
AF12 (I2S/DMIC)
AF13 (LCD)
AF15 (Q-Decoder)
AF16 (SGPIO)
AF22 (HS_TIM4_Triger/HS_TIM5_Triger)
PINx (x = 0, 1, 2
63)
PINx_CTRL[31:0] (x = 0, 1, 2
63)
PIN
x
_CTRL register is used to select the dedicated alternate function
AF28 (EXT32K)
AF29 (Key-Scan_ROW)
AF30 (Key-Scan_COL)
AF31 (WAKE_PIN)
Low Power Pins
Fig 6-2 Selecting an alternate function on Ameba-D
In addition to this flexible I/O multiplexing architecture, each peripheral has alternate function mapped on different I/O pins to optimize the
number of peripherals available in smaller package. Refer to the UM0402 pinmux table for detailed mapping of the system and peripherals’
alternate function I/O pins.
Note
:
In the process of system power on, the state of GPIOs are described below:
AON GPIO:
If the column "default pull" is empty, the state of GPIO is High-Z after system power on.
If the column "default pull" isn't empty, the GPIO pulls up/down according to the default pull setting after system power on.
Normal GPIO:
The state of all the GPIOs are High-Z before system power on.
If the column "default pull" is empty, the state of GPIO is High-Z after system power on.
If the column "default pull" isn't empty, the GPIO pulls up/down according to the default pull setting after system power on.
When pressing the
Reset
button, all the GPIOs can keep the original state as before; while releasing the
Reset
button, the state of GPIOs are
similar with the state in the process of system power on described above.
6.4
Register − PADCTRL
Each I/O pin has one PADCTRL register assigned to control the pin’s electrical characteristics.
31
30
29
28
27
26
25
24
RSVD
23
22
21
20
19
18
17
16
RSVD
15
14
13
12
11
10
9
8
PAD_BIT_SHUT_
DOWN
PAD_BIT_SDIO_
H3L1
RSVD
PAD_BIT_SCHMI
TT_TRIGGER_EN
PAD_BIT_DRIVING_STRENGTH
PAD_BIT_PULL_DO
WN_RESISTOR_EN
PAD_BIT_PULL_UP
_RESISTOR_EN
R/W
R/W
R/W
R/W
R/W
R/W
7
6
5
4
3
2
1
0
RSVD
PAD_BIT_FUNCTION_ID
R/W
Address
Bit
Name
Access
Description
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03