Trigger and Read Sensor via SPI
Posted: Mon Nov 18, 2019 4:01 pm
Hello all,
I am trying to read the Data from an absolute rotary encoder (RM08 by RLS).
To do so I need to trigger the sensors SSI Protocol with the following Clock Signal:
The sensor got 4 Wires: VDD, GND, Data & Clock.
First I planned to read the output with UART but maybe SPI is more sufficient.
But now I am encountering a problem triggering the sensor with the clock signal.
I guess I have to use a the SPI_CLK Pin on RedPitaya which is continuosly sending out the square wave? And for the Input MISO should work.
So my question: How can I configure the wave parameters to fit the sensors expected clock signal (t_high, t_low, t_monoflop)?
Do I need to enable the SPI somehow in the ecosystem or should it be ready to use? And how/where to configure the clock frequency?
Thanks in advance!
Any help is appreciated!
I am trying to read the Data from an absolute rotary encoder (RM08 by RLS).
To do so I need to trigger the sensors SSI Protocol with the following Clock Signal:
The sensor got 4 Wires: VDD, GND, Data & Clock.
First I planned to read the output with UART but maybe SPI is more sufficient.
But now I am encountering a problem triggering the sensor with the clock signal.
I guess I have to use a the SPI_CLK Pin on RedPitaya which is continuosly sending out the square wave? And for the Input MISO should work.
So my question: How can I configure the wave parameters to fit the sensors expected clock signal (t_high, t_low, t_monoflop)?
Do I need to enable the SPI somehow in the ecosystem or should it be ready to use? And how/where to configure the clock frequency?
Thanks in advance!
Any help is appreciated!