CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
356
User’s Manual U14492EJ3V0UD
(11) Timer 2 capture/compare 1 to 4 status register 0 (CCSTATE0)
The CCSTATE0 register indicates the status of the timer 2 sub-channel sub capture/compare register
(CVSEn0) and the timer 2 sub-channel main capture/compare register (CVPEn0) (n = 1 to 4).
This register can be read/written in 16-bit units.
When the higher 8 bits of the CCSTATE0 register are used as the CCSTATE0H register, and the lower 8 bits
are used as the CCSTATE0L register, they can be read/written in 8-bit or 1-bit units.
Caution The BFFEn1 and BFFEn0 bits are read-only bits.
<14>
CEFE4
13
BFFE41
12
BFFE40
<2>
CEFE1
3
0
4
BFFE20
5
BFFE21
<6>
CEFE2
7
0
8
BFFE30
9
BFFE31
<10>
CEFE3
11
0
15
0
1
BFFE11
0
BFFE10
CCSTATE0
Address
FFFFF666H
Initial value
0000H
Bit Position
Bit Name
Function
14, 10, 6, 2
CEFEn
Indicates the capture/compare event occurrence status.
0: In capture register mode: No capture operation has occurred.
In compare register mode: No compare match has occurred.
1: In capture register mode: At least one capture operation has occurred.
In compare register mode: At least one compare match has occurred.
Caution
The CEFEn bit can be cleared (0) by performing write access to the
CCSTATE0 register while no capture operation or compare match
occurs. When bit manipulation is performed for the CEFE1 (CEFE3)
bit and the CEFE2 (CEFE4) bit, both bits are cleared.
Indicates the capture buffer status.
BFFEn1
BFFEn0
Capture Buffer Status
0
0
No value in buffer
0
1
Sub-channel n master register (CVPEn0) contains a
capture value. Slave register (CVSEn0) does not
contain a value.
1
0
Both sub-channel n master register (CVPEn0) and
slave register (CVSEn0) contain a capture value.
1
1
Unused
13, 12, 9, 8,
5, 4, 1, 0
BFFEn1,
BFFEn0
Caution
The BFFEn1 and BFFEn0 bits return a value only when sub-channel
n sub capture/compare register (CVSEn0) buffer operation (bit
BFEEn of CMSEm0 register = 1) is selected or when capture register
mode (bit CCSEn of CMSEm0 register = 0) is selected. “0” is read
when the compare register mode (CCSEn bit = 1) is selected.
Remark
m = 12, 34
n = 1 to 4