Hi,
I am trying to interface an audio codec TLV320AIC32 with TMS320DM6467 using McASP controller.
I have successfully tested the audio codec analog loopback mode by writing to its registers using I2C.
Now, I am trying to send a sine wave table to the input of codec and subsequently to Line Out.
A line in the datasheet of codec slightly confuses me,
To access through the dataport, simply have the CPU or DMA access the XRBUF through its data port location.
where, XBUF data port has address = 0x01D01400
and XBUF0(for transmitter) has address = 0x01D01200.
SO where am I exactly supposed to write the data?
Is this the appropriate format?
*(Int16*)(MCASP0_DATA) = *(data_address);
delay(i);
*(Int16*)(ASP0_TX_BUF_REG0) = *(Int16*)(MCASP0_DATA);
or should I access, DATA PORT or XBUF0 register individually?
I am using CCS3.3 to write the code on a custom board consisting of DM6467.
Thanks and Regards,
Sidharth