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

PIC18F452, ICD=TRUE and HS Oscillator?

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



Joined: 12 Jan 2004
Posts: 3
Location: germany

View user's profile Send private message Visit poster's website

PIC18F452, ICD=TRUE and HS Oscillator?
PostPosted: Mon Jan 12, 2004 10:54 am     Reply with quote

Hello,

I use PCWH 3.183 to compile for a PIC18F452. I want to debug my hardware
with the ICD-U40.

If I use the directive "#device ICD=TRUE" then all my
"#fuses" settings are ignored. Because I use a 20MHz crystal
I have to enable "HS" Oscillator, but PCWH ignores all
the parameters and sets an "RC_IO" osc ...

What can I do to use my "HS" oscillator and to use set other fuse bits?

My setting look like this:
#include <18F452.h>
#device *=16 adc=10
#device ICD=TRUE
#fuses HS,NOPROTECT,NOOSCSEN,NOBROWNOUT,NOWDT,PUT,CCP2B3,NOSTVREN,DEBUG,NOLVP,NOWRT,NOWRTD,NOWRTB,NOWRTC,NOCPD,NOCPB,NOEBTR,NOEBTRB
#OPT 9
#use delay(clock=20000000) //20MHz Clock Speed


Thank You for Your support,
Bernd Grunwald
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Mon Jan 12, 2004 12:40 pm     Reply with quote

Go back to 3.182 this is the last part of the readme file on the download page. Look at what it says about ICD=TRUE

3.181 #ROM now allocates a dedicated segment, see README.TXT for more info
3.181 Improved optimization
3.181 Support for newest chips has been added (including the 648A debugger)
3.182 Updates for the newest chips
3.183 The #INT_RB was changed to #INT_RA on parts with no port B
3.183 A bug with the ++ operator on field pointers in *=16 mode is fixed
3.183 A PIC18 problem with floating point - when a float crosses a bank is fixed
3.183 The fuse settings forced in ICD=TRUE mode have changed for some parts
3.183 The LABEL_ADDRESS function now may be used to obtain the address of CONST data
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