Hi,
I just started working with the C6748 processor and I encounter problems in what should be simple tryouts.
I want to implement a filter for both left and right channel of the stereo input.
For this purpuse I configured the McAsp for burst mode, 32 bit frame- one slot. My purpose is to receive the right channel on the first 16 bits and the left channel on the last 16 bits.
I am working with HWI, I configured the interrupts for input/output and enabled only "receive" interrupts.
My code is very simple at the moment- only seperates the right and left channel, seperate them and saves them to two buffers.
I think the interrupts are not synconized properly with the actions of the A/D, because the buffers are full of junk... (my input is a sine wave)
Here are my configurations for the McASP- I hope it helps.. Thanks in advance!
Ariel
MCASP->RMASK = 0xFFFFFFFF; // all 32-bits NOT masked MCASP->RFMT = 0x000080F8; // Read form periphereal configuration port (not DMA) MSB first, slot=32bits, MCASP->AFSRCTL = 0x00000012; // int'l gen'd, FS/word, Burst Mode MCASP->ACLKRCTL = 0x000000AF; // rising edge, clkrm internal, /16 CLKRDIV MCASP->AHCLKRCTL = 0x00000000; // HCLKRDIV = 1 MCASP->RTDM = 0x00000001; // SLOT 0 active MCASP->RINTCTL = 0x00000020; // interrupt enables MCASP->RCLKCHK = 0x00FF0008; // RMAX = FF, RPS = /256 The configurations for the transmit register are parralel (excpet for the interrupt)