X20 system modules • Counter modules • X20DC2395
X20 system User's Manual 3.10
827
4.11.14.12.8 PWM - Pulse width modulation
The module has 2 PWM functions available, supported directly by the hardware. A 24 V output channel is set for
each PWM encoder and cannot be changed. (See also 4.11.14.7.1 "Description of channel assignments")
When using the PWM function, the corresponding channel can be configured in the 4.11.14.12.4.1
"CfO_CFGchannel" register as "Channel-specific".
PWM function
Channel
PWM1
2
PWM2
4
4.11.14.12.8.1 Configure PWM prescaler
Name:
CfO_PWM0prescaler to CfO_PWM1prescaler
The length of the PWM cycle is configured using this register. The base is a 48 MHz clock, which can be changed
(divided) using the setting in this register. One PWM cycle consists of 1,000 of the resulting clocks after they have
been divided. The period length of the PWM cycle is calculated as follows:
PWM_cycle = 1000
[s]
48,000,000
prescale
Data type
Value
Information
UINT
2 to 65,535
Prescaler for PWM cycle
4.11.14.12.8.2 Output PWM values
Name:
PWMOutput02 and PWMOutput04
In this register, a configuration is made for the percentage of the PWM cycle (in 1/10 % steps) that the PWM output
is logical 1, i.e. ON.
Data type
Value
Information
0 to 1,000
PWM output always off
2 to 999
Turn on time in 1/10% steps
UINT
1,000
PWM output always on
Summary of Contents for X20 System
Page 2: ......