Calculation of Font Addresses Multi‐Font Displays Help!

Comments

6 comments

  • Saurabh_B

    Hi,

    To get the A the hex value should be 21.

    There isn't a set example for the standard 5x7 fonts, you would have to rewrite the data for the language you would like to use the 4.1 calculation. So for the letter A just replace all the ASCIICODE sections with 0x21.

    Parameters:
    ASCIICODE: 8bit ASCII character code
    Address: Address of character data

    if(ASCIICODE >= 0x20 && ASCIICODE <= 0xFF)
     Address = (ASCIICODE – 0x20) *8;

    0
  • Bluesboy

    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 example..as 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
    and
    -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
    Dave

    0
  • Bluesboy

    Anyone?

    0
  • Saurabh_B

    Hi,

    I am looking into this, but your logic seems fine. I would stick to using the dummy variable that is in the Multi-Font display spec.

    0
  • Bluesboy

    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

    0
  • Saurabh_B

    Hi, Here is some information if it can help at all:

    • The dummy Variable is 0xFF
    • You would want to save the information coming back from the MF Chip into an 8X8 Array. The MF chip will give you 8 sets of bytes. With the bytes, B0-B7 will be the font information.
    • The bits will be vertical, so you could display the information one of 2 ways, either using the bit that corresponds with the line you are currently writing and go horizontally, or go through each bit and write vertically
    0

Please sign in to leave a comment.