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

18f4523 fuses

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



Joined: 17 Oct 2005
Posts: 26

View user's profile Send private message

18f4523 fuses
PostPosted: Tue Jun 10, 2008 5:19 am     Reply with quote

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");
         }
   }
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jun 10, 2008 11:34 am     Reply with quote

At a minimum, you need to add the NOLVP fuse. You need it with
the 16F877A too.
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