Hello! I create the project for platform OMAP-L138 in the environment of CCS V4.2.4. I use driver McAsp from a package pspdrivers_01_30_01 for communication with 4-channel ADC PCM4204 Texas Instruments. I have following technical characteristics.
1) OMAP-L138 It is used as the master.
2) 2 serializers on two slots. The format of the data is Mcasp_BufferFormat_MULTISER_MULTISLOT_SEMI_INTERLEAVED_1.
3) Frequency AUXCLK = 24 MHz.
4) Signal from pin AHCLKR - a signal system clock (SCKI) for PCM4204. Its frequency of 24 MHz.
5) Frequency ACLKR = 12 MHz.
6)Data is accepted on inputs AXR8 and AXR10.
7)For communication with the driver it is used SIO a stream.
Here file fragments main.cpp where are defined structure Mcasp_Params, initialization function mcaspUserInit, and also is created stream SIO.
Here fragments of file Acoustic_Functions.cpp where function of creation of a stream create_Input_Streams_Mcasp is defined.
Stream SIO is created successfully. I let out 4 buffers by means of function SIO_issue. By a call of function SIO_reclaim the buffer does not come back.
In a mode of debugging I looked through contents of all registers McAsp. I have noticed only one incorrect value. It is bit RCLKRST in register GBLCTL. It is cleared. It specifies that receive clock divider is held in reset.
I cannot understand in yet than the problem reason!!!