On Jul 23, 2007, at 3:14 PM, Robert Bergfors wrote:

> CFLAGS= -mpic16 -p18f2550 --pstack-model=large

Isn't the large stack model for PIC16 still incomplete?  I am running  
some fairly complicated programs without hitting the stack limit in  
the small model (#pragma stack 0x200 200).  I'm not too terribly  
familiar with the stack options, but that might be a good place to  
start.

On Jul 25, 2007, at 6:21 AM, John J. McDonough wrote:

> Also, I'm not sure what delay1ktcy() exactly results in,  but you  
> need a
> substantial wait after sending the byte.  I don't recall exactly  
> what it
> needs to be but it seems like it is on the order of 2ms ... in any  
> case way
> more than the 450ns needed to strobe the data into the LCD.

If your PIC is running at 4MHz, delay1ktcy(x) will delay for x ms.   
delay1mtcy(x) will delay for x seconds.  I always pause for a second  
after starting up to allow time for my LCD (and other external  
components) to turn on.  If you start writing to the LCD too soon, it  
will probably simply display garbage.

Hope this helps.
Matt

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to