Hi I have been learning to use 128x64 LCD module with AT89C51 and I have been using FastLCD for converting bmp into a table of bytes. I have use the table in my codes and tried to compile it. I get the result - auto segment too large. How to put all bytes in my codes in order to display picture on my 128x64 LCD module. I don't understand it. What is the problem? Manoz Joshi
my LCD module is 128x64 and the data would be 1024 in order to put the whole picture on my LCD. and Bascailly I don't have external memory Basically? I believe you either do or do'nt Then you will never be able to change the display since the only place where you will have 1024 bytes is in code memory. Erik
Ok, which processor would you recommend me to use instead of AT89C51? Manoz Joshi
Ok, which processor would you recommend me to use instead of AT89C51? Or what is your best advice for me to solve this problem out? Manoz Joshi
Since you, probably, already has made the boiard you will need to find a processor with enough internal RAM. You do not state which type of chip you use, but if it is PLCC the P89c668 seems a logical choice 8k internal RAM and ISP. There may be derivatives with enough internal ERAM for your purpose in other pinnings, I know of none. Maybe, if you are DIP pinned a conversion socket would do? If you find no solution other than layoing out the board again, I will strongly recommend the P89C668 (PLCC sockets with .1" pins are available). Another option is, of course, to add an external RAM, but that will cost you 18 I/O pins. Erik
"what is your best advice for me to solve this problem out?" Your 1st problem seems to be that you know nothing about the 8051 architecture. Before setting off on, say, the Paris-Dakar motor rally, it is generally a good idea to take a few driving lessons! For the 8051 family, You need to read the following documents - commonly referred to as "the bible" for the 8051: Chapter 1 - 80C51 Family Architecture: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf Chapter 3 - 80C51 Family Hardware Description: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf You can then start planning your project, and giving sensible answers to questions like, "how much memory will it take?" Are you also a newbie to 'C' programming in general? If so, you'll also need a good 'C' textbook. To understand the Keil tools, you need to read the uVision Getting Started guide, and work through the example projects in it. This will give you a proper introductions to the tools, how they work, and how to use them - rather than just jumping-in blindly at the deep-end!
Greeting Ahh I understand now it has to do with my AT89C51 because of its small memory size. At the moment, I am currently using 40 pins DIP chip. Good job that I have set the hardware layout on my breadboard because I want to learn it as part of my experiment. Erm ....I guess I need to find 40 pins chip with 8K 32K or 64K internal RAM. Any recommendaton? Manoz Joshi
1) you clearly need to follow Andys suggestion above 2) Ahh I understand now it has to do with my AT89C51 because of its small memory size. NO, because of insufficient DATA memory. Good job that I have set the hardware layout on my breadboard because I want to learn it as part of my experiment. Breadboarding is a bad idea, especially with modern derivatives. Ge a "development board". I guess I need to find 40 pins chip with 8K 32K or 64K internal RAM. Any recommendaton? did I not just give you one? Anyhow, get going with "the bible" a C book and the "getting started guide, then come back Erik
Fine You are right. I better take Andy's advice and go through everything. I have been using keil software for a while but the problem is how do I know that my codes will be fitted within the data memory in any microcontroller chip? Then I can select the microcontroller carefully in the future. Manoz Joshi