CHAPTER 7 TIMER/COUNTER FUNCTION
Preliminary User’s Manual U15905EJ1V0UD
219
(2) Capture/compare registers n0 and n1 (CCn0 and CCn1) (n = 0, 1)
These capture/compare registers (n0 and n1) are 16-bit registers.
They can be used as capture registers or compare registers according to the CMSn0 and CMSn1 bit
specifications of timer mode control register n1 (TMCn1) (n = 0, 1).
These registers can be read or written in 16-bit units. (However, write operations can only be performed in
compare mode.)
CC1n
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
CC0n
FFFFF602H,
FFFFF604H
FFFFF612H,
FFFFF614H
0000H
0000H
Address
After reset
0
Remark
n = 0, 1
(a) Setting these registers as capture registers (CMSn0 and CMSn1 of TMCn1 = 0)
When these registers are set as capture registers, the valid edges of the corresponding external interrupt
signals INTPn0 and INTPn1 are detected as capture triggers. The timer TMn is synchronized with the
capture trigger, and the value of TMn is latched in the CCn0 and CCn1 registers (capture operation).
The valid edge of the INTPn0 pin is specified (rising, falling, or both rising and falling edges) according to
the IESn01 and IESn00 bits of the SESn register, and the valid edge of the INTPn1 pin is specified
according to the IESn11 and IESn10 bits of the SESn register (n = 0, 1).
The capture operation is performed asynchronously to the count clock. The latched value is held in the
capture register until another capture operation is performed (n = 0, 1).
When the TMCAEn bit of timer mode control register n0 (TMCn0) is 0, 0000H is read (n = 0, 1).
If these registers are specified as capture registers, an interrupt is generated by detecting the valid edge of
signals INTPn0 and INTPn1 (n = 0, 1).
Caution If the capture operation conflicts with the timing of disabling the TMn register from
counting (when the TMCEn bit of the TMCn0 register = 0), the captured data becomes
undefined. In addition, the INTCCn0 and INTCCn1 interrupts do not occur (n = 0, 1).
Содержание V850ES/SA2 UPD703201
Страница 2: ...Preliminary User s Manual U15905EJ1V0UD 2 MEMO ...
Страница 284: ... 4 6 7 6 7 8 9 9 6 Note 1 Note 2 0 0 9 9 6 1 1 0 1 9 0 0 0 6 7 0 0 0 0 0 0 0 1 1 1 0 0 0 0 3 1 6 7 6 7 ...
Страница 285: ... 6 7 ...
Страница 516: ...Preliminary User s Manual U15905EJ1V0UD 516 MEMO ...