Download S3FN41F External Interrupt

Transcript
S3FN41F_Application Note_REV1.00
2 External Interrupt
2.2 External Interrupt Mapping
If you choose which external interrupt you use, you should register target external interrupt to CM_WCR0 or
CM_WCR1 (Wakeup Control Register 0 or 1). You can register up-to eight sources from WSRC0 to WSRC7.
10
9
8
7
6
5
8
7
6
5
4
3
4
3
2
1
0
1
0
WSRC0
11
RSVD
12
WSRC1
13
RSVD
CM_WCR1 (from WSRC4 to WSRC7)
20
19
18
17
16
15
14
13
12
11
10
9
2
WSRC4
21
14
EDGE0
22
15
EDGE4
23
16
WEN0
24
17
WEN4
25
18
WSRC5
26
RSVD
RSVD
27
EDGE6
EDGE7
28
WEN6
29
WSRC7
30
WEN7
Table 3
31
19
RSVD
20
EDGE1
21
RSVD
22
EDGE5
23
WEN1
24
WEN5
25
WSRC2
26
CM_WCR0 (from WSRC0 to WSRC3)
WSRC6
RSVD
27
RSVD
EDGE3
28
EDGE2
29
WEN2
30
WSRC3
31
WEN3
Table 2
To enroll target external interrupt, you should fill out three fields in CM_WCR0/1 (Wakeup Control Register).
Name
Description
WSRCx
External Interrupt/Wake-Up Source Selection Field
Refer to the below table.
EDGEx
Edge Type Selection Bit
0 = Rising edge trigger selected (for external event or interrupt)
1 = Falling edge trigger selected (for external event or interrupt)
WENx
External Interrupt/Wake-Up Enable/Disable Control Bit
0 = The edge trigger selected by EDGEx bit disable
1 = The edge trigger selected by EDGEx bit enable
NOTE: x = 0, 1, 2, 3, 4, 5, 6 , or 7
12