BL602/604 Reference Manual
• Floating output
• Analog input optional function
• Analog output optional function
• Digital optional functions
The basic block diagram of the GPIO module is shown below:
ON/OFF
output
control
in
p
u
t re
g
ist
e
r
o
u
tp
u
t re
g
ist
e
r
peripheral optional function input
analog input
/
RXWSXW
bus read
bus write
interrupt detection
and control
interrupt inout
Rd
Ru
GND
VCC
bus read
peripheral optional function output
Figure 3.1: GPIO Basic Struct
3.2.8 GPIO function
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 pull down
• drv: set the driving capability
• smt: select whether to enable Schmitt trigger
• ie: set input enable
• oe: set output enable
BL602/604 Reference Manual
25/ 195
@2020 Bouffalo Lab