Introduction
I've got an DD-9664FC-2A OLED display from densitron (controller is
SSD1331).
I ordered it from farnell along with the adapter board.
I've got troubles interfacing this display serially to my AT91SAM7S256.
You can find my code along with datasheets for display, controller and
adapter board here:
http://lupin.shizzle.it/oled_display.zip
Software
I've done everything to slow down the software as far as i could (to
make sure i am not going too fast for the display).
The µC should run at about 8 MHz and i (almost randomly) added heavy
delay times.
I first tried to use the example sequences that one can find in the
display datasheet. Then i found this website offering code to interface
exactly the same display:
http://www.rayslogic.com/propeller/3rdPartyHardware/uOLED-96-Prop/uOLED-96-Prop.htm
I am now using the sequence presented in the driver on that site because
i trust it to be correct.
Hardware
I short circuited jumper J3, J8 (VDDIO to VDD), J4, J5, J6 (BS1 to GND)
and J7 (BS2 to GND) on the adapter board. This should be the standard
configurations.
I generate the high voltage for OLED with a little unregulated SMPS
(voltage clamp with zener diodes). It is switched to the OLED display by
NPN+PNP transistor.
Here is a "nice" picture of my setup:
http://lupin.shizzle.it/oledaufbau.jpg
The serial interface of the SSD1331 is described in the datasheet on
page 17.
I just connected D0 and D1 which should make up the serial interface:
D0 being clock -> connected to PA14
D1 being data -> connected to PA13
DC -> connected to PA7
RES -> connected to PA8
CS -> connected to PA11
RW_WR tied to GND
E_RD tied to GND
I have added a few layers of stick tape on the bottom of the fixture to
increase the preasure on the foil connector pins.
I wonder if i should solder the display to make sure it got contact.
Problems
So far i was not able to get a single pixel lit (not randomly nor in a
controlled behaviour).
I don't see the flaws in my software, it appears straight forward to me.
Does anyone know whether it is dangerous to connect the high drive
voltage (VCC) to the OLED before it was properly initialized?