OLED NHD-2.7-12864UC Confused Need a bit of HELP ...Using a Xmega256A3BU
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...
pins 1,5,6,10-14,17,18 all tied to GND
pin4 = SS (used as command/data) D/C
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??
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.0
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!0
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.0
sorry I do have the NHD-2.7-12864UMY3 Multi-font for sure..my mistake!0
sorting out the documents..
this pdf https://newhavendisplay.com/content/specs/NHD-2.7-12864UMY3.pdf
on page 15 states that For detailed protocol information, see datasheet:https://newhavendisplay.com/content/app_notes/SSD1305.pdf SSD1305? I thought the chip set wasas 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 https://newhavendisplay.com/content/app_notes/MultiFont.pdf document
Please keep me on track
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.0
I'll try "Display Mode" via the graphic SPI input and get back to you.
I still have to init(); first right ?
Yes, for the display to function you have to initialize it first.0
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.
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!0
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.0
Please sign in to leave a comment.