
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
Capture/Compare Units
User’s Manual
17-28
V2.2, 2004-01
CC12_X1, V2.1
To setup a single event operation for a CCy register, software first programs the desired
compare operation and compare value, and then sets the respective bit in register
CCx_SEM to enable the single event mode. At last, the respective event enable bit in
register CCx_SEE is set.
When the programmed compare match occurs, all operations of the selected compare
mode take place. In addition, hardware automatically disables all further compare
matches and reset the event enable bit in register CCx_SEE to 0. As long as this bit is
cleared, any compare operation is disabled. To setup a new event, this bit must first be
set again.
CC1_SEE
Single Event Enable Reg.
SFR (FE2E
H
/17
H
)
Reset Value: 0000
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SEE
15
SEE
14
SEE
13
SEE
12
SEE
11
SEE
10
SEE
9
SEE
8
SEE
7
SEE
6
SEE
5
SEE
4
SEE
3
SEE
2
SEE
1
SEE
0
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
CC2_SEE
Single Event Enable Reg.
SFR (FE2A
H
/15
H
)
Reset Value: 0000
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SEE
15
SEE
14
SEE
13
SEE
12
SEE
11
SEE
10
SEE
9
SEE
8
SEE
7
SEE
6
SEE
5
SEE
4
SEE
3
SEE
2
SEE
1
SEE
0
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
rwh
Field
Bits
Type
Description
SEEy
15 … 0
rw
Single Event Enable Control
0
Single Event disabled for channel y
1
Single Event enabled for channel y
Note: This bit is cleared by hardware after the event.