I am working on ADSP BF548 Ez Kit Lite using CCES.
I was trying to perform a simple loopback test using SPORT interface of BF548. Well the loopback was successful, but I have a few queries.
As per the Hardware Reference Manual of BF548, the word size is configurable from 3 - 32. Also I am using DMA mode, and DMA has a bus of 16 bit.
I have been able to perform the loopback for word sizes of 8, 16 and 32. I have a requirement where I need to send a data of word size 18. For word Size of 18, the data is loopbacked gets faulty.
I have attached the code with this post. I would be grateful if someone can have a look at my code, and suggest any changes if required.
The word size is configurable in the file sport_i2s.h in the macro WORD_LENGTH.
Any help would be greatly appreciated.