3.2.1 Inputs and Outputs Signals

The following table lists the input and output ports of Encoder Interface.

Signal NameDirectionDescription
reset_iInputActive Low Asynchronous Reset Signal
sys_clk_iInputSystem Clock
fil_trig_iInputFilter trigger input. A timing pulse of one clock cycle width must be provided at this input. The periodicity of the pulse determines the sampling time.
direction_config_iInputDirection configuration bit - used at calibration time to align the rotor. When 1, aligns rotor for counter clockwise starting or when 0, aligns rotor for clockwise starting.
clear_buffer_iInput

Clears the filter buffer generally when the motor is stopped.

A pulse of one clock cycle width must be input each time the motor stops.

sensor_reset_iInput

Sensor Reset signal:

When set to 1, rotor angle is reset to the equivalent of 90° or 270° as determined by the direction_config_i input.

When set to 0 (zero), normal operation.

qa_iInputEncoder input A
qb_iInputEncoder input B
speed_factor_iInputSpeed output scaling multiplier
angle_factor_iInputAngle output scaling multiplier
angle_count_max_iInputMaximum angle count value in terms of encoder pulse events.
speed_window_iInputThe time window for speed computation, specified in multiples of 10 µs. Larger time window gives better speed resolution but has higher latency. Smaller time window must be used for high dynamic speed response.
filter_factor_iInputFilter factor value for filter – if value is n, the filter time constant is 2^n times the sampling time of the filter defined by filt_trig_i.
dir_oOutputDirection signal generated based on encoder input signals.
speed_done_oOutputIndicates speed computation is ready for filtering (at the end of speed window). A pulse of one sys_clk_i cycle width is generated.
speed_filter_done_oOutputIndicates speed output after filtering is valid (at omega_out_o output port). A pulse of one sys_clk_i cycle width is generated.
omega_out_oOutputRotor speed output after filtering - suitable for use as speed feedback in speed control operation.
angle_out_oOutputElectrical angle output suitable for FOC.
line_count_oOutputSpecifies the rotor position in terms of number of encoder lines (increments) since the last sensor reset. Suitable for use with position control operations.