CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
232
User’s Manual U14492EJ3V0UD
(5) Compare registers 003, 013 (CM003, CM013)
CM0n3 is a 16-bit register that always compare its value with the value of TM0n. If the values match, CM0n3
outputs an interrupt signal (INTCM0n3). CM0n3 controls the maximum count value of TM0n, and if the values
match, it performs the following operations at the next timer count clock.
•
In triangular wave setting mode (PWM modes 0, 1):
Switches TM0n operation from up count to down
count
•
Sawtooth wave setting mode (PWM mode 2):
Clears the count value of TM0n
CM0n3 also has a buffer register (BFCMn3) and transfers the buffer contents in the next base clock (f
CLK
)
cycle to CM0n3. Transfer enable or disable is controlled by the BFTE3 bit of the TMC0n register.
(6) Buffer registers CM00 to CM02, CM10 to CM12 (BFCM00 to BFCM02, BFCM10 to BFCM12)
BFCMn0 to BFCMn2 are 16-bit registers that transfer data to the compare register (CM0n0 to CM0n2)
corresponding to each buffer register when an interrupt signal (INTCM0n3/INTTM0n) is generated.
BFCMn0 to BFCMn2 can be read/written in 16-bit units.
Caution
The set values of the BFCMn0 to BFCMn2 registers are transferred to the CM0n0 to CM0n2
registers in the following timing (n = 0, 1).
••••
When TM0CEn bit of TMC0n register = 0: Transfer at next operation timing after writing to
BFCMn0 to BFCMn2 registers
••••
When TM0CEn bit of TMC0n register = 1: Value of BFCMn0 to BFCMn2 registers is
transferred to CM0n0 to CM0n2 registers upon occurrence of INTTM0n or INTCM0n3. At
this time, transfer enable or disable is controlled by the BFTEN bit of the timer control
register (TMC0n).
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
BFCM00
Address
FFFFF572H
Initial value
FFFFH
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
BFCM10
Address
FFFFF5B2H
Initial value
FFFFH
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
BFCM01
Address
FFFFF574H
Initial value
FFFFH
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
BFCM11
Address
FFFFF5B4H
Initial value
FFFFH
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
BFCM02
Address
FFFFF576H
Initial value
FFFFH
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
BFCM12
Address
FFFFF5B6H
Initial value
FFFFH
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...