Author Topic: OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU  (Read 4872 times)

Bluesboy

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
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??

Retheesh_M

  • Guest
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.

Bluesboy

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
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!

Retheesh_M

  • Guest
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.

Bluesboy

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
sorry I do have the NHD-2.7-12864UMY3 Multi-font for sure..my mistake!

Bluesboy

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
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

Retheesh_M

  • Guest
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.

Bluesboy

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
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

Retheesh_M

  • Guest
Yes, for the display to function you have to initialize it first.

Bluesboy

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
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

Bluesboy

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
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!

Retheesh_M

  • Guest
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.

 

16x2 OLED NHD-0216KZW-AY5 Intermittent, and perament vertical dots Brightness

Started by BenB2013Board OLEDs

Replies: 7
Views: 4684
Last post Today at 09:21:20 AM
by tolikkk
Display current of 128x64 yellow OLED (2.7-12864UMY3) really 175mA?

Started by flywheelBoard OLEDs

Replies: 4
Views: 3416
Last post Today at 07:00:48 AM
by tolikkk
Wiring between NHD-1.5128128ASC3ND OLED Display and NHDev 2.10 Development Board

Started by vcp88Board OLEDs

Replies: 2
Views: 2099
Last post Today at 12:43:55 AM
by tolikkk
NHD-0420DZW-AG5 OLED character module--Displaying junk data

Started by control3Board OLEDs

Replies: 5
Views: 1151
Last post Today at 06:03:16 AM
by tolikkk
Korean Hex GB code for OLED multi font display NHD-2.7-12864UMY3

Started by newhavenuserBoard OLEDs

Replies: 2
Views: 683
Last post Today at 08:54:12 AM
by tolikkk