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.
Sourav Gupta
PermalinkWhy you need such crystal as primary. Use it in secondary. It is not supported by the mcu and any PLL or Divider will support it.
- Log in or register to post comments
Joined February 12, 2018 696Monday at 02:11 PM