View previous topic :: View next topic |
Author |
Message |
alagee
Joined: 26 Aug 2023 Posts: 2
|
Internal RC with IO on PIC16F877A |
Posted: Sat Aug 26, 2023 7:16 am |
|
|
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: 9243 Location: Greensville,Ontario
|
|
Posted: Sat Aug 26, 2023 9:13 am |
|
|
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: 19539
|
|
Posted: Sat Aug 26, 2023 9:29 am |
|
|
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
|
|
Posted: Sat Aug 26, 2023 11:23 pm |
|
|
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: 19539
|
|
Posted: Sun Aug 27, 2023 1:35 am |
|
|
I think 'oops' officially applies!....
At least you now know 'why' the compiler was refusing to let you select
the internal oscillator. |
|
|
|