[PIC] PIC16F676 OSC1 and OSC2 as normal I/O functions.

Status
Not open for further replies.

HAMAYOUN AHMAD BHATTI

Junior Member level 1
Joined
Jul 2, 2013
Messages
19
Helped
1
Reputation
2
Reaction score
0
Trophy points
1
Activity points
142
Hello
I want to now that how to use PIC16F676 OSC1 and OSC2 pins as normal I/O functions?

I am new at PIC. kindly in detail.
 

Please read the datasheet, in section 9.1 you can see the configuration bits, you need to set the the FOSC bits to 100, which means INTOSC with RA4 and RA5 as IO pins... the internal oscillator works around 4MHz...

please refer to your Development IDE and Programming tool to see how to program the Configuration Word onto the PIC...

BTW I suggest you to keep RA3/MCLR as MCLR Only!!! some programming tools can't reprogram the PIC after changing that configuration
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…