Newhaven Display Forum

Newhaven Products => OLEDs => Topic started by: Bluesboy on March 08, 2015, 06:19:25 PM

Title: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Bluesboy on March 08, 2015, 06:19:25 PM
Trying to use the NHD-2.7-12864UC  display in Serial mode.
I have some outputs on the PINs but NO display..
I'm not sure if I have to use the Multi-font IC to get straight ASCII characters and graphics with SPI2_S1??
I'm  hooked up as follows...

hookup
pins 1,5,6,10-14,17,18 all tied to GND
pin 2=3.3V
pin3 =nc
pin4 = SS (used as command/data) D/C
pin7= SPI2_SCLK
pin8= SPI2_SI
pin9=nc
pin15=peset pin
pin16 =CS
pins 19-22= nc

note I modified the example code to suit SERIAL SPI
 Is there any serial examples?
Is a better explanation on how to use this display

I need to  display a character and then do some graphics later??
Title: Re: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Retheesh_M on March 09, 2015, 11:19:04 AM
I would like to confirm the display that you are using.  The NHD-2.7-12864UCY3 is not a multi-font display.  However our multi-font display part number is NHD-2.7-12864UMY3.

You are correct that the built-in multi-font IC has to be used in order to get ASCII characters on the display.  The only other way would be to create your own fonts.  However you don't have to use the multi-font IC in order to output graphics on the display.  The display's controller is independent of the multi-font IC, so you would have to connect a separate serial bus for the display signals versus the multi-font signals.

I currently don't have any examples for the serial interface but I will check and let you know.
Title: Re: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Bluesboy on March 09, 2015, 01:18:39 PM
Hi thanks for the reply,
yes using the NHD-2.7-12864UCY3 multi font.

So I believe I can use same MOSI and SCK bus but have separate SS chip selects..and C/D enables
I'm writing SPI functions from the example code for data and command sequences
Does the INIT();function inialize the MULT FONT side as well?

Do I need the resistor for the display to work?

What is the sequence format to send SPI to Multi-font to have ASCII strings display?
SPI should be mode 0 read data on rising clock I believe/

I think I might be sending to fast? 32MHZ clock /16=2MHZ I believe I'll have a look and confirm that.

Thank you advance... if you can find any serial examples for that display that would be great!
Title: Re: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Retheesh_M on March 09, 2015, 02:22:45 PM
The CY3 is not a multi-font model and contains no built-in fonts.  Only graphics and fonts you create on your own can be used with this display.  We have another display with "MY3" at the end of the model number, which is the multi-font.
Title: Re: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Bluesboy on March 09, 2015, 05:52:07 PM
sorry I do have the NHD-2.7-12864UMY3 Multi-font for sure..my mistake!
Title: Re: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Bluesboy on March 09, 2015, 09:04:39 PM
sorting out the documents..
this pdf http://www.newhavendisplay.com/specs/NHD-2.7-12864UMY3.pdf
on page 15 states that For detailed protocol information, see datasheet: http://www.newhavendisplay.com/app_notes/SSD1305.pdf
SSD1305? I thought the chip set was
as page 1 (title page) mentions a SSD1325  ?

Are there two chip sets in the display? are they similar maybe?

 Basically I'm studying the section 10.3 to section 16 and http://www.newhavendisplay.com/app_notes/MultiFont.pdf document
Please keep me on track
Thanks again
Title: Re: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Retheesh_M on March 10, 2015, 08:19:15 AM
I apologize for the typo in our specification sheet.  The display uses the SSD1325 chip as the controller for the display.  We will fix that in our specification sheet. 

The example initialization sequence given in the specification sheet is the same for both parallel and serial interfaces and will get the display initialized.  The multi-font IC is used to display characters, which requires a separate serial interface via pins 19-22, but for the time being we will ignore those pins and get the display to show something.  On page 12 of the specification sheet there is an instruction called "Display Mode".  If you execute that instruction with a 0xA5 the display will turn on and display yellow color.  After we achieve this then we will move on to display ASCII characters.
Title: Re: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Bluesboy on March 10, 2015, 01:26:24 PM
Thanks Retheesh_M,
I'll try "Display Mode" via the graphic SPI input and get back to you.
I still have to init(); first right ?
Dave
Title: Re: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Retheesh_M on March 10, 2015, 02:04:39 PM
Yes, for the display to function you have to initialize it first.
Title: Re: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Bluesboy on March 11, 2015, 12:15:36 PM
I tried a Display Mode(0xA5 ) or actually used the function Display Mode(0x01); because its OR'd with 0xA4

Anyways I'm reconfirming all connections and I have a few more questions..
1. Im using 3.3V as a supply voltage is that right?  isn't there a on board DC to DC?
2. I have to have CS low during all SPI send
3. MSB first
4. in regards to the SPI mode I've tried each one but I think from looking at the XMEGA SPI data sheet and the displays serial diagram that it should be Mode 3?
5 I'm going to borrow a  four channel scope to try it all out again.

Thanks
Title: Re: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Bluesboy on March 12, 2015, 10:30:54 PM
ITs alive!! But my head is spinning!!

Really lots of my problems were solved with a logic multi channel scope!!
While debugging the code on the XMEGA explained board I could see I was NOT setting ports right for example ..I was not using the right bit mask(s).
I've now written the SPI driver FUNCTIONs and INIT(); for basic graphic side ...but still have much to learn regarding offset on the rows and columns and drawing capabilities etc of the display.
I can play a bit now and then have to tackle the font side of things.

If anyone needs some basic SPI code for the XMEGA256A3BU in c for the NHD-2.7-12864UMY3 let me know.

Thanks for your help thus far!
Title: Re: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
Post by: Retheesh_M on March 13, 2015, 08:01:53 AM
Glad to hear you got it working  :)  If you want, you can reply with just your initialization code (there is a pound button next to quote) so that others can have that resource available.