DSPRelated.com
Forums

need help using spi..enabling 8 devices and getting data one by one

Started by dsp_kits July 8, 2008
Hi,
I have to interface 8 codecs(adc) having one channel each with
bf533 ....for that I am using Spi interface..now i have to enable them
one by one and transfer data from them to the memory of dsp kit 533...

question1:
can anybody suggest how can i enable first one and transfer its
data,then enable 2nd one and transfer its data through to the 8th one?

question 2:
May i use pf pins to first enable the codec and then transfer data
using spi???

If anybody has worked on it or any one has any helping code of spi with
codec or so do gimme a favour...

Thanks in advance..
An easy way to do that is a 1 of 8 decoder. Use 3 GPIO's to select
one of the 8 devices, and tie the spi lines to all devices in parallel.

Patience, persistence, truth,
Dr. mike

On Tue, 8 Jul 2008, dsp_kits wrote:

> Hi,
> I have to interface 8 codecs(adc) having one channel each with
> bf533 ....for that I am using Spi interface..now i have to enable them
> one by one and transfer data from them to the memory of dsp kit 533...
>
> question1:
> can anybody suggest how can i enable first one and transfer its
> data,then enable 2nd one and transfer its data through to the 8th one?
>
> question 2:
> May i use pf pins to first enable the codec and then transfer data
> using spi???
>
> If anybody has worked on it or any one has any helping code of spi with
> codec or so do gimme a favour...
>
> Thanks in advance..
>