PWM Cycle

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PWM Cycle

1,700 Views
rapa
Contributor I
Hi All! I am working with MC9S08SH8 micro. In processor expert, i set period to 15 ms.Is it cycle time? I am asking,because i have measured PWM cycle by scope and i saw, that cycle is 7.5 ms Starting pulse width i set to be 100 Hz. Am i write?
Labels (1)
0 Kudos
Reply
2 Replies

739 Views
peg
Senior Contributor IV
Hi rapa,

There seems to be some mangling of terms here.
Period and cycle in this context should mean the same thing, The time to complete one cycle or until it repeats itself. e.g. the upward curved AND the downward curved parts of a sine wave.
For PWM it is the on time and the off time added together.
With PWM, the cycle time remains constant while the duty cycle changes. It can usually go from 0 to 100%. At 0 and 100 it is no longer a waveform but simply DC.
I don't know why you are talking of the pulse width in Hertz. Pulse width is a time or, in PWM as the frequency is fixed, a percentage.

Many people, both on these forums and elsewhere, seem to refer to any square wave as PWM which is wrong.
PWM stands for Pulse Width Modulation. That is, the only thing you are changing (or modulating) is the pulse width. The frequency (or cycle time or period) remains fixed.

0 Kudos
Reply

739 Views
ProcessorExpert
Senior Contributor III
Hello rapa,

I have not reproduced such behaviour. Could you please send us more detailed information how to reproduce this problem, including information about CPU and PWM beans setting. What hardware are you using (EVB board, value of external oscillator/crystal)? What version of CodeWarrior and Processor Expert are you using? The project reproducing the problem will be the best.

best regards
Vojtech Filip
Processor Expert Support Team
UNIS
0 Kudos
Reply