NEC 78K0S/KB1+ User Manual page 144

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KB1+:
Table of Contents

Advertisement

(2) Timing chart
The operation timing in PWM output mode is shown below.
Caution Make sure that the CMP11 register setting value (M) and CMP01 register setting value (N) are
within the following range.
00H ≤ CMP11 (M) < CMP01 (N) ≤ FFH
Count clock
8-bit timer counter H1
00H 01H
CMP01
CMP11
TMHE1
INTTMH1
TOH1
(TOLEV1 = 0)
<1>
TOH1
(TOLEV1 = 1)
<1> The count operation is enabled by setting the TMHE1 bit to 1. Start 8-bit timer counter H1 by masking one
count clock to count up. At this time, TOH1 output remains inactive (when TOLEV1 = 0).
<2> When the values of 8-bit timer counter H1 and the CMP01 register match, the TOH1 output level is inverted,
the value of 8-bit timer counter H1 is cleared, and the INTTMH1 signal is output.
<3> When the values of 8-bit timer counter H1 and the CMP11 register match, the level of the TOH1 output is
returned. At this time, the 8-bit timer counter value is not cleared and the INTTMH1 signal is not output.
<4> Clearing the TMHE1 bit to 0 during timer H1 operation makes the INTTMH1 signal and TOH1 output inactive.
144
CHAPTER 8 8-BIT TIMER H1
Figure 8-9. Operation Timing in PWM Output Mode (1/4)
(a) Basic operation (00H < CMP11 < CMP01 < FFH)
A5H 00H 01H 02H
<2>
User's Manual U17446EJ3V1UD
A5H 00H
01H 02H
A5H
01H
<3>
A5H 00H
<4>

Advertisement

Table of Contents
loading

Table of Contents