169
6.5.28PulseWidthModulator(PWM)
ShortDescription:
ThePulseWidthModulator(PWM)instructionmodulatestheanaloginputvalueAxtoapulseddigital
outputsignal.ThepulsewidthisproportionaltotheanalogvalueAx.
connection Description
EN Apositiveedge(0to1transition)at
inputEnenablesthePWMfunction
block.
Input Ax Analogsignaltobemodulatedtoa
pulseddigitaloutputsignal.
parameter
A: Gain
Rangeofvalues:+-10.00
B: Zerooffset
Rangeofvalues:+-10,000
PT: Periodictimeoverwhichthedigital
outputismodulated
p: Numberofdecimals
Rangeofvalues:0,1,2,3
Output Q Qissetorresetfortheproportionofeachtime
periodaccordingtotheproportionofthe
standardizedvalueAxtotheanalogvaluerange.
ParameterPT
TheperiodictimePTcanbeprovidedbytheactualvalueofanotheralready-programmedfunction:
Analogcomparator:Ax – Ay
Analogtrigger:Ax
Analogamplifier:Ax
Analogmultiplexer:AQ