
R01UH0336EJ0102 Rev.1.02
Page 922 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 16 TPBA
(10)
TPBAn Pattern Number Setting Register (TPBAnCMP1)
This register sets the number of PWM output patterns.
Access
This register can be read/written in 8-bit units.
Address
<TPBAn_base1> + 104
H
Initial value
00
H
This register is initialized by a reset from any source.
Caution
This register is a register to be reloaded. Rewrite during timer operation is
reflected at the next reload timing. For details on reload, see Section 16.5.2,
Compare Register Rewrite Operation.
Caution
If 64 or a greater number is set as the number of patterns when the duty
setting pattern is in 16 bits × 64 patterns mode (TPBAnDPS = 0), the address
pointer changes from 63 to 00, and the duty value is transferred from 00 again.
A number-of-patterns matched detection interrupt signal (INTTPBAnIPAT) is
output by the match of the specified number of patterns and the lower 7-bit
values of TPBAnCNT1.
7
6
5
4
3
2
1
0
-
TPBAnCMP1
R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Table 16-16
TPBAnCMP1 Register Contents
Bit Position
Bit Name
Function
6 to 0
TPBAnCMP1
[6:0]
Sets the number of patterns within the following range.
TPBAnDPS = 0: 0 to 63
TPBAnDPS = 1: 0 to 127