Dear E2E:
I have the question about Omap-L138 SPI port.
Reading User's Guide (SPRUFM41 of 3/2011) I found on page14: in "Chip Select Hold Option":
"If the chip select hold option is enabled, the chip select will not toggle between two consecutive accesses".
And also on page44 - SPIDAT1 register: CSHOD ='1' and WDEL = '0' - means no delays will be inserted in the consecutive transfers and CS will hold active.
Is this correct?
1. I need to transfer 144 bits from A/D converter to DSP Omap-L138 using SPI port.
2. It looks like the above settings CSHOD ='1' and WDEL = '0' should work.
3. But how can I specify the length of the transfer? If format is set to 16 bits - I need to transfer 9 words.
4. On page44, SPIDAT1 register, in the table: "The chip select signal is held active at the end of a transfer until a control field with new data and control information is loaded into SPIDAT1. If the new chip select hold information equals the previous one, the active chip select signal is extended until the end of transfer with CSHOLD cleared"
5. That means - the SW must write the new information into SPIDAT1 register during the last 16-bit transfer to terminate the transfer. Is this correct?
6. If this is correct - the SW must be very involved counting the number of the transfers. Using the DMA became a little difficult.
7. Will it be OK to set DMA for the 8 16-bit transfers and then when DMA is completed - write into SPIDAT1 register for the last 9-th transfer? Will this work?
8. Is there the better way to transfer 144 bits (9 16-bit words) using SPI port on Omap-L138?
Thank you for your help,
Boris Ruvinsky