[En-Nut-Discussion] using SPI Controller of AT91SAM7X
Dominik Schröder
dominik.schroeder at bh-informativ.de
Sat Mar 13 09:36:12 CET 2010
Dear Ulrich
Thanks for the long wiki article. But I`m sorry, I think I can`t find the
right answers to my questions... :-)
I have three Displays here. One with the SSD1303, one with the SSD1327 and
one with the SSD1329 controller. There are similarities between all
controllers. But your right, in detail, there are differences between every
controller. This makes it hard to write an universal driver. But this is not
my Problem, I have implemented !lowlevel! drivers for the SSD1327 and the
SSD1303 controllers. So I understand how to access the GDDRAM to show some
chars or pictures... (I try to attach a sample File on this email. If it
don`t work, I will search for any Webspace...)
These displays/controllers working good with the TWI. (Ok, it`s not so fast,
but it`s enough to show some chars...)
I think my problem is not to write a new driver (initialization,
send_command, send_data, show_char ...) for the SSD1329 controller, my
problem is to get the data via the SPI device to the display/controller...
:-(
I hope attached you can find my implementation of the SSD1327 driver. The
precise question is now, how to change the comm_out / data_out function to
send the bytes via SPI and not via TWI... :-(
Can anybody give my some examples about this?
Best regards!!
Dominik Schröder
-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Ulrich Prinz
Gesendet: Freitag, 12. März 2010 22:22
An: Ethernut User Chat (English)
Betreff: Re: [En-Nut-Discussion] using SPI Controller of AT91SAM7X
Hi Dominik,
Am 12.03.2010 07:35, schrieb Dominik Schröder:
> Hi Ulrich
>
> Sound good, I`m currently using two OLEDs. One with the SSD1303
> controller (working with TWI) and one with the SSD1329 controller.
> Unfortunately it`s not possible to connect this controller via TWI.
> It only has a SPI interface. But I think the drivers for the
> displays are similar in most ways.
I wonder that the SSD1303 is capable of TWI... I only know that it works
fine with SPI up to 4MHz speed. Or you meant it the other way round.
The drivers for 1303 and 1325 look like beeing the same, but they are
totally different if you look in detail:
> I only want to display some basic information about the device (IP
> address, MAC address, working mode...). So most time it only will be
> text. Currently I don`t have much experience in adding some new
> drivers to NutOs. But I think it is a good aim to learn it...
....
Ok, I wrote a long text here... and then I remembered that I wrote this
text for several times now... In this mailing list, in other forums and
and and.
So I decided to move it to the wiki. It's not nice, it's not finished,
but it is a beginning.
So my answer to this mail can be read here:
http://www.ethernut.de/nutwiki/How_to_implement_a_character_display_API
And sorry Harald, I moved your first start to another topic as it wasn't
graphical enough for me :)
Best regards
Ulrich
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list