Hitachi H8S/2646 Hardware Manual page 655

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

Bits 15 to 10—Reserved: These bits cannot be read from or written to.
Bits 9 to 0—Duty (DT): Bits 9 to 0 set the PWM output duty according to the values in bits 9 to 0
in the buffer register that is transferred by a PWCYR2 compare match. A high level (or a low level
when the corresponding bit in PWPR2 is set to 1) is output from the time PWCNT2 is cleared by a
PWCYR2 compare match until a PWDTR2 compare match occurs. When all the bits are 0, there
is no high-level output period (no low-level output period when the corresponding bit in PWPR2
is set to 1).
PWCNT2
(lower 10 bits)
PWCYR2
(lower 10 bits)
PWDTR2
(lower 10 bits)
PWM output
Figure 17-6 Duty Register Compare Match (OPS = 0 in PWPR2)
PWCNT2
0
(lower 10 bits)
PWCYR2
(lower 10 bits)
PWDTR2
(lower 10 bits)
PWM output
(M = 0)
PWM output
(0 < M < N)
PWM output
(N ≤ M)
Figure 17-7 Differences in PWM Output According to Duty Register Set Value
0
1
N
M
1
(OPS = 0 in PWPR2)
Compare match
M–2
M–1
M
N
M
N–1
0
N–2
N–1
0
623

Advertisement

Table of Contents
loading

Table of Contents