DSPRelated.com
Forums

MCBSP External Frame Sync

Started by jason_c_wachholz May 17, 2005
I'm trying to set up the bsp for an 8-bit, n-word frame transfer
syncronized with the frame sync signal. At the end of the n-word
frame I want the interrupt to fire. Ive set up an external pin to
toggle inside the interrupt. It continues to fire but randomly and
not every frame. Below is my register setup.

MCBSP_Config bspConfig = {
MCBSP_SPCR1_RMK (
MCBSP_SPCR1_DLB_OFF,
MCBSP_SPCR1_RJUST_RZF,
MCBSP_SPCR1_CLKSTP_DISABLE,
MCBSP_SPCR1_DXENA_OFF,
MCBSP_SPCR1_ABIS_DISABLE,
MCBSP_SPCR1_RINTM_EOS,
MCBSP_SPCR1_RRST_DISABLE
),
MCBSP_SPCR2_RMK (
MCBSP_SPCR2_FREE_YES,
MCBSP_SPCR2_SOFT_NO,
MCBSP_SPCR2_FRST_RESET,
MCBSP_SPCR2_GRST_RESET,
MCBSP_SPCR2_XINTM_EOS,
MCBSP_SPCR2_XRST_DISABLE
),
MCBSP_RCR1_RMK (
MCBSP_RCR1_RFRLEN1_OF(NUM),
MCBSP_RCR1_RWDLEN1_8BIT
),
0x0000, /* rcr2 */
MCBSP_XCR1_RMK (
MCBSP_XCR1_XFRLEN1_OF(NUM),
MCBSP_XCR1_XWDLEN1_8BIT
),
0x0000, /* xcr2 */
0x0001, /* srgr1 */
0x2000, /* srgr2 */
0x0000, /* mcr1 */
0x0000, /* mcr2 */
MCBSP_PCR_RMK (
MCBSP_PCR_XIOEN_SP,
MCBSP_PCR_RIOEN_SP,
MCBSP_PCR_FSXM_EXTERNAL,
MCBSP_PCR_FSRM_EXTERNAL,
MCBSP_PCR_CLKXM_INPUT,
MCBSP_PCR_CLKRM_INPUT,
MCBSP_PCR_SCLKME_NO,
MCBSP_PCR_FSXP_ACTIVELOW,
MCBSP_PCR_FSRP_ACTIVELOW,
MCBSP_PCR_CLKXP_RISING,
MCBSP_PCR_CLKRP_FALLING
),
0x0000, /* rcera */
0x0000, /* rcerb */
0x0000, /* xcera */
0x0000, /* xcerb */
};