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.
can code go into eeprom for load to eeprom 24lcxx ? NO
however code can go into a PARALLEL EEPROM
Erik
You can put anything you like into a serial EEPROM
The question is whether the CPU can fetch its instructions for execution from there - to which the short answer is, "No.".
The long answer is that you would have to write code that would: 1. fetch the stuff from the serial EEPROM; 2. put that stuff into a place from which the CPU can fetch its instructions for execution; 3. get the CPU to start fetching its instructions for execution from that location.
Which is, essentially, the function of a so-called Bootloader...
THE CODE IS NOT EXECUTABLE CODE. WHY DIDNT YOU READ WHAT I SAID!
GLCD FOR SHOWING PICTURES LIKE BMP FILES.
For first you need to understand what is in the BMP file and what you need to put in EEPROM
A BMP file can have a complex structure where are defined a lot of extra information about picture,
MY GLCD is RGB?
for RGB you need to save 24 bits for each pixel so, you need to use 3 locations for your picture where any location tell you the value for R / G / B color
if you are familiar with matlab you can write a program(script) what can convert any picture in raw format
the eeprom memory is viewed like a unidimensional but my picture is bidimensionl, if i know rows and cols number i can save your picture line after line where pixel[5][6] form a picture 30X50.
CAN I PUT THIS CODE INTO EEPROM?
THE CODE IS NOT EXECUTABLE CODE if it is not executable, it is not 'code' but data
CAN I PUT THIS CODE INTO EEPROM? no, but you can put that DATA in an EEPROM if you do not need a refresh rate faster than you can transfer from the EEPROM to yhe display. The EEPROM data sheet (and whatever code you need for whatever micro you use) will allow you to calculate the transfer rate from EEPROM to the display.
"CAN I PUT THIS CODE INTO EEPROM?"
WHY DIDNT YOU READ WHAT I SAID!
You can put anything you like into a serial EEPROM!
And, having put it there, you can pull it out again - then you can do with it as you wish!
"WHY DIDNT YOU READ WHAT I SAID!"
Read your post again yourself, and show us where you did write "GLCD FOR SHOWING PICTURES LIKE BMP FILES."
The word "code" in a programming forum really have a very high probability of meaning source code or machine code (processor instructions).
So make sure you really give enough information - and don't be angry when you have given too little information and someone misunderstands.
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.
gan. thank you for the one sensible amswer.
abndrew said.
WHAT A STUPID ANSWER. AND NOT TRUE. HOW CAN YOU PUT A ZEBRA INTO A SERIAL EEPROM?
"HOW CAN YOU PUT A ZEBRA INTO A SERIAL EEPROM?"
Easy - you digitize it.
A much harder question: how to present a forum to new user in a way that they understand the bad idea of using CAPS in their posts except when writing acronymes?
YOU LIKE STAR TREK? YOU BELIEVE STAR TREK? THIS IS REAL LIFE MAN! CAN YOU MAKE A REPLICATOR IN UVISION?
I believe in the existence of stupidity. And your keyboard is still broken.
Here is the crux of the question:
Can YOU put a replicator in a EEPROM?
"WHAT A STUPID ANSWER. AND NOT TRUE. HOW CAN YOU PUT A ZEBRA INTO A SERIAL EEPROM?"
That is it Raj your cut off!
With a barcode scanner...?!
"With a barcode scanner...?!"
Maybe we could get genetics to take a rapid step forward :D
void put_a_zebra_into_eeprom( void ) { char zebra[] = "A ZEBRA"; eeprom_write_string( zebra ); }
should do it?