On 11/7/2011 5:00 PM, Jean-Paul wrote: > [snip] > Maybe I have not read all the code, but I don't see where (when) the address > is written after "Foobar !", before "Hello". > > Jason, you could try: > > REG_SEL=0; > lcd_command(0x80); // SET DD RAM ADDRESS > > (or send again the init instructions) > in order to set "DDRAM Address" back to the beginning of the first line (0) > > before calling > puts_lcd("~Hello")
Well, he said puts_lcd() only outputs the first character. Now, assume "Foobar !" works and we are seeing '~' only and the final LED blinking works. LCD is still auto-incrementing. I don't think setting the DDRAM is useful, for now. Try degrading the function. Loop a char variable to output ASCII 65-70 ("ABCDE") and verify that simple looping works. If looping works, then it may be a pointer thingy... -- Cheers, Kein-Hong Man (esq.) Kuala Lumpur, Malaysia ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user