This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE?: [ECOS] RE?: RE?: [ECOS] Does AT 91 SPI driver support external SPI devices?


An other thing, when i tset the board with the Functionnal Test Software of Atmel, it tail that there is an error with USART. Can it be the source of my problems?
 
Thanks a lot!
Stéphane

________________________________

On Wed, Feb 28, 2007 at 04:33:57PM +0100, Julien St?phane wrote:

> I don't know how to put the correct value because my board
> (AT91EB55) use a BIN/OCT converter. So if I want to use the device
> 4, the value of NPCS0=0, NPCS1=0, NPCS2=1 and NPCS3=0.

> The pins number of different NPCS are : NPCS0=pin98 (PA26),
> NPCS1=pin99 (PA27), NPCS2=pin100 (PA28) and NPCS3=pin101 (PA29).

The EB55 is actually an M55800A?

If so, its pins are not as flexible as the AT91SAM7 devices. There is
only one place the SPI pins come out of the chip.

> What does the AT91_PIN(.., .., ..) mean? Do I have to define the
> AT91_SPI_NPCS1 in my code or in the driver? I think in my code...

They are defined in var_io.h in the HAL. You can just use them in your
SPI configuration. The default values should be O.K.

I suggest you single step through spi_at91_set_npcs(). As it sets the
bits you should see the NPCS outputs from the chip change. Check what
is going into the demultiplexor and what is coming out of the
demultiplexor.

        Andrew


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]