Anyone know how to configure a pic18lf2520 to use the internal Crystal?
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Aug 11, 2006 11:50 am
Load the 18F2520.H file in your editor. Scan the list of available fuse
settings (config bit settings) at the top of the file. CCS tries to use
abbreviations for the config bits that seem reasonable.
What fuse settings do you see in the list that look like they refer to
the internal oscillator ?
cam_male2003
Joined: 21 Sep 2005 Posts: 12
Posted: Wed Aug 30, 2006 5:38 am
I was refering to using the internal Xtal on the chip.
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
Posted: Wed Aug 30, 2006 5:55 am
There is no internal XTAL, only an internal RC oscillator.
As PCM said above, which of the fuses appear to look like an INTernal RC oscillator fuse?
Guest
Posted: Wed Aug 30, 2006 7:16 am
Use INTRC or INTRC_IO in #fuses and don't forget to set up your internal oscillator by
setup_oscillator(OSC_8MHZ | OSC_INTRC);
as the first line of your main() code because this chip has two internal oscillators (8MHz and 31kHz).
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