ADwin-Gold II
, Manual February 2013
141
PWM Outputs
PWM_Latch
ADwin
PWM_Latch
PWM_Latch
enables frequency and duty cycle of one or more PWM outputs to
be output.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
PWM_Latch
(
pattern
)
Parameters
Notes
PWM_Write_Latch
writres frequency and duty cycle into the latch re-
gister. Only when
PWM_Latch
is processed the latch values are started
to be output.
The time, when the output of the new values starts–at once or after the
next end of period–depends on the setting which was done with
PWM_
Init
(parameter
See also
,
,
Valid for
Gold II-CNT
Example
see
T11 TiCo
pattern
Bit pattern to select PWM outputs:
Bit = 0: No influence.
Bit = 1: latch = enable for output.
LONG
Bit no.
31…6
5
4
3
2
1
0
PWM output
–
6
5
4
3
2
1