Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Bluesboy

Pages: [1]
OLEDs / Re: Calculation of Font Addresses Multi‐Font Displays Help!
« on: September 08, 2015, 12:43:05 PM »
Thank you,
I have the (NHD-2.7-12864UMY3) hooked up to a LOGIC Analyser to view the SPI signals.
Using the the SERIAL Protocol SPI with a ATMEL XMEGA.

I do have the initialization C code functions working and can send graphics (Data and Command)
which I'll clean up very soon and make available to the forum.

Thanks again for any support

OLEDs / Re: Calculation of Font Addresses Multi‐Font Displays Help!
« on: September 08, 2015, 06:18:58 AM »

OLEDs / Re: Calculation of Font Addresses Multi‐Font Displays Help!
« on: September 02, 2015, 09:53:14 PM »
Thank you so much...
I just what to straight out a few things with the Multi Font so I'm not going in circles!

BTW the way I have the main graphic side working and can send checker board and rectangles clear the screen etc

The procedure is as follows and please correct me if I'm wrong
Based on the Chinese shown on on page 30 section 5
but I'm first trying 5x7 ASCII just for the letter "A" or 0x21 from  Font table 2.1
-Send string to address calculation function running  in MPU(i.e ATmel XMEGA)
and obtain address I end up with address=8 (I hope?)
-then I send a 24 byte address to the MF chip SPI (mode0) SPI_OUT data= 0x0B,0x00,0x00,0x08,0xFF (read command, 3 bytes, first two are dummy cause my address is just 0x08, than the 0xFF dummy) but the documents section 6 (page 31) say dummy byte is FF but in section 12.2 (page 31) Communication Protocol dummy byte stated to be a 0x00??
-now I switch to SPI mode3 to RX 32 bytes?? or just 8 bytes
-so if I can save or store that all (but my SPI code isn't work) but if I could than I send back out the Graphic display side
using the data command but not sure what routine.

I guess I need some help on that...almost there as I figured how to "init" the display so far.
Thank you in advance

OLEDs / Calculation of Font Addresses Multi‐Font Displays Help!
« on: August 25, 2015, 10:32:01 PM »

Display type: NHD-2.7-12864UMY3
useage: Serial SPImode

From the Font Tables and Application Guide
 section 2.1 ASCII font table

and section 4.  Calculation of Font Addresses
4.1. 5x7 ASCII

I need help figuring out the what are the the ASCIICODE used in the Address function
if(ASCIICODE >= 0x20 && ASCIICODE <= 0xFF)
 Address = (ASCIICODE 0x20) *8;

example for an "A" character
is the ASCIICODE=hex 21 (from  section 2.1 ASCII font table)? or 12?
or is it =hex 41 (from a standard ASCII table)

also there is an example given in Section 5 to calculate, retrieve and display for a 32 byte Chinese character
is there an example for a simple 8 byte 5x7 ASCII? or I must rewrite to suit?

Thank you very much in advance.

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!

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 Retheesh_M,
I'll try "Display Mode" via the graphic SPI input and get back to you.
I still have to init(); first right ?

sorting out the documents..
this pdf
on page 15 states that For detailed protocol information, see datasheet:
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 document
Please keep me on track
Thanks again

sorry I do have the NHD-2.7-12864UMY3 Multi-font for mistake!

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!

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
pin 2=3.3V
pin3 =nc
pin4 = SS (used as command/data) D/C
pin7= SPI2_SCLK
pin8= SPI2_SI
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??

Pages: [1]