PIC18F8722 Oscilator problem

Status
Not open for further replies.

tjalps

Full Member level 5
Joined
May 28, 2001
Messages
240
Helped
6
Reputation
12
Reaction score
3
Trophy points
1,298
Location
SLOVENIA
Activity points
1,994
pic18f8722 config code

Hello!

I have problem that I can't start PIC18F8722 in HSPLL mode with external 10MHz oscilator.

__CONFIG(1H, HSPLL);

OSCTUNE= 0b11001111;
OSCCON = 0b11110100;

Can anyone give me right configuration or any sugestion what should I do.
I'm using ICD2 and when procesor is runing there is no oscilator on the OSC1 and OSC2 to see on osciloscope. After reset there is normal seen oscilation of 10MHz. I supose that there I have some configuration problems and PIC is using internal oscilator.

I have tried all possible combinations without succes.

Please help.
 

pic18f8722

Hello,
Can you try HS first to see what's the result?

Added after 52 seconds:

And tell us how you connected the crystal.
 

pic18f8722 code

Hello!

Results are same. Procesor is actualy runing but I supose with help of internal oscilator. Crystal has built in cap's and is connected to pins 49 and 50 on TQFP 80 pin housing.
I think that I have some wrong configuration in code.

Please any idea is wellcome.

Regads!
 

8722 osctune

Unfortunately, I never used 8722 so far.

Anyway here is my config for 8720. You might want to make a comparison.

#pragma config OSCS = OFF, OSC = HS
#pragma config PWRT = ON, BOR = ON, BORV = 25
#pragma config WDT = OFF, WDTPS = 2
#pragma config MODE = EM
#pragma config WAIT = OFF
#pragma config CCP2MUX = OFF
#pragma config DEBUG = ON, STVR = ON, LVP = OFF
#pragma config CP0 = OFF
#pragma config CP1 = OFF
#pragma config CP2 = OFF
#pragma config CP3 = OFF
#pragma config CP4 = OFF
#pragma config CP5 = OFF
#pragma config CP6 = OFF
#pragma config CP7 = OFF
#pragma config WRTB = OFF
#pragma config WRTC = OFF
#pragma config WRTD = OFF
#pragma config EBTR0 = OFF
#pragma config EBTR1 = OFF
#pragma config EBTR2 = OFF
#pragma config EBTR3 = OFF
#pragma config EBTR4 = OFF
#pragma config EBTR5 = OFF
#pragma config EBTR6 = OFF
#pragma config EBTR7 = OFF
#pragma config EBTRB = OFF
 

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…