English
Language : 

HD6433308 Datasheet, PDF (138/349 Pages) Hitachi Semiconductor – Hitachi Single-Chip MicroComputer
Section 6. 16-Bit Free-Running Timer
6.1 Overview
The H8/330 has an on-chip 16-bit free-running timer (FRT) module that uses a 16-bit free-running
counter as a time base. Applications of the FRT module include rectangular-wave output (up to
two independent waveforms), input pulse width measurement, and measurement of external clock
periods.
6.1.1 Features
The features of the free-running timer module are listed below.
• Selection of four clock sources
The free-running counter can be driven by an internal clock source (Ø/2, Ø/8, or Ø/32), or an
external clock input (enabling use as an external event counter).
• Two independent comparators
Each comparator can generate an independent waveform.
• Four input capture channels
The current count can be captured on the rising or falling edge (selectable) of an input signal.
The four input capture registers can be used separately, or in a buffer mode.
• Counter can be cleared under program control
The free-running counters can be cleared on compare-match A.
• Seven independent interrupts
Compare-match A and B, input capture A to D, and overflow interrupts are requested
independently.
6.1.2 Block Diagram
Figure 6-1 shows a block diagram of the free-running timer.
123