|
|
View previous topic :: View next topic |
Author |
Message |
ritchie
Joined: 13 Sep 2003 Posts: 87
|
Fuse Config for PIC18F1320 |
Posted: Sat Feb 07, 2004 8:12 am |
|
|
Hi,
#include <18f1320.h>
#device ADC=10
#fuses ?????
#use delay (clock=4000000)
What would be the proper fuse configuration of a PIC18F1320 using the internal oscillator of the chip for a 4MHz clock frequency?
I understand that 18f1320 has a max internal oscillator of 8MHz? what config do I need to use this clock frequency?
Thnx |
|
|
Guest Guest
|
After perusing the data sheet |
Posted: Sun Feb 08, 2004 11:21 am |
|
|
I need to keep up better with the new chips! I like this one. Because I was interested, I read a bit of the data sheet.
In particular, see data sheet 39605b.pdf, sections 2.1 and 2.6.
It appears that you need either INTRC or INTRC_IO (which the data sheet calls INTIO1 and INTIO2) to use the internal oscillator, in addition to the other settings you need for the watchdog timer, power-up timer, etc.
There's also a reference to a setup_oscillator() function in the device header file (18F1320.h) and constants for everything from 31 kHz up to 8 MHz. I didn't see any other documentation for this, but
Code: | setup_oscillator(OSC_8MHZ | OSC_INTRC);
|
compiles. Sorry I can't test it further, but I don't have a PIC18F1320. |
|
|
|
|
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
|