morebudwiser
Joined: 17 Oct 2005 Posts: 26
|
18f4523 fuses |
Posted: Tue Jun 10, 2008 5:19 am |
|
|
hi i have my test board built and tested using a pi16f877a. I now want to use a pic18f4523 but can not get it to run the same program that is running on the 16f877a i have changed the header file to suit the pic18f4523 but i am not sure if i have set all the fuses that are required to make it work. My problem is i have a 4x20 lcd connected to port d and all i am trying to do is get it to display hello world i am using compiler version 4.065. Here is the code I'm using. Many Thanks Andrew
Code: | #include <18F4523.h>
#fuses NOWDT,HS, NOPUT, NOPROTECT
#use delay(clock=20000000)
#include <LCD420_d.c>
void main()
{
lcd_init();
while(1)
{
printf(lcd_putc,"Hello World");
}
}
|
|
|