This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Configure McASP to receive 24Bit value from ADC and pass a 32bit integer to the CPU, AM3359

Other Parts Discussed in Thread: ADS1278, AM3359

Hi!

I'm having a little problem to conigure the McASP on an AM3359. I use an ADS1278 ADC with a Beaglebone (AM3359) running Angstrom Linux. I modified the alsa asoc drivers/codecs to read 16 24bit values through McASP (2 ADS1278 dasychained).

Since I can't handle 24bit datatypes in my application without casting them previously, I'd like to handle this step in the "receive format unit" on the McASP module. I figured out that there's a way to convert 24bit values to 32bit with padding the bits[24:31] with the value of bit 23. 

How can I tell the McASP module to stop reading after 3 bytes to generate the 32bit value and the read the next 3 bytes?
 

Thanks for helping!

hitsch