CHAPTER 9 TIMER/COUNTER FUNCTION
338
User’s Manual U15195EJ5V0UD
(7) Timer 2 subchannel 0, 5 capture/compare control register (CMSE050)
The CMSE050 register controls the timer 2 subchannel 0 capture/compare register (CVSE00) and the timer 2
subchannel 5 capture/compare register (CVSE50).
This register can be read/written in 16-bit units.
14
0
13
EEVE5
12
0
2
CCSE0
3
LNKE0
4
0
5
EEVE0
6
0
7
0
8
0
9
0
10
CCSE5
11
LNKE5
15
0
1
0
0
0
CMSE050
Address
FFFFF64AH
After reset
0000H
Bit position
Bit name
Function
13, 5
EEVEn
Enables/disables event detection by subchannel n capture/compare register.
0: ED1 and ED2 signal inputs ignored (nothing is done even if these signals are
input).
1: Operation caused by ED1 and ED2 signal inputs enabled.
11, 3
LNKEn
Specifies capture event signal input from edge selection to ED1 or ED2.
0: In capture register mode, ED1 signal input selected.
In compare register mode, LNKEn bit has no influence.
1: In capture register mode, ED2 signal input selected.
In compare register mode, LNKEn bit has no influence.
10, 2
CCSEn
Selects capture/compare register operation mode.
0: Operates in capture register mode. The TM20 and TM21 count statuses can
be read with subchannel 0 and subchannel 5, respectively.
1: Operates in compare register mode. TM2m is cleared upon detection of match
between subchannel n and TM2m.
Remark
m = 0, 1
n = 0, 5