Search found 10 matches

by inh
Sat Mar 06, 2010 10:37 am
Forum: Code Snippets
Topic: SSD1339 OLED via SPI
Replies: 17
Views: 9356

Re: SSD1339 OLED via SPI

Checked the output voltages. 1 = 3.2v or so, 0 is 0.54v, which is awfully close to the maximum of .62v Double checked the wiring, software SPI, port/pin, and anythign else I could think of and it all checks out. I'm starting to think either the voltage is too high for the controller to register a 0 ...
by inh
Sat Mar 06, 2010 2:14 am
Forum: Code Snippets
Topic: SSD1339 OLED via SPI
Replies: 17
Views: 9356

Re: SSD1339 OLED via SPI

It's my understanding that the diode method is safer, as per that sparkfun tutorial I linked.

I'm going to tie the pins high and low and check the voltages against the LCD datasheet to make sure the voltages are within spec for high and low values for the controller.
by inh
Fri Mar 05, 2010 9:02 pm
Forum: Code Snippets
Topic: SSD1339 OLED via SPI
Replies: 17
Views: 9356

Re: SSD1339 OLED via SPI

I dont have enough diodes to level shift from my 5v micro controller to the 3.3v OLED, and there is no easy way to run my micro at 3.3 volts. Ill go over all thelines and individually test each one later today.
by inh
Fri Mar 05, 2010 11:06 am
Forum: Code Snippets
Topic: SSD1339 OLED via SPI
Replies: 17
Views: 9356

Re: SSD1339 OLED via SPI

SPI is now working, confirmed via loopback testing.

Could it possible be that the initialization commands are wrong? (just double checking)
by inh
Thu Mar 04, 2010 12:34 pm
Forum: Code Snippets
Topic: SSD1339 OLED via SPI
Replies: 17
Views: 9356

Re: SSD1339 OLED via SPI

I've moved on to get SPI loopback working, when I get that figured out I'll come back to this and hopefully it'll work :shock:
by inh
Thu Mar 04, 2010 8:40 am
Forum: Code Snippets
Topic: SSD1339 OLED via SPI
Replies: 17
Views: 9356

Re: SSD1339 OLED via SPI

DDRA = 0xff; PORTA = 0; DDRB = 0b11110111; PORTB = DDRB; DDRD = 0b11111111; PORTD = DDRD; DDRF = 0b00000111; PORTF = DDRF; // initialize SPI with lowest frequency; max. 400kHz during identification mode of card SPCR = (0 << SPIE) | // SPI Interrupt Enable (1 << SPE) | // SPI Enable (0 << DORD) | //...
by inh
Thu Mar 04, 2010 2:52 am
Forum: Code Snippets
Topic: SSD1339 OLED via SPI
Replies: 17
Views: 9356

Re: SSD1339 OLED via SPI

I will post my specific code and do up a schematic in Eagle later today or tonight, maybe some bugs can be spotted =]

Also, shouldnt this be in the AVR forum?
by inh
Thu Mar 04, 2010 2:38 am
Forum: Code Snippets
Topic: SSD1339 OLED via SPI
Replies: 17
Views: 9356

Re: SSD1339 OLED via SPI

MISO isn't connected in the circuit. I changed the pin definitions for port F to set the first 3 to output. I beleive it is correct as I can see the lines being toggled high and low with my incredibly awesome logic probe. RST goes low (or maybe its high, I forget how my probe was hooked up) for just...
by inh
Thu Mar 04, 2010 1:33 am
Forum: Code Snippets
Topic: SSD1339 OLED via SPI
Replies: 17
Views: 9356

Re: SSD1339 OLED via SPI

I got it to compile correctly. Mostly just required porting of the timer code for the mega128. It doesn't show anything on the LCD at all though =[ I have interfaced the display to my olimex atmega128 development board, and since the board is 5 volts I had to level shift using the following method: ...
by inh
Wed Mar 03, 2010 1:00 pm
Forum: Code Snippets
Topic: SSD1339 OLED via SPI
Replies: 17
Views: 9356

Re: SSD1339 OLED via SPI

Thank you for posting this! Having some issues getting it to compile, but I'm sure I'll get it figured out =]