This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

can code go into eeprom

Hello my english speaking friends.
I will like to work with GLCD.
I working with the program uv4 and others, and this generate table of chars for the compilers CCs and Hs...
How can i to converter this format file(chars) to binari format (bin) , for load to eeprom 24lcxx ?
Thanks by people.

Parents
  • Assuming the issue is the storing of the a character image in eeprom. There are programs that will take an font with all its representations of characters into an array. Now a glcd has an aspect ratio pixels may not be square further a character within a font can have different sizes. Suppose a font was chosen so that a char occupies a block 8x8 pixels. Typically this is stored in the eeprom using 8 bytes with the font having extra to create a space between characters. Next an indexing scheme is required. Typically if the character encoding is ASCII then the ASCII value is used as an index and since each char now takes up 8 bytes a multiplication by 8 of the ASCII value would point to the starting address. EX 'A" is ascii base10(65) and the position 'A is to appear in the glcd is row y col x... then the eeprom is accessed at address 65x8 8 rows are written at col x.
    Now the graphical representation of a character can vary greatly but for a small sized GLCD the controller is relatively simple compared to a Graphics processor so fonts sizes are often just multiples of a base font stored in the eeprom.

Reply
  • Assuming the issue is the storing of the a character image in eeprom. There are programs that will take an font with all its representations of characters into an array. Now a glcd has an aspect ratio pixels may not be square further a character within a font can have different sizes. Suppose a font was chosen so that a char occupies a block 8x8 pixels. Typically this is stored in the eeprom using 8 bytes with the font having extra to create a space between characters. Next an indexing scheme is required. Typically if the character encoding is ASCII then the ASCII value is used as an index and since each char now takes up 8 bytes a multiplication by 8 of the ASCII value would point to the starting address. EX 'A" is ascii base10(65) and the position 'A is to appear in the glcd is row y col x... then the eeprom is accessed at address 65x8 8 rows are written at col x.
    Now the graphical representation of a character can vary greatly but for a small sized GLCD the controller is relatively simple compared to a Graphics processor so fonts sizes are often just multiples of a base font stored in the eeprom.

Children