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 support@ccsinfo.com

Fuse Config for PIC18F1320

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



Joined: 13 Sep 2003
Posts: 87

View user's profile Send private message

Fuse Config for PIC18F1320
PostPosted: Sat Feb 07, 2004 8:12 am     Reply with quote

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
PostPosted: Sun Feb 08, 2004 11:21 am     Reply with quote

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.
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