Servosila-Device-Reference-0xA020192

Table Of Contents
divider controller to the encoder via CLOCK line. Note that the encoder sends a single
bit of data back to the controller via DATA 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.
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 CLOCK line to read out a data packet. 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 in this section.
Note that the encoder may require a timeout period at the end of each
pulse train. This period shall also fit in the time window between
subsequent data reads in addition to the pulse train itself.
The higher the frequency, the better (lower latency).
UINT16,
0x3013,
0x11,
rw
6 clock polarity 0 or 1 The parameter tells the controller to electrically invert output signals on the UINT16,
29 www.servosila.com