Fig. 2.12 Pwm Pulse Output - Fujitsu F2MC-8L Family series Hardware Manual

Table of Contents

Advertisement

Peripherals
• When COMR is 00
Counter value
PWM pulse output
• When COMR is 80
Counter value
PWM pulse output
• When COMR is FF
Counter value
HARDWARE CONFIGURATION
(b) PWM operation
Setting the P/TX bit of the CNTR to 1 gives the PWM operation mode. The
COMR specifies the duty of the output pulse. Pulses can be output with
1/256 resolution and a duty of 0% to 99.6%.
When 0 (00
) is written at the COMR, the duty of the PWM output pulse is
H
0%; when 128 (80
) is written, the duty is 50%, and when 255 (FF
H
written, it is 99.6%.
The value of COMR is transferred to the comparator latch when the value
of the counter is 00
. If the value of the COMR is rewritten in the PWM
H
operation mode, it becomes effective from the next cycle.
At starting (counter = 00), output is high. When the counter matches the
compare register, output goes low.
H
•••••••••
00
H
H
•••••
•••••
00
H
H
•••••••••
00
H

Fig. 2.12 PWM Pulse Output

In the PWM operation mode, the values at the TIR bit of the CNTR have
no meaning. No interruption occurs even if the TIE bit are 1.
The cycle of the PWM pulse can be changed by switching the count clock
pulse.
The count clock pulse can be selected from three clock pulses of the
prescaler and the clock pulse of the internal timer by the clock pulse select
bits P1 and P0 of the CNTR.
2– 29
•••••••
FF
00
H
H
••••• ••••• FF
•••••
80
00
H
H
H
comparison match
•••••••••
FF
00
H
H
) is
H
•••••
80
H

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb89950 series

Table of Contents