CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Graphic display KS107/KS108

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Richi
Guest







Graphic display KS107/KS108
PostPosted: Wed Jul 19, 2006 3:48 am     Reply with quote

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
PostPosted: Wed Jul 19, 2006 3:23 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Jul 19, 2006 4:11 pm     Reply with quote

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








PostPosted: Thu Jul 20, 2006 7:01 am     Reply with quote

Store the graphic data in an external serial EEPROM. This is the usual way.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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