60
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.
6.5.1
149B
wakeup registers
Register 6-30 PWKEN
– Port wakeup enable
Position
7
6
5
4
3
2
1
0
Name
WKPND3
WKPND2
WKPND1
WKPND0
PWKEN3
PWKEN2
PWKEN1
PWKEN0
Default
0
0
0
0
1
1
1
1
Access
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
WKPND3
0 = No INT3 wakeup event occurred
1 = INT3 wakeup event occurred
WKPND2
0 = No INT2/DP/DM/IRTWKO wakeup event occurred
1 = INT2/DP/DM/IRTWKO wakeup event occurred
WKPND1
0 = No INT1 wakeup event occurred
1 = INT1 wakeup event occurred
WKPND0
0 = No INT0 wakeup event occurred
1 = INT0 wakeup event occurred
PWKEN3
0 = Enable INT3 Wakeup
1 = Disable INT3 Wakeup
PWKEN2
0 = Enable INT3/DP/DM/IRTWKO Wakeup
1 = Disable INT3/DP/DM/IRTWKO Wakeup
PWKEN1
0 = Enable INT1 Wakeup
1 = Disable INT1 Wakeup
PWKEN0
0 = Enable INT0 Wakeup
1 = Disable INT0 Wakeup
Note:
1.
to enable WKPNDx, set PWKENx to „0‟.
2.
To clear WKPNDx, write „0‟ to WKPNDx. WKPNDx will be „0‟ 2 clocks later after write „0‟ to WKPNDx.
3.
WKPNDx is cleared when PWKENx is „1‟.
Register 6-31 PWKEDGE
– Port wakeup Event select
Position
7
6
5
4
3
2
1
0
Name
LDOBGOE SPI0PS1
COSEL
WKEDG3
WKEDG2
WKEDG1
WKEDG0