|
|
View previous topic :: View next topic |
Author |
Message |
Richi Guest
|
Graphic display KS107/KS108 |
Posted: Wed Jul 19, 2006 3:48 am |
|
|
Hi friends,
Iīm using a graphic display and want to show pictures and text. Text is no problems and I also can show my pictures. But Iīm wondering - I need very much ROM space for these pictures. I write pixel for pixel out to the display...
write_display(0xAA); // . . . .
write_display(0x01); // .
write_display(0xFF); // ........
for more lines with same data I use a: for(i=1; i<5; ++i) to save space
Any other methods? My 16F877 is nearly full with only 2 Pages! |
|
|
Richi Guest
|
Memory Full |
Posted: Wed Jul 19, 2006 3:23 pm |
|
|
Hi all,
my PIC16F877 is not crowded full- only a little bit over 50%?? When I delete 7 or 8 orders, the ROM usage is 50%...
Why canīt I use 100%
This is the error message when I donīt delete the orders:
Hauptmenu
Seg 0033-07FF, 0101 left, need 050B
Seg 0800-0FFF, 0800 left, need 081D
Seg 1000-17FF, 0800 left, need 081D
Seg 1800-1FFF, 0800 left, need 081D
Seg 0000-0003, 0000 left, need 081D
Seg 0004-0032, 0000 left, need 081D
Seg 0033-07FF, 0101 left, need 081D
main
*** Error 71 "\16F877\
Main.c" Line 171(0,1): Out of ROM, A segment or the program is too large
Halting build on first failure as requested.
BUILD FAILED: Wed Jul 19 23:17:54 2006 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Jul 19, 2006 4:11 pm |
|
|
It looks like you're exceeding the ROM page size, which is 2K words
for the 16F877. Do you have a very large function ? In CCS, all
functions must fit within a 2K page. If your function is larger than
that, then you need to split it into two or more functions. |
|
|
Guest
|
|
Posted: Thu Jul 20, 2006 7:01 am |
|
|
Store the graphic data in an external serial EEPROM. This is the usual way. |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|