I am using TMS570 processor and currently working on the SPI module. My slave device is HI3593 which is used to interface SPI device with ARINC Bus.
I am sending the 32 bit A429 data to the bus successfully using SPI in compatibility mode.
Whenever the data is placed on the transmit buffer, the SPI clock is generated and chipselect will be activated. And everthing looks working fine in transmission part.
To read the a429 data from the slave device, need to send the Opcode of 8bits for reading 32bit label data. After the opcode received by the slave, the slave is trying to place the data on the MISO bus, but as there is no SPI clock
avaiable, the data is not received by master. Can anyone explain the SPI read operation of TMS570 ? Do i need to send the dummy data to generate SPI clock ?
During transmission, CSHOLD bit is set while transmitting the data as the slave device requires CS to be low for completing write sequece.
similarly read sequece also requires, CS to be low for predefined number of clock cycles (1 cycle = 8 clock pulses).The number of clock pulses depends on the Opcode.
How to set the CS to be low for required number of pulses while reading ?