numbers but here's some notes from some McBSP
initialization code I wrote the works just fine.
First, write initial values to all 15 McBSP registers
with everything off (XRST, RRST, GRST, FRST). At least
33 cycles after writing initial values to SRGR1 and
SRGR2, write to SPCR2 again changing only GRST from 0
to 1. At least 33 cycles after that, you can change
RRST and XRST from 0 to 1. Lastly, change FRST from 0
to 1 with no required delay. Then make sure you
actually write something to the correct DXR to make
things happen. I was using the sample rate generator
to initiate frame syncs but maybe this still applies
to you. -Micah
> Message: 1
> Date: Wed, 25 May 2005 10:59:12 -0700 (PDT)
> From: babak vafa <moni20812000@moni...>
> Subject: C5416's McBSP0
> hello all friends
> I want to use MCBSP0 in C5416 as a transmitter-only-
> that CLKX and FSX are output and FSX is generated by
> DXR to XSR copy (not sample rate generator) and send
> out one pattern 16 bit data periodically .code have
> been written in C but i am confused about registers
> setting and sequenc of registers setting and delay
> which should be taken in account . for example when
> i sould set XRST,GRST,FRST and others! . i read
> McBSP chapter in volume 5 and perform exactly the
> same as those said but i could not run McBSP.
> Could anyone tell me how can write correct Code ?
> when i should reset,when i should set delays ?...
> Regards __________________________________
Have fun online with music videos, cool games, IM and more. Check it out!