Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Ads

Discussion Groups

Discussion Groups | Analog Devices DSPs | Flags and SPI on 21262

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

Flags and SPI on 21262 - Dirk Bruere - Aug 4 9:00:26 2008



Since I need to access more than 4 devices on SPI I would like to use spare
DAI pins as chip selects.
Of the 4 flag pins I want to use the first three as inputs for INTs from
peripherals, and the fourth as an LED driver.
Is there anything wrong with this setup? Specifically when I service an
interrupt by using SPI? I've read the manual but still not entirely clear
since a lot of emphasis is placed on using the flag pins as chip selects
with SPI.

Dirk



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: Flags and SPI on 21262 - Al Clark - Aug 4 9:48:28 2008

You can use any pin for /SSs as long as you are controlling the SPI 
interface manually (not DMA). With the exception of bootloaders, we 
always use the SPI in this way.

An alternative is to use a decoder such as a 74138 to expand the Flags. 
If you use this method you want to make sure you reserve the 1111 state 
for inactive and move from an active to inactive state so that you don't 
inadvertently pass through another active state during transition.

The last method that we use regularly for large systems is to use paging 
where one /SS is used to select the device and one /SS as the strobe. 
Large systems tend to use the entire DAI so this method is often the 
practical  choice.

Al Clark
Danville Signal Processing, Inc.

Dirk Bruere wrote:
> Since I need to access more than 4 devices on SPI I would like to use 
> spare DAI pins as chip selects.
> Of the 4 flag pins I want to use the first three as inputs for INTs 
> from peripherals, and the fourth as an LED driver.
> Is there anything wrong with this setup? Specifically when I service 
> an interrupt by using SPI? I've read the manual but still not entirely 
> clear since a lot of emphasis is placed on using the flag pins as chip 
> selects with SPI.
>
> Dirk
>  


(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: Flags and SPI on 21262 - Dirk Bruere - Aug 6 13:47:07 2008

Another request - anyone got a C code fragment for flipping the flag pins
when SPI not being used?

Dirk

2008/8/4 Dirk Bruere <d...@gmail.com>

> Since I need to access more than 4 devices on SPI I would like to use spare
> DAI pins as chip selects.
> Of the 4 flag pins I want to use the first three as inputs for INTs from
> peripherals, and the fourth as an LED driver.
> Is there anything wrong with this setup? Specifically when I service an
> interrupt by using SPI? I've read the manual but still not entirely clear
> since a lot of emphasis is placed on using the flag pins as chip selects
> with SPI.
>
> Dirk
>



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )