![PMD Atlas Compact Скачать руководство пользователя страница 147](http://html1.mh-extra.com/html/pmd/atlas-compact/atlas-compact_complete-technical-reference_1569420147.webp)
Atlas® Digital Amplifier Complete Technical Reference
147
6
SetPWMFrequency
0C
h
GetPWMFrequency
0D
h
Syntax
SetPWMFrequency
frequency
GetPWMFrequency
Motor Types
Arguments
Name
Instance
Encoding
Type
Range
Scaling
Units
frequency
unsigned 16 bits
see below
125/32
Hz
Packet
Structure
Description
SetPWMFrequency
sets the PWM output frequency (in kHz). To select one of the supported
frequencies, pass the value listed in the SetPWMFrequency Value column as the
frequency
argument to
this command. If the frequency specified is not supported the argument will be sampled down.
Restrictions
The PWM frequency can be changed only when motor output is disabled (e.g., immediately after power-
up or reset).
see
DC Brush
Brushless DC
Microstepping
SetPWMFrequency
checksum
0C
h
15
8 7
0
Data
write
frequency
15
0
GetPWMFrequency
checksum
0D
h
15
8 7
0
Data
read
frequency
15
0
Approximate
Frequency
PWM bit
Resolution
Actual
Frequency
SetPWMFrequency
Value
20 kHz
10
19.531 kHz
5,000
40 kHz
9
39.062 kHz
10,000
80 kHz
8
78.124 kHz
20,000
120 kHz
7
117.187 kHz
30,000