DSPRelated.com
Forums

MCBSP configuration

Started by narcispr December 22, 2003
I use a MCBSP1 to send data from DSP (c5409) to DAC. Now I send a
16bits word only for a right channel but I need send two 16bits
words for a left and rigth channel. How can I configure the MCBSP1
to send two 16bits frames?

Nowadays my configuration is:

//To configure
MCBSP_Config McBSP1DA = {
0x0000, /* Serial Port Control Register 1 */
0x0000, /* Serial Port Control Register 2 */
0x0000, /* Receive Control Register 1 */
0x0000, /* Receive Control Register 2 */
0x0040, /* Transmit Control Register 1 */
0x0000, /* Transmit Control Register 2 */
0x0000, /* Sample Rate Generator Register 1 */
0x0000, /* Sample Rate Generator Register 2 */
0x0000, /* Multichannel Control Register 1 */
0x0000, /* Multichannel Control Register 2 */
0x100e, /* Pin Control Register */
0x0000, /* Receive Channel Enable Register Partition A
*/
0x0000, /* Receive Channel Enable Register Partition B
*/
0x0000, /* Transmit Channel Enable Register Partition
A */
0x0000 /* Transmit Channel Enable Register Partition
B */
}; MCBSP_config(hMcbsp1, &McBSP1DA); //configure DA
MCBSP_start(hMcbsp1,MCBSP_XMIT_START,0); //START DA. //To send
while (!MCBSP_xrdy(hMcbsp1)); //Wait for send
MCBSP_write16(hMcbsp1,BufferAD[PBufferAD]); //Send data

Thank you!