Hi
We want to transfer data over McBSP from one board to another board ( with 2MBps or 2MHz clock). It is only one-way ( Board-Tx will send to Board-Rx)
Here are the signals used to connect the boards.
Board-Tx Board-Rx
FSX FSR
DX DR
We want to use internal clock for both boards but use external FSR on Board-Rx
Here is the configuration for Board-Tx and Board-Rx
Board-Tx:
xcr1 |= XWDLEN1(OMAP_MCBSP_WORD_8);
xcr1 |= XFRLEN1(0);
xcr2 |= XDATDLY(0);
pcr0 |= FSXM;
pcr0 |= CLKXM;
spcr2 |=XINTM(3);
spcr2 |=GRST;
spcr2 |=FRST;
xccr |= XDMAEN; // Enable DMA transmitt requests
xcerc = 0x1;
srgr1 |= CLKGDV(47); // 96 MHz / 48 = 2 MHz clock
srgr1 |= FWID(8);
srgr2 |= CLKSM;
srgr2 |= FPER(7);
Board-Rx:
spcr1 &= ~ RRST; // reset state
rcr1 |= RWDLEN1(OMAP_MCBSP_WORD_8);
rcr1 |= RFRLEN1(0);
rcr2 |= RDATDLY(0);
pcr0 |= CLKRM;
spcr1 |=RINTM(3);
spcr2 |=GRST;
spcr2 |=FRST;
rccr |= RDMAEN; // Enable DMA receive requests
rcerc = 0x1;
spcr1 |= RRST; // out of reset
srgr1 |= CLKGDV(47); // 96 MHz / 48 = 2 MHz clock
srgr1 |= FWID(8);
srgr2 |= CLKSM;
srgr2 |= FPER(7);
We are seeing that the receiver is getting extra data or some times data is missed ?
Is there some thing which we are doing wrong ? (both configuration and Hardware connections).
Is there any project or any sample code which can achieve the above requirement.
Eswar