Hi there,
Have you tried doing a write? I have the following line in my code after
I've configured the MCBSP EDMA...
/* Do a dummy write to generate the first McBSP transmit event */
MCBSP_write(hMcbsp1, 0);
Regards,
Lesley-Ann
-----Original Message-----
From: aditya.kothari@adit... [mailto:aditya.kothari@adit...]
Sent: 25 August 2005 08:42
To: c6x@c6x@...
Subject: [c6x] Initialize AIC23 Codec on 6713 DSK using McBSP
Hi
I am using a TMS320C6713 DSK. I am tring to configure the on board codec
AIC23 using the Mcbsp. For that i am referring to the example dsk_app.pjt in
the c:\ti\examples\dsk6713\bsl folder provided with the CCS.
Here i am first declaring and defining the McBSP config structures in a
similar way as it is done in the example. Then i am defining a structure
for the AIC23 register parameters again in the same way as it is done in the
example.
But when i load the code and run it, i find that the xrdy bit in the spcr
register is not getting set, because of which the AIC23 registers are not
getting set. This leads to an inifinite loop where it continously polls the
xrdy bit which is never getting set.
I am putting the code below .
Kindly help me out in this and tell me the bug in the code
#define CHIP_6713
#include <std.h>
#include <swi.h>
#include <log.h>
#include <c6x.h>
#include <csl.h>
#include <csl_edma.h>
#include <csl_irq.h>
#include <csl_mcbsp.h>
#include <aic23.h>
#include