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 CCS Technical Support

Internal RC with IO on PIC16F877A

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



Joined: 26 Aug 2023
Posts: 2

View user's profile Send private message

Internal RC with IO on PIC16F877A
PostPosted: Sat Aug 26, 2023 7:16 am     Reply with quote

Hi
can anyone help me find a way to choose the #FUSE for using internal RC on PIC16F877A with OCS pins as IO?

#fuses INTRC_IO
and
#fuses INTRC

do not work!
temtronic



Joined: 01 Jul 2010
Posts: 9255
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Aug 26, 2023 9:13 am     Reply with quote

Going from memory( 2 DECADES ago...), that PIC does NOT have an internal Oscillator.
probably explains why those 'fuses' don't work for you.

You either use a xtal/2 caps OR an R/C configuration, with clk out being F/4

Again from memory.....
The datasheet. 'special functions of the CPU. chapter ???

Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19569

View user's profile Send private message

PostPosted: Sat Aug 26, 2023 9:29 am     Reply with quote

Exactly right Jay.

The four oscillators are:
RC
HS
XT
LP

The RC one is using an external resistor/capacitor, not an internal oscillator.
The watchdog has it's own internal oscillator, but the CPU doesn't.

There are pin compatible later chips that do have an internal oscillator, but
the earlier chips generally did not offer this.
alagee



Joined: 26 Aug 2023
Posts: 2

View user's profile Send private message

PostPosted: Sat Aug 26, 2023 11:23 pm     Reply with quote

I am really grateful to have your support.

there was a misunderstanding in project definition.

The micro must have been PIC16F887 that I included PIC16F877 wrongfully.

the problem is solved.

Thank you all
Ttelmah



Joined: 11 Mar 2010
Posts: 19569

View user's profile Send private message

PostPosted: Sun Aug 27, 2023 1:35 am     Reply with quote

I think 'oops' officially applies!.... Very Happy

At least you now know 'why' the compiler was refusing to let you select
the internal oscillator.
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