Rev. 1.00, 09/03, page 385 of 704
13.4.3
Measurement of 8-Bit Timer Divided Waveform Period
The timer connection, TMR1, and FRT can be used to measure the period of an IHI signal divided
waveform. Since the TMR1 can be cleared by a rising edge of the inverted IVI signal, the rise and
fall of the IHI signal divided waveform can be synchronized with the IVI signal. This enables
period measurement to be carried out efficiently. Figure 13.8 shows a block diagram for the period
measurement of the 8-bit timer divided waveform.
To measure the period of an IHI signal divided waveform, TCNT of the TMR1 is set to count the
external clock (IHI signal) pulses and to be cleared on the rising edge of the external reset signal
(inverse of the IVI signal). The value to be used as the division ratio is written to TCORA, and the
TMO output method is specified by the OS bit in TCSR.
Examples of TCR and TCSR settings of the TMR1 and FRT are shown in table 13.7, and the
timing chart for measurement of the IVI signal and IHI signal divided waveform periods is shown
in figure 13.9. The period of the IHI signal divided waveform is given by (ICRD(3) – ICRD(2))
×
resolution.
Internal clock
Clock
Clear
Clear
Capture
Control logic
TCNT
CMA
CMB
TMO
FTIB
Control logic
IVI signal
IHI signal
TCORA
Comparator A
TCORB
Comparator B
FRC
ICRB
FRT
TMR1
Figure 13.8 Block Diagram for Measurement of 8-Bit Timer Divided Waveform Period
Содержание H8S/2437
Страница 2: ...Rev 1 00 09 03 page ii of xxxviii ...
Страница 8: ...Rev 1 00 09 03 page viii of xxxviii ...
Страница 32: ...Rev 1 00 09 03 page xxxii of xxxviii ...
Страница 38: ...Rev 1 00 09 03 page xxxviii of xxxviii ...
Страница 168: ...Rev 1 00 09 03 page 130 of 704 ...
Страница 336: ...Rev 1 00 09 03 page 298 of 704 ...
Страница 402: ...Rev 1 00 09 03 page 364 of 704 ...
Страница 454: ...Rev 1 00 09 03 page 416 of 704 ...
Страница 512: ...Rev 1 00 09 03 page 474 of 704 ...
Страница 562: ...Rev 1 00 09 03 page 524 of 704 ...
Страница 648: ...Rev 1 00 09 03 page 610 of 704 ...
Страница 672: ...Rev 1 00 09 03 page 634 of 704 ...
Страница 732: ...Rev 1 00 09 03 page 694 of 704 ...
Страница 742: ...Rev 1 00 09 03 page 704 of 704 ...
Страница 745: ......
Страница 746: ...H8S 2437 Group Hardware Manual REJ09B0059 0100Z ...