View previous topic :: View next topic |
Author |
Message |
carrie_
Joined: 17 May 2008 Posts: 6
|
PIC18F4550 - LCD #fuses problem |
Posted: Sun May 18, 2008 4:09 am |
|
|
Hello all
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
|
|
Posted: Sun May 18, 2008 10:30 am |
|
|
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
|
|
Posted: Wed May 21, 2008 7:59 am |
|
|
thank you, PCM Programmer! i've uninstalled & reinstalled my CCS and it works now! thanks a bunch for taking your time to help! |
|
|
|