
R01UH0336EJ0102 Rev.1.02
Page 934 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 16 TPBA
(1)
List of Operations
Table 16-20
16-Bit Counter Function
Operation
Setting Condition
16-bit
counter
Start
Writing 1 to TPBAnTS or synchronous start trigger
Clear
Compare match of TPBAnCMP0 buffer register and 16-bit counter
Stop
Writing 1 to TPBAnTT
Table 16-21
7-Bit Counter Function
Operation
Setting Condition
7-bit
counter
Start
Writing 1 to TPBAnTS or synchronous start trigger
Clear
Compare match of TPBAnCMP1 buffer register and 7-bit counter
Stop
Writing 1 to TPBAnTT
Table 16-22
Functions of Compare Registers
Register
Rewrite Method
Rewrite during
Operation
Function
TPBAnCMP0
Reload
Possible
Setting period
TPBAnCMP1
Reload
Possible
Setting number of patterns
TPBAnBUFm
Rewrite at any time
Possible
Setting duty
TPBAnTOL
Reload
Possible
Setting output level
Table 16-23
Timer Output Function
Pin
Function
TPBnO
•
When output is enabled (TPBAnTOE = 01
H
)
PWM output by compare match of the TPBAnBUFm buffer register
(TPBAnCB2) and the 16-bit counter
•
When output is disabled (TPBAnTOE = 00
H
)
TPBAnTO set value
Table 16-24
Interrupt Requests
Interrupt
Function
INTTPBAnIPRD
Period-matched detection interrupt
INTTPBAnIDTY
Duty-cycle-matched detection interrupt
INTTPBAnIPAT
Number-of-patterns matched detection interrupt