CHAPTER 9 TIMER/COUNTER FUNCTION
344
User’s Manual U15195EJ5V0UD
(11) Timer 2 capture/compare 1 to 4 status register 0 (CCSTATE0)
The CCSTATE0 register indicates the status of the timer 2 subchannel sub capture/compare register
(CVSEn0) and the timer 2 subchannel 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
After reset
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 a write access to the
CCSTATE0 register when no capture operation or compare match
has occurred. When bit manipulation is performed on the CEFE1
(CEFE3) and CEFE2 (CEFE4) bits, both bits are cleared.
Indicates the capture buffer status.
BFFEn1 BFFEn0
Capture
buffer
status
0
0
No value in buffer
0
1
Subchannel n master register (CVPEn0) contains a
capture value. Slave register (CVSEn0) does not
contain a value.
1
0
Both subchannel 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 subchannel
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
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...