grunwald
Joined: 12 Jan 2004 Posts: 3 Location: germany
|
PIC18F452, ICD=TRUE and HS Oscillator? |
Posted: Mon Jan 12, 2004 10:54 am |
|
|
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 |
|