[PIC] CLKOUT function on OSC2 ?

Status
Not open for further replies.

leo123

Newbie level 4
Joined
Jul 2, 2014
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
32
Hello ,
I have PIC18F46K22 and I am using the internal oscillator 16MHz no PLL.
I want to enable the CLKOUT function on OSC2 which is on RA6 pin.
I am using MikroC PRO for PIC From Edit project in oscillator selection I selected : internal oscillator block,CLKOUT function on OSC2 and in my code
I put
Code:
OSCCON = 0b01110000;
with this configuration the microcontroller work fine as expected but the CLKOUT function on OSC2 is not working !!!
can somebody help me please , maybe I did a mistake in the configurations ?

thanks.
 

Hi,

Have you actually set your Config parameters correctly ?

_FOSC_INTIO7_1H ; Internal oscillator block, CLKOUT function on OSC2

;Setup CONFIG11H
CONFIG FOSC = INTIO7, PLLCFG = OFF
 

Hi,

Have you actually set your Config parameters correctly ?

_FOSC_INTIO7_1H ; Internal oscillator block, CLKOUT function on OSC2

;Setup CONFIG11H
CONFIG FOSC = INTIO7, PLLCFG = OFF

yeah I did that
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…