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

Fuses not documented in header file?

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



Joined: 07 Dec 2016
Posts: 60
Location: Northeast USA

View user's profile Send private message

Fuses not documented in header file?
PostPosted: Tue Dec 13, 2016 12:44 pm     Reply with quote

Why is there little to no documentation or reference as to what the fuses listed in the device-specific header file actually do? For reference I am referring to device PIC18F46J50, and using the latest version 5.065 of CCS.

For example:

Microchip's config bits are named
EC ECPLL HS HSPLL INTOSC INTOSCO INTOSCPLL INTOSCPLLO

the "O" at the end of the fuse means CLKO out on RA6

Whereas CCS's fuses are named
EC ECPLL HS HSPLL INTRC INTRC_IO INTRC_PLL INTRC_PLL_IO

I don't know what the "IO" at the end of the fuse name means. Does it mean "O" as in MC's fuse names? Does it mean IO as in GPIO?

(1) Why the difference in naming here? To me, using "INTRC" in the fuse suggests that the INTRC 31kHz low-power oscillator is used. Is it? Or does "INTRC" mean the Internal Oscillator block in general?

This is confusing to a new user.

(2) What are all the other fuses doing? Where does a new user find the documentation for all this? In MPLAB, the Configuration bits utility as well as the code output generator explicitly state what each fuse or #pragma _CONFIG statement does. Is there an equivalent in CCS?
Ttelmah



Joined: 11 Mar 2010
Posts: 19328

View user's profile Send private message

PostPosted: Tue Dec 13, 2016 1:11 pm     Reply with quote

fuses.txt with the compiler.

Cross reference this with the data sheet.

For the INTRC_IO for example, this is using the internal RC oscillator, with the OSC pins programmed for normal I/O.
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