Sample Setting Procedure; Figure 11.2 Sample Operating Mode Setting Procedure - Renesas H8S Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8S Series:
Table of Contents

Advertisement

Section 11 Motor Management Timer (MMT)
11.4.1

Sample Setting Procedure

An example of the operating mode setting procedure is shown in figure 11.2.
Halt count operation
Set TCNT
Set dead time carrier period
Set PWM output level
Set operating mode
Set external pin functions
Start count operation
<Operating mode>

Figure 11.2 Sample Operating Mode Setting Procedure

Rev. 6.00 Mar 15, 2006 page 254 of 570
REJ09B0211-0600
Set TBR
Clear the CST bit to 0 in the timer control register
(TCNR) to halt timer counter operation. Make the
operating mode setting while TCNT is halted.
Set 2Td (Td: dead time) in TCNT.
Set dead time Td in the dead time data register
(TDDR), set 1/2 the carrier period in the timer period
buffer register (TPBR), and set {TPBR value + 2Td} in
the timer period data register (TPDR).
Set the output {PWM duty initial value − Td} in the free
operation addresses of the buffer registers (TBRU,
TBRV, TBRW).
Set the PWM output level with bits OLSN and OLSP in
the timer mode register (TMDR).
Set the operating mode in the timer mode register
(TMDR). The PUOA, PUOB, PVOA, PVOB, PWOA,
and PWOB pins are output pins.
Set the external pin functions with the MMT pin control
register.
Set the CST bit to 1 in TCNR to start the count
operation.

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2600 seriesH8s/2612 seriesH8s/2612 f-ztat

Table of Contents