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 support@ccsinfo.com

PIC18F4550 - LCD #fuses problem

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



Joined: 17 May 2008
Posts: 6

View user's profile Send private message MSN Messenger

PIC18F4550 - LCD #fuses problem
PostPosted: Sun May 18, 2008 4:09 am     Reply with quote

Hello all Smile

i'm trying to initialize the LCD, just to show maybe "HELLO WORLD" nothing too fancy, but I'm stuck while compiling this code below. Another tab appears which says 18F4550.h. And when i click for more help, it says "Unknown keyword in #fuses"

i am really new in this, and any form of help would be deeply appreciated.

Code:

#include <18F4550.h>
#fuses NOWDT,XT, NOPUT, NOPROTECT
#use delay(clock=48000000)
#include <LCD.c>

void main()
   {
      lcd_init();
     
      while(1)
         {
            printf(lcd_putc,"Hello World");
         }
   }

PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun May 18, 2008 10:30 am     Reply with quote

It compiles with no errors with vs. 4.073.

However, the XT fuse will not run the PIC at 48 MHz. XT is for 4 MHz
operation, typically. This is clearly stated in the oscillator section of
the 18F4550 data sheet.
http://ww1.microchip.com/downloads/en/DeviceDoc/39632D.pdf
carrie_



Joined: 17 May 2008
Posts: 6

View user's profile Send private message MSN Messenger

PostPosted: Wed May 21, 2008 7:59 am     Reply with quote

thank you, PCM Programmer! i've uninstalled & reinstalled my CCS and it works now! thanks a bunch for taking your time to help!
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