Chibouraska
Joined: 11 May 2007 Posts: 57 Location: Montreal,Canada
|
memory usage |
Posted: Sat Oct 09, 2010 7:58 am |
|
|
Say I am printing on a 4x20 LCD, to fill up the screen with datum I do this:
Code: | sprintf(cBuf,"All of line one data",var,var,...);
lcd_puts(cBuf);
sprintf(cBuf,"All of line two data",var,var,...);
lcd_puts(cBuf);
sprintf(cBuf,"All of line three data",var,var,...);
lcd_puts(cBuf);
sprintf(cBuf,"All of line four data",var,var,...);
lcd_puts(cBuf); |
would it be better to use a different buffer for each line:
Code: | sprintf(cBuf1,"All of line one data",var,var,...);
lcd_puts(cBuf1);
sprintf(cBuf2,"All of line two data",var,var,...);
lcd_puts(cBuf2);
sprintf(cBuf3,"All of line three data",var,var,...);
lcd_puts(cBuf3);
sprintf(cBuf4,"All of line four data",var,var,...);
lcd_puts(cBuf4); |
How many time practically can RAM cells be written to? Some person say
infinite but I don't think so. Anybody could shed light on this
AC
-------------- |
|