NEC UPD703116 User Manual page 349

32-bit single-chip microcontrollers
Table of Contents

Advertisement

(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.
15
<14>
13
CCSTATE0
0
CEFE4
BFFE41
BFFE40
Bit position
Bit name
14, 10, 6, 2
CEFEn
13, 12, 9, 8,
BFFEn1,
5, 4, 1, 0
BFFEn0
Remark
m = 12, 34
n = 1 to 4
CHAPTER 9 TIMER/COUNTER FUNCTION
12
11
<10>
9
8
7
0
CEFE3
BFFE31
BFFE30
0
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
0
0
0
1
1
0
1
1
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.
User's Manual U14492EJ5V0UD
<6>
5
4
3
<2>
1
CEFE2
BFFE21
BFFE20
0
CEFE1
BFFE11
Function
Capture buffer status
No value in buffer
Sub-channel n master register (CVPEn0) contains a
capture value. Slave register (CVSEn0) does not
contain a value.
Both sub-channel n master register (CVPEn0) and
slave register (CVSEn0) contain a capture value.
Unused
0
Address
Initial value
BFFE10
FFFFF666H
0000H
349

Advertisement

Table of Contents
loading

Table of Contents