CHAPTER 27 STEPPER MOTOR CONTROLLER
■ Operation of PWM-pulse generator
When the counter is started (PWC: CE = 1), the counter starts incrementing from 00
clock rising. The PWM output pulse wave remains "H" until the value of the counter matches the value set
to PWM compare register, and then changes to and remains "L" until the value of the counter overflows (FF
--> 00
). Figure 27.7-2 "Examples of PWM1 and PWM2 output waveforms" shows the PWM waveform
H
generated by the PWM generator.
Figure 27.7-2 Examples of PWM1 and PWM2 output waveforms
When the value of compare register is "00
Value of counter:
PWM waveform:
When the value of compare register is "80
Value of counter:
PWM waveform:
When the value of compare register is "FF
Value of counter:
PWM waveform:
704
MB96300 Super Series Hardware Manual
"/"000
"(duty ratio is 0%):
H
H
"/"200
"(duty ratio is 50%):
H
H
"/"3FF
"(duty ratio is 99.6%/99.9%):
H
H
One count
on the selected count
H
H