English
Language : 

D12320VF25V Datasheet, PDF (403/1146 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
TCLKA
TCLKB
Edge
detection
circuit
Section 9 16-Bit Timer Pulse Unit (TPU)
Channel 1
TCNT1
TGR1A
(speed period capture)
TGR1B
(position period capture)
TCNT0
+
TGR0A (speed control period)
−
TGR0C
+
(position control period)
−
TGR0B (pulse width capture)
TGR0D (buffer operation)
Channel 0
Figure 9.33 Phase Counting Mode Application Example
9.5 Interrupts
9.5.1 Interrupt Sources and Priorities
There are three kinds of TPU interrupt source: TGR input capture/compare match, TCNT
overflow, and TCNT underflow. Each interrupt source has its own status flag and enable/disable
bit, allowing generation of interrupt request signals to be enabled or disabled individually.
When an interrupt request is generated, the corresponding status flag in TSR is set to 1. If the
corresponding enable/disable bit in TIER is set to 1 at this time, an interrupt is requested. The
interrupt request is cleared by clearing the status flag to 0.
Relative channel priorities can be changed by the interrupt controller, but the priority order within
a channel is fixed. For details, see section 5, Interrupt Controller.
Rev.7.00 Feb. 14, 2007 page 369 of 1108
REJ09B0089-0700