Timer G Application Example - Hitachi H8/3937 Series Hardware Manual

Table of Contents

Advertisement

9.5.6

Timer G Application Example

Using timer G, it is possible to measure the high and low widths of the input capture input signal
as absolute values. For this purpose, CCLR1 and CCLR0 should both be set to 1 in TMG.
Figure 9-16 shows an example of the operation in this case.
Input capture
input signal
H'FF
Input capture
register GF
Input capture
register GR
H'00
232
Figure 9-16 Timer G Application Example
TCG
Counter cleared

Advertisement

Table of Contents
loading

Table of Contents