EasyManua.ls Logo

Bouffalo Lab BL702 - GPIO Function Setting; GPIO Function Table

Default Icon
375 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BL702/704/706 Reference Manual
3.2.8 GPIO function setting
The function of GPIO is set through the GPIO_CFGCTL register group. The main setting items include:
func_sel: select GPIO function
pu: Choose whether to pull up
pd: Choose whether to drop down
drv: set drive capability
smt: Choose whether to enable Schmitt trigger
ie: set input enable
oe: set output enable
The functions that GPIO can be set include:
Flash/QSPI: Set GPIO as QSPI function, which can be connected to Flash as a program storage/running medium
SPI: Set GPIO as SPI function
I2C: Set GPIO as I2C function
UART: Set GPIO as UART function
PWM: set GPIO as PWM function
ANA: Set GPIO as Analog function
SWGPIO: set GPIO as general IO function
JTAG: Set GPIO as JTAG function
Other multiplexing functions
In order to meet customer needs as much as possible, each GPIO can basically select the above optional functions.
When an optional function is selected, GPIO and the corresponding function signal are shown in the following table:
Table 3.2: GPIO function table 1
GPIO
CLK_OUT Flash_PSRAM I2S SPI0 I2C UART PWM
GPIO0 clk_out[0] BCLK MISO/MOSI SCL SIG0/SIG4 PWM[0]
GPIO1 clk_out[1] FS MOSI/MISO SDA SIG1/SIG5 PWM[1]
GPIO2 clk_out[0] DIO/DO SS SCL SIG2/SIG6 PWM[2]
GPIO3 clk_out[1] RCLK_O/DI SCLK SDA SIG3/SIG7 PWM[3]
GPIO4 clk_out[0] BCLK MISO/MOSI SCL SIG4/SIG0 PWM[4]
GPIO5 clk_out[1] FS MOSI/MISO SDA SIG5/SIG1 PWM[0]
BL702/704/706 Reference Manual 33/ 375
@2021 Bouffalo Lab
guest@bouffalolab

Table of Contents