8-Bit Pwm Output; Operation (Timer 0, Timer 2 And Timer 4) - Panasonic MN101L Series User Manual

Lsi
Table of Contents

Advertisement

8.6 8-bit PWM Output

8.6.1

Operation (Timer 0, Timer 2 and Timer 4)

8-bit PWM Output Operation
Timer 0, Timer 2 and Timer 4 have PWM function. a PWM waveform with a given duty cycle is generated by set-
ting TMnOC to "High" period of the PWM duty. And the period of the PWM is the time of the full count overflow
of the 8-bit timer.
For PWM output pins, refer to Table:8.1.1.
Count Timing of PWM Output (at Normal)
Count
clock
TMnEN
bit
Compare
register
Binary
00
01
counter
(A)
TMnIO output
(PWM output)
Time set in the compare register
Interrupt
request
When TMnPOP bit is "0":
• (A) PWM output is "High" while TMnBC counts up from "0x01" to the setting value of TMnOC.
• (B) PWM output changes to "Low" when TMnBC matches the setting value of TMnOC, then TMnBC contin-
ues counting up until it overflows.
As for the initial setting, the PWM output is changed from "Low" to "High" when setting the
TMnMD.TMnPWM (when TMnPOP bit = 0) to select the PWM operation.
..
..
N-1
N
N+1 N+2
(B)
PWM basic waveform (overflow time of binary counter)
Figure:8.6.1 Count Timing of PWM Output (at Normal)
N
FE
FF
00
01
N-1
N
N+1
8-bit PWM Output
Chapter 8
8-bit Timer
VIII - 25

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents