Pwm: minimal and maximal periods and frequencies, Pwm: examples in practice – ALLIED Vision Technologies Guppy F-503 User Manual
Page 91

Camera interfaces
GUPPY Technical Manual V7.1.0
91
PWM: minimal and maximal periods and frequencies
In the following formulas you find the minimal/maximal periods and frequen-
cies for the pulse-width modulation (PWM).
PWM: Examples in practice
In this chapter we give you two examples, how to write values in the PWM
registers. All values have to be written in microseconds (µs) in the PWM reg-
isters, therefore remember always the factor 10
-6
s.
Example 1:
Set PWM with 1kHz at 30% pulse width.
Note
Note the following conditions:
•
PulseWidth
Period
•
Period
MinPeriod
Formula 1: Minimal/maximal period and frequency
Formula 2: PWM example 1
period
min
3µs
=
frequency
max
1
period
min
-----------------------
1
3µs
--------
333.33kHz
=
=
=
frequency
min
1
2
16
6
–
10 s
-------------------------
15.26Hz
=
=
period
max
1
frequency
min
-------------------------------
2
16
µs
=
=
RegPeriod
1
frequency
6
–
10 s
-----------------------------------------
1
1kHz
6
–
10 s
-----------------------------
1000
=
=
=
RegPulseWidth
RegPeriod
30%
1000
30%
300
=
=
=