Servosila-Device-Reference-0xA020192
Table Of Contents
- Servosila Device Reference
- Configuration Parameters
- Configuration - Datasheet
- Configuration - Control Laws
- Configuration - Features
- Configuration - Brake
- Configuration - Work Zone
- Configuration - Fault Management
- Configuration - Peripheral: GPIO
- Configuration - Peripheral: Hall Sensors
- Configuration - Peripheral: Quadrature Encoder
- Configuration - Peripheral: SSI/BISS-C Encoder
- Configuration - Peripheral: SPI Encoder
- Configuration - Peripheral: PWM Encoder
- Configuration - Peripheral: Gate Driver
- Configuration - Networking
- Configuration - Product Activation
- Telemetry Parameters
- Telemetry - System Status
- Telemetry - Field Oriented Control (FOC)
- Telemetry - Direct Drive Control
- Telemetry - Sensorless Observer
- Telemetry - Hall Sensors Observer
- Telemetry - Peripheral: ADC
- Telemetry - Peripheral: Hall Sensors
- Telemetry - Peripheral: Quadrature Encoder
- Telemetry - Peripheral: SSI/BISS-C Encoder
- Telemetry - Peripheral: SPI Encoder
- Telemetry - Peripheral: PWM Encoder
- Telemetry - Peripheral: GPIO
- Telemetry - Peripheral: Inverter (PWM)
- Telemetry - Peripheral: Gate Driver
- Telemetry - Networking
- Telemetry - Device Information
- Commands
- Command - Electronic Speed Control (ESC), Hz
- Command - Electronic Speed Control (ESC), RPM
- Command - Servo
- Command - Servo Stepper
- Command - Current Control / Field Oriented Control (FOC)
- Command - Electronic Torque Control (ETC)
- Command - Direct Field Control: Rotation
- Command - Direct Field Control: Electrical Position
- Command - Kickstart
- Command - Reset
- Command - Reset Work Zone
- Command - Brake
- Command - Stop
- Command - Off
- Command - GPIO: PWM output
- Command - Testing: Field Oriented Control (FOC)
- Command - Testing: Electronic Speed Control (ESC)
- Command - Testing: Servo Control
- Command - Brushed: Open Loop Control (1-2 motors)
- Command - Autoconfiguration: Brushless Motor
- Command - Autoconfiguration: Brushed Motor
- Command - GPIO: Generic Output
- Telemetry Mappings (TPDO)
- Configuration Parameters
this parameter helps correct the mismatch. 0x04,
rw
4
request
frequency:
divider
- The parameter defines how often the controller reads out data from the encoder.
Specifically, this parameters specifies how often pulse trains are sent by the
controller to the encoder via SCK line. This line is sometimes called SCLK or
CLOCK. Note that the encoder sends a single bit of data back to the controller
via MISO line each time it receives a pulse from the controller. By sending a
train of pulses, the controller reads out all the data bits (a packet) from the
encoder.
The parameter specifies a divider for the controller's sampling frequency.
For example:
The controller has a sampling frequency of 15 kHz or 15 000 samples per second
(check this for your controller in "Device Information" telemetry section). If the
divider is specified as 4, then the request frequency is 15 000 / 4 = 3750 Hz =
3.75kHz. This means that the controller reads out the data from the encoder 3750
times a second.
Note that the request frequency should be aligned with a maximum request
frequency specified in the encoder's datasheet.
UINT16,
0x3014,
0x10,
rw
5 clock
frequency:
divider
- This parameter characterizes pulses within a train of pulses that are sent by the
controller to the encoder via SCK line to read out a data packet. This line is
sometimes called SCLK or CLOCK. The pulses are generated by a silicon
peripheral that has peculiarities of configuration as explained below.
The parameter specifies a divider for CPU frequency of the controller. The
formula for the pulse's frequency is the following:
clock frequency = [Half of CPU frequency] / (divider + 1)
Example:
If the controller's CPU frequency is 90 MHz, and "clock frequency: divider" is
configured as 89, then this results in the following clock frequency: 90 MHz / 2 /
(89 + 1) = 45 Mhz / 90 = 500kHz.
Intuition for selecting the clock frequency:
• The clock frequency should not be higher than a maximum clock
frequency defined in the encoder's datasheet.
• On the other hand, the clock frequency should be high enough, so that the
entire pulse train fits in a time window between subsequent data reads.
Note that the frequency of data reads is defined by "request frequency:
divider" parameter.
UINT16,
0x3014,
0x11,
rw
33 www.servosila.com