DSPRelated.com
Forums

How can I write one 32bit data to mcbsp, and the mcbsp sends the data as two 16bit?

Started by Unknown November 11, 2005
c6xhi,

I connect the mcbsp to a serial AD.

The AD receives a frame data like this: |----0----|--left channel--|----0----|--right channel--|

|<-16bit->|<----16bit----->|<-16bit->|<-----16bit----->|
I want to write a 32bit data to the transmit register of mcbsp once,

the 32bit contains both left and right channel of one sample.

And the mcbsp sends the data like above.
That is to say, the interrupt frequency of mcbsp is equal to the sample rate of AD,

not two times of the sample rate.
Who knows how to config the Mcbsp?



Here's what I use to transmit/receive 32-bit L/R samples to/from
PCM3003 audio codec.

Nero.
--- <wyb1982@wyb1...> wrote:

> c6xhi,
>
> I connect the mcbsp to a serial AD.
>
> The AD receives a frame data like this: > |----0----|--left channel--|----0----|--right channel--|
>
> |<-16bit->|<----16bit----->|<-16bit->|<-----16bit----->| >
> I want to write a 32bit data to the transmit register of mcbsp once,
>
> the 32bit contains both left and right channel of one sample.
>
> And the mcbsp sends the data like above. >
> That is to say, the interrupt frequency of mcbsp is equal to the
> sample rate of AD,
>
> not two times of the sample rate. >
> Who knows how to config the Mcbsp? >
>
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com


>
> Thank you for your reply
>
>I means to config the mcbsp 64bit length per frame.
>
>The first 16bit is zeros,
>
>The second 16bit is the data of DXR[31:16],
>
>The third 16bit is zeros,
>
>The fourth 16bit is the data of DXR[15:0].
>
>I want to write a 32bit data to DXR in MCbsp interrupt once, which includes both the left and right sample data of the AD,
>
>and the mcbsp can add 16bit zeros before left and right channels data to meet the AD's data format. >>
>>Here's what I use to transmit/receive 32-bit L/R samples to/from
>>PCM3003 audio codec.
>>
>>Nero.
>>
>>
>>
>>--- <wyb1982@wyb1...> wrote:
>>
>>> c6xhi,
>>>
>>> I connect the mcbsp to a serial AD.
>>>
>>> The AD receives a frame data like this:
>>>
>>>
>>> |----0----|--left channel--|----0----|--right channel--|
>>>
>>> |<-16bit->|<----16bit----->|<-16bit->|<-----16bit----->|
>>>
>>>
>>>
>>> I want to write a 32bit data to the transmit register of mcbsp once,
>>>
>>> the 32bit contains both left and right channel of one sample.
>>>
>>> And the mcbsp sends the data like above.
>>>
>>>
>>>
>>> That is to say, the interrupt frequency of mcbsp is equal to the
>>> sample rate of AD,
>>>
>>> not two times of the sample rate.
>>>
>>>
>>>
>>> Who knows how to config the Mcbsp?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>___________________________________________________________
>>How much free photo storage do you get? Store your holiday
>>snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
>
>= = = = = = = = = = = = = = = = = = = >
> >
>wyb1982@wyb1...
>2005-11-12
>

= = = = = = = = = = = = = = = = = = = =



wyb1982@wyb1...
2005-11-13