Figure 10.14 Example Of Buffer Operation Setting Procedure - Renesas H8S/2368 Series Hardware Manual

16-bit single-chip microcomputer
Table of Contents

Advertisement

Buffer operation
Select TGR function
Set buffer operation
Start count
<Buffer operation>

Figure 10.14 Example of Buffer Operation Setting Procedure

Examples of Buffer Operation:
1. When TGR is an output compare register
Figure 10.15 shows an operation example in which PWM mode 1 has been designated for
channel 0, and buffer operation has been designated for TGRA and TGRC. The settings used
in this example are TCNT clearing by compare match B, 1 output at compare match A, and 0
output at compare match B.
As buffer operation has been set, when compare match A occurs the output changes and the
value in buffer register TGRC is simultaneously transferred to timer general register TGRA.
This operation is repeated each time compare match A occurs.
For details on PWM modes, see section 10.4.5, PWM Modes.
Rev. 2.00, 05/03, page 420 of 820
[1] Designate TGR as an input capture register or
output compare register by means of TIOR.
[2] Designate TGR for buffer operation with bits
[1]
BFA and BFB in TMDR.
[3] Set the CST bit in TSTR to 1 to start the count
operation.
[2]
[3]

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s seriesH8s/2300 series

Table of Contents