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

To access more than 64K of code in 8051

Hello,

I am working on a project using the 8051. I am almost on my completion of the project. But my code size has cross the 64k limit. I have heard that by using paging technique it is possible to access more than 64K code.

But i have no idea how to implement paging in 8051.Can any one help me for the same.

Thanks in anticipation.

Viral.

Parents
  • I would like to add just a couple of comments. The 80C51 is an 8bit device. The most efficient data type for code size will be the unsigned char. The next most efficient is the unsigned int and then to the signed data types. Try at all places possible to use unsigned. Next, get rid of the printf or scanf if you use them. Use puts and do you own formatting. Last but not least, get rid on float values if possible. Most of the time simple fixed point processing will calculate all the values you need.
    Of course Andy answered you initial question about code banking. Brad

Reply
  • I would like to add just a couple of comments. The 80C51 is an 8bit device. The most efficient data type for code size will be the unsigned char. The next most efficient is the unsigned int and then to the signed data types. Try at all places possible to use unsigned. Next, get rid of the printf or scanf if you use them. Use puts and do you own formatting. Last but not least, get rid on float values if possible. Most of the time simple fixed point processing will calculate all the values you need.
    Of course Andy answered you initial question about code banking. Brad

Children