|
|
View previous topic :: View next topic |
Author |
Message |
ernest
Joined: 11 Feb 2004 Posts: 51
|
|
Posted: Sun Nov 28, 2004 9:31 pm |
|
|
Mark wrote: | That PIC has 368 bytes of RAM. The compiler uses some for scratch variables so you can't use all 368 bytes but certainly can use more than 42 if you buffer is big enough. |
I have managed to increase the number of chars. for display from 42 to 84. Anything more than 84, the compiler gives an error of "Not enough RAM for all variables".
So, is this the MAX possible?
Although it is now able to display more than 50 char. as what I have planned initially but the RS-232 interface is not working satisfactorily.
May I know what could be the reason or how can I improve on this?
At the moment, I'm doing a for-looping to acquire each char. that is being entered via the keyboard. Many times, when a char. is being typed, the Hyperterminal always display different char. but the PIC managed to pick up the correct char.value.
Why is that so?
In fact when the PIC return a message say "Enter the message:" to the Hyperterminal, instead of displaying it correctly it shows something else such as "Enter )@e msage;". At times, the Hyperterminal interface will also hangs.
Could you recommend how I can overcome this?
Code: |
for(i=0; i<s1_char_size; i++)
{
s1[i]=getc();
delay_cycles(2);
printf("%C",s1[i]);
delay_us(1);
}
|
Thanks.
ernest |
|
|
Matrix4U
Joined: 20 May 2007 Posts: 7
|
LED Moving Message 8X80 |
Posted: Sun Aug 12, 2007 1:05 am |
|
|
hello ernest
i have seen the forums that u make led moving massage 8x80 i am also trying the same but not get luck till now
pls can u tell me hows ur hardware and programm for learning purpose
plsss i be so thank ful to u |
|
|
|
|
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
|