NEC ELECTRONICS GLOBAL
nec electronics global
HOME
APPLICATIONS
PRODUCTS
TECHNOLOGY
SUPPORT
BUY ONLINE
NEWS & EVENTS
ABOUT US
header
GO
AdvancedParametric
SITE MAP CONTACT US

Difference between PPG output and PWM output

Contents

    
FAQ-ID = v85ppg-nnnn
0001: Difference between PPG output and PWM output [contents common to all devices]
v85ppg
-0001
Difference between PPG output and PWM output [contents common to all devices]
Q1
The timer output function includes PPG and PWM output.
Both output similar signals, so I do not really understand the difference.
A1
PPG output is a function for outputting a pulse whose cycle and width is specified.
With this function, the issue is the waveform itself (timing).
Therefore, changes in parameters (pulse cycle and width) are reflected immediately.
Consequently, depending on the timing of the change, the output may be inverted.
With PWM output, because an analog amount is output, the pulse is output after specifying an active period in the specified cycle.
With this function, the issue is the proportion of active period in the specified cycle rather than the waveform itself.
Consequently, some microcontrollers have a function to output the active period divided into multiple sections.
Also, with the PWM output function, regardless of the timing at which the parameter (cycle, active period, etc.) was changed, the change is only reflected at the end of one cycle, so the output does not become abnormal.
On the other hand, even if the parameter is changed, that change is not immediately reflected in the operation.
Is this information useful for you ?
Q2
Can a PWM signal be output using the PPG function?
Are there any points I should note when doing this?
A2
Yes, a PWM signal can be output using the PPG function.
In this case, you must be careful when overwriting the cycle or active period parameters.
Be sure to overwrite the cycle parameter at the timing of the interrupt that indicates the end of one cycle.
Also, depending on the timer used, it may be necessary to overwrite the parameter after stopping the count operation.
The active period parameter can be changed without stopping the count operation, but you must take care with the timing of overwriting.
If a match with the comparison register that specifies the active period occurs twice in one cycle or does not occur at all, some timers may invert the output.
Is this information useful for you ?
back to top  
(2006/04)









































 LEGAL  RSS Feeds       © 1995-2008  NEC Electronics Corporation