Datasheet

Section 11 16-Bit Timer Pulse Unit (TPU)
Rev. 6.00 Mar. 18, 2010 Page 425 of 982
REJ09B0054-0600
Input Capture/Compare Match Interrupt: An interrupt is requested if the TGIE bit in TIER is
set to 1 when the TGF flag in TSR is set to 1 by the occurrence of a TGR input capture/compare
match on a particular channel. The interrupt request is cleared by clearing the TGF flag to 0. In the
H8S/2227 Group, the TPU has eight input capture/compare match interrupts, four for channel 0
and two each for channels 1 and 2. In other groups, the TPU has 16 input capture/compare match
interrupts, four each for channels 0 and 3, and two each for channels 1, 2, 4, and 5.
Overflow Interrupt: An interrupt is requested if the TCIEV bit in TIER is set to 1 when the
TCFV flag in TSR is set to 1 by the occurrence of TCNT overflow on a channel. The interrupt
request is cleared by clearing the TCFV flag to 0. In the H8S/2227 Group, the TPU has three
overflow interrupts, one each for channels 0 to 2. In other groups, the TPU has six overflow
interrupts, one each for channels 0 to 5.
Underflow Interrupt: An interrupt is requested if the TCIEU bit in TIER is set to 1 when the
TCFU flag in TSR is set to 1 by the occurrence of TCNT underflow on a channel. The interrupt
request is cleared by clearing the TCFU flag to 0. The TPU of the H8S/2227 Group has two
underflow interrupts, one each for channels 1 and 2. In other groups, the TPU has four underflow
interrupts, one each for channels 1, 2, 4, and 5.
11.6 DTC Activation
The DTC can be activated by the TGR input capture/compare match interrupt for a channel. For
details, see section 9, Data Transfer Controller (DTC).
In the H8S/2227 Group, a total of eight TPU input capture/compare match interrupts can be used
as DTC activation sources, four for channel 0 and two each for channels 1 and 2. In other groups,
a total of 16 TPU input capture/compare match interrupts can be used as DTC activation sources,
four each for channels 0 and 3, and two each for channels 1, 2, 4, and 5.
11.7 DMAC Activation (H8S/2239 Group Only)
The DMAC can be activated by the TGRA input capture/compare match interrupt for a channel.
For details, see section 8, DMA Controller (DMAC).
In the TPU, a total of six TGRA input capture/compare match interrupts can be used as DMAC
activation sources, one for each channel.