EasyManua.ls Logo

APPOTECH CW6632B - Page 54

Default Icon
133 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...
48 6.5 GPIO Special Function Registers
CW6632B Bluetooth 3.0 Audio Player SOC Version 1.0.0
Copyright ©2015, www.appotech.com. All Rights Reserved.
1 = P1x is in high state when read and output high at P1x when write
Register 6-8 P2 P2 data register
Position
7
6
5
4
3
2
1
0
Name
P2
Default
x
x
x
x
x
x
x
x
Access
W/R
W/R
W/R
W/R
W/R
W/R
W/R
W/R
P2[x]: P2x data. Valid when P2x is used as GPIO
0 = P2x is in low state when read and output low at P2x when write
1 = P2x is in high state when read and output high at P2x when write
Register 6-9 P3 P3 data register
Position
7
6
5
4
3
2
1
0
Name
P3
Default
x
x
x
x
x
x
x
x
Access
W/R
W/R
W/R
W/R
W/R
W/R
W/R
W/R
P3[x]: P3x data. Valid when P3x is used as GPIO
0 = P3x is in low state when read and output low at P3x when write
1 = P3x is in high state when read and output high at P3x when write
Register 6-10 P4 P4 data register
Position
7
6
5
4
3
2
1
0
Name
P4
Default
-
-
x
x
x
x
x
x
Access
-
-
RO
RO
W/R
W/R
W/R
W/R
P3[x]: P3x data. Valid when P3x is used as GPIO
0 = P3x is in low state when read and output low at P3x when write
1 = P3x is in high state when read and output high at P3x when write
Table 6-3 DRVx register setting
Register
Address
Set bit “x” of PxDRV0 as “1”
Clear bit “x” of PxDRV0 as “0”
Initial value
P0DRV0
R/W
Driving is 24mA
Driving is 8mA
00h
P1DRV0
R/W
Driving is 24mA
Driving is 8mA
00h
P2DRV0
R/W
Driving is 24mA
Driving is 8mA
00h
P3DRV0
R/W
Driving is 24mA
Driving is 8mA
00h
P4DRV0
R/W
Driving
Driving is 8mA
00h
Table 6-4 PUPx register setting
Register
Address
Set bit “x” of PxPU0 as “1”
Clear bit “x” of PxPU0 as “0”
Initial value
P0PU
R/W
Enable pull-up
Disable pull-up
00h

Table of Contents