Pic32 Not Working with 18.432MHz Crystal

Thread Starter

rmrps

Joined Feb 24, 2012
21
I am using 18.432 MHz Crystal and Pic32MX460F512L Microcontroller with 22pf capacitor, i am having the following configuration settings but the controller not working it's get hanging

#define SYSCLK 147456000L
#define PBCLK (SYSCLK/2)
#define Fsck 50000
#define BRG_VAL ((PBCLK/2/Fsck)-2)

#pragma config FPLLMUL = MUL_16, FPLLIDIV = DIV_2, FPLLODIV = DIV_1, FWDTEN = OFF
#pragma config POSCMOD = HS, FNOSC = PRIPLL, FPBDIV = DIV_8,FSOSCEN = OFF
#pragma config WDTPS = PS1048576

the program get stuck in
SYSTEMConfig(SYSCLK, SYS_CFG_WAIT_STATES | SYS_CFG_PCACHE);

after the above line the controller get hanged

I guess my configuration setting is the issue please guide me to resolve this issue.
 

Deleted member 115935

Joined Dec 31, 1969
0
Oscillators are very susceptible to layout and component choices,

Is the resonator resonating , use a scope.

To double check, use a clock source , see if the circuit works with that, if so its your resonator circuit / layout.

Can you send picture of the part of the board that has the PIC and the resonator on please
 
Top