DSPRelated.com
Forums

5416/320AD77 Interfacing???

Started by Geoffrey Wang November 29, 2001
Hi,

I've been having a terrible time just trying to program a McBSP to produce
any output on any line (I'm attempting to interface a 5416 with a TL320AD77
via a McBSP in SPI Master mode). It must be something very obvious...

#define ADC_BSP hMcbsp1

MCBSP_start (ADC_BSP, MCBSP_XMIT_START | MCBSP_RCV_START, 0);
while (TRUE)
{
while (!MCBSP_xrdy (ADC_BSP));
MCBSP_write16 (ADC_BSP, 0x5555);
}

with the typical DSP/BIOS initialization:

MCBSP_Handle hMcbsp1;

void CSL_cfgInit()
{
CSL_init();

hMcbsp1 = MCBSP_open(MCBSP_PORT1, MCBSP_OPEN_RESET);
MCBSP_config(hMcbsp1, &mcbspCfg1);
} MCBSP_Config mcbspCfg1 = {
0x1000, /* Serial Port Control Register 1 */
0x0200, /* Serial Port Control Register 2 */
0x0040, /* Receive Control Register 1 */
0x0005, /* Receive Control Register 2 */
0x0040, /* Transmit Control Register 1 */
0x0005, /* Transmit Control Register 2 */
0x00ff, /* Sample Rate Generator Register 1 */
0x2000, /* Sample Rate Generator Register 2 */
0x0000, /* Multichannel Control Register 1 */
0x0000, /* Multichannel Control Register 2 */
0x0f0e, /* Pin Control Register */
...rest 0s...
}

Any help or suggestions would be greatly appreciated.

Geoffrey