CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

delay_us in picdem_LCD.C

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Bahli
Guest







delay_us in picdem_LCD.C
PostPosted: Fri Aug 11, 2006 5:09 am     Reply with quote

I use picdem2 plus and the driver for LCD that i found on this forum.
When i run this code ( i have tested with different MCU ) i get this error:

Code:
#include <16F877.h>
#include "picdem_LCD.c"
#fuses XT,NOWDT
#use delay(clock=4000000)

void main()
{
   lcd_init();
   while(true){
      printf(lcd_putc,"\n Test");
   }
}


-----------------------------------------------------------
Undefined identifier delay_us in file picdem_lcd
Ttelmah
Guest







PostPosted: Fri Aug 11, 2006 5:24 am     Reply with quote

The delay definition (and your fuses), _must_ be in front of any 'includes' that use timings.

Best Wishes
Guest








PostPosted: Fri Aug 11, 2006 5:25 am     Reply with quote

SOLVED !

The #include statment should go after fuses and delay statments.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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