Other Parts Discussed in Thread: HALCOGEN
Hi Gregor,
I am back to SPI module. I will put my question again.
As i mentioned in the previous posts, i am using TMS570 kit which is interacting with the HI3593 and HI6121 through the SPI. I have to write the SPI drivers. I have written the SPI code in compatibility mode. I tested using oscilloscope and looks working fine.
My idea is to use the Multi buffer RAM in the compatibility mode. I need your guidence for this.
My device requires the following sequence. [ Send Opcode (8bit for writing or reading), Send data or receive data). So my plan is to initializae the transmitt buffer with opcode followed by the data to be transmitted and receive buffer to hold the data
Ex : TX RAM : 0x0000 - Opcode [for sending 32 bytes of data], 0x0002h - 0x0040- 32 byte Data, 0x0042 - Opcode[for Reading 32 bytes of data], RX RAM : 0x0200 - 0x0240 -32 bytes Data available for reading
The intention is to reduce the CPU overhead in sending/receiving the data by SPI. So main program places the data to be transmitted in Tx RAM and data to be received in Rx RAM. The sedning/receiving overhaed has to be taken care by SPI module. Please let me know is it possible to setup to like above. And provide me guidence for the same.