User's Manual

RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4
R15UH0002EU0103 Rev.1.03 Page 50 of 206
Apr.21.21
5. General Purpose IO
The 17 GPIO pins of the RYZ012 module are configurable as general-purpose I/O pins, which are freely controllable from the application or act
as I/O pins for different peripheral units. A schematic of a GPIO is shown in the figure below.
Figure 8. Schematic of a GPIO bit
There are 4 GPIO blocks, named GPIOA to GPIOD. Each of these blocks has a set of registers to configure the behavior of the individual pins.
An overview of the registers is given in Table 9. The last column provides a quick link to the detailed description of the corresponding register
for each GPIO block.
Table 9. GPIO Configuration Register Overview
Register
Name
Description
Link
Digital Registers
IEN
Input enable. Set to 1 to enable input capture.
A, B, C, D
ID
Input data register. Holds the last value captured on corresponding pin.
A, B, C, D
ODIS
Output disable. Set to 1 to disable the output driver.
A, B, C, D
OD
Output data register. Values written to this registers are driven on the output if corresponding ODIS register is cleared.
A, B, C, D
DS
Driving strength control. A value of 0b1 selects high driving strength. See Table 1 for absolute values.
A, B, C, D
MODE
GPIO or peripheral mode select. If bit is set to 0b1, GPIO mode is selected, otherwise, one of the peripheral functions is used.
The actual peripheral is selected through PFS register.
A, B, C, D
INTEN
Interrupt enable. If this bit is set to 0b1, interrupt generation on level change is enabled. Interrupt polarity is selected through
INTPOL register.
A, B, C, D
INTPOL
Interrupt polarity control. A value of 0b0 selects rising edge as interrupt source.
A, B, C, D
PFS
Peripheral function select. See table Table 10.
A, B, C, D
T0G2R
Timer 0 and GPIO2RISC0 output enable. If this bit is set, the corresponding pin acts as input to Timer 0 or GPIO2RISC0 IRQ.
A, B, C, D
T1G2R
Timer 1 and GPIO2RISC1 output enable. If this bit is set, the corresponding pin acts as input to Timer 1 or GPIO2RISC1 IRQ.
A, B, C, D
T2
Timer 2 output enable. If this bit is set, the corresponding pin acts as input to Timer 2.
A, B, C, D