Hello rufus,
Take care that in the interface of a standard LCD display you should test
the BUSY_BIT (B7 of command register) before to send a character to display
.
My routines look like that:
// to display a string
for(ij=0;ij<strlen(string_to_display);ij++) {
BusyCheck();
ENV_DATA_LCD(string_to_display[ij]);
}
where:
void BusyCheck(void) { // wait until BF is cleared
data OCTET result;
do {
result = LCD.LCD_CMD_RD;// read LCD cmd register
}while(result & 0x80);
}
Hope this helps
Daniel Cauchard.
----- Original Message -----
From: "rufus shadowolf" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, July 08, 2008 11:41 AM
Subject: [Sdcc-user] pic 18f4520 and array, some troubles
>
> hello all,
> after a lot of unsuccessful try, i decide to write here, in the hope
> that you
> can help me to find out the cause, and maybe, a way to solve it.
>
> begining of the story, i was trying to have a lcd display working.
> to do it, i juste read some paper about a lcd display work, and write a
> short/dirty code to see, and, at the first see, it work fine,
> but, when i try to make it work in a "dynamic array" context, it don't
> work,
> i'll try to explain:
>
> ( i do it one week ago in french here:
> http://forums.futura-sciences.com/thread233640.html )
>
> to resume if the lcdOut fonction send a char to the lcd display:
> (for all case: char* str = "Hello World")
>
> lcdOut('a');// show me a nice 'a' on the display
>
> lcdOut(str[1]);//show me a nice 'e' on the display
>
> but:
> for(i = 0; i>3; i++)
> {
> lcdOut(str[1]);
> }
> show me 3 strange identical char whitch change when i turn off the pic
> alimentation.
>
> i try to change the stack size/position without any changement.
>
>
> i'm sorry for my poor english, if you have some question/test that you
> want me
> to do/answer say it.
>
> regards, yann asset.
>
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Sdcc-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
> ---------------------------------------------------------------------------------------
> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 270.4.3 - Release Date: 28/06/2008
> 00:00
>
>
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user