When configured as an output (either software or IOF controlled), the software-writable
out_xor
register is combined with the output to invert it.
Each GPIO pin can implement up to 2 HW-Driven functions (IOF) enabled with the
iof_en
reg-
ister. Which IOF is used is selected with the
iof_sel
register.
When a pin is set to perform an IOF, it is possible that the software registers
port
,
output_en
,
pullup
,
ds
,
input_en
may not be used to control the pin directly. Rather, the pins may be con-
trolled by hardware driving the IOF. Which functionalities are controlled by the IOF and which
are controlled by the software registers are fixed in the hardware on a per-IOF basis. Those that
are not controlled by the hardware continue to be controlled by the software registers.
If there is no IOFx for a pin configured with IOFx, the pin reverts to full software control.
Table 52:
GPIO IOF Mapping
GPIO Number
IOF0
IOF1
0
PWM0_PWM0
1
PWM0_PWM1
2
SPI1_CS0
PWM0_PWM2
3
SPI1_DQ0
PWM0_PWM3
4
SPI1_DQ1
5
SPI1_SCK
9
SPI1_CS2
10
SPI1_CS3
PWM2_PWM0
11
PWM2_PWM1
12
I2C0_SDA
PWM2_PWM2
13
I2C0_SCL
PWM2_PWM3
16
UART0_RX
17
UART0_TX
18
UART1_TX
19
PWM1_PWM1
Chapter 16 General Purpose Input/Output Controller
FE310-G003 Manual
© SiFive, Inc.
Page 79
Содержание FE310-G003
Страница 1: ...SiFive FE310 G003 Manual v1p1 SiFive Inc ...