Rev.6.00 Oct.28.2004 page 433
of 1016
REJ09B0138-0600H
Section 12 8-Bit Timers
12.1
Overview
The H8S/2357 Group includes an 8-bit timer module with two channels (TMR0 and TMR1). Each channel has an 8-bit
counter (TCNT) and two time constant registers (TCORA and TCORB) that are constantly compared with the TCNT
value to detect compare match events. The 8-bit timer module can thus be used for a variety of functions, including pulse
output with an arbitrary duty cycle.
12.1.1
Features
The features of the 8-bit timer module are listed below.
•
Selection of four clock sources
The counters can be driven by one of three internal clock signals (ø/8, ø/64, or ø/8192) or an external clock input
(enabling use as an external event counter).
•
Selection of three ways to clear the counters
The counters can be cleared on compare match A or B, or by an external reset signal.
•
Timer output control by a combination of two compare match signals
The timer output signal in each channel is controlled by a combination of two independent compare match signals,
enabling the timer to generate output waveforms with an arbitrary duty cycle or PWM output.
•
Provision for cascading of two channels
Operation as a 16-bit timer is possible, using channel 0 for the upper 8 bits and channel 1 for the lower 8 bits (16-
bit count mode).
Channel 1 can be used to count channel 0 compare matches (compare match count mode).
•
Three independent interrupts
Compare match A and B and overflow interrupts can be requested independently.
•
A/D converter conversion start trigger can be generated
Channel 0 compare match A signal can be used as an A/D converter conversion start trigger.
•
Module stop mode can be set
As the initial setting, 8-bit timer operation is halted. Register access is enabled by exiting module stop mode.
Содержание ZTAT H8S/2357F
Страница 4: ......
Страница 28: ...Rev 6 00 Oct 28 2004 page xxiv of xxiv REJ09B0138 0600H...
Страница 82: ...Rev 6 00 Oct 28 2004 page 54 of 1016 REJ09B0138 0600H...
Страница 108: ...Rev 6 00 Oct 28 2004 page 80 of 1016 REJ09B0138 0600H...
Страница 364: ...Rev 6 00 Oct 28 2004 page 336 of 1016 REJ09B0138 0600H...
Страница 438: ...Rev 6 00 Oct 28 2004 page 410 of 1016 REJ09B0138 0600H...
Страница 566: ...Rev 6 00 Oct 28 2004 page 538 of 1016 REJ09B0138 0600H...
Страница 588: ...Rev 6 00 Oct 28 2004 page 560 of 1016 REJ09B0138 0600H...
Страница 688: ...Rev 6 00 Oct 28 2004 page 660 of 1016 REJ09B0138 0600H...
Страница 694: ...Rev 6 00 Oct 28 2004 page 666 of 1016 REJ09B0138 0600H...
Страница 708: ...Rev 6 00 Oct 28 2004 page 680 of 1016 REJ09B0138 0600H...
Страница 1044: ...Rev 6 00 Oct 28 2004 page 1016 of 1016 REJ09B0138 0600H...
Страница 1047: ...H8S 2357 Group H8S 2357F ZTATTM H8S 2398F ZTATTM Hardware Manual 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan...