[En-Nut-Discussion] SPI Bus

Ole Reinhardt ole.reinhardt at embedded-it.de
Thu Feb 26 10:19:39 CET 2009


Hi Thiago,

just some ideas for testing your driver:

First I'd use a logic analyser or just a good digital scope to log and
see if your driver does what you expect from it. At least you can test
the writer side with this equipment.

Using a dataflash would be a good idea too. You could try to use the
NutOSs dataflash driver or even just send some simple commands on your
own. You can for example try to just initialize the dataflash and see
what happens. Again, the logic analyser would be a good help to take a
look into the bus.

Do you have a mmc/sd card installed? The NutOS mmc driver is well tested
and you can try to make it working with your SPI implementation.

Last but not least, use an AVR spi slave. Then you can controle and
debug byte by byte.

> I was trying to test writting a driver for the DIP204 display (KS0073
> in serial mode) found on the EVK1100. But looks like this is not
> exactly SPI compliant, as it doesn't transfer bytes back to the host
> on all and each send, which is incompatible with the SPI Bus from
> ethernut.

Do you have a datasheet? If you like I could take a look into it. I have
made some experience with the SPI bus though (on AVR, AT91, XScale,
Blackfin)

Bye,

Ole Reinhardt

-- 
 _____________________________________________________________
|                                                             |
| Embedded-IT          Hard- und Softwarelösungen             |
|                                                             |
| Ole Reinhardt        Tel. / Fax:        +49 (0)271  7420433 |
| Luisenstraße 29      Mobil:             +49 (0)177  7420433 |
| 57076 Siegen         eMail:    ole.reinhardt at embedded-it.de |
| Germany              Web:         http://www.embedded-it.de |
|                      UstID / VAT:       DE198944716         |
|_____________________________________________________________|



More information about the En-Nut-Discussion mailing list