I'm using the following code to test my oscillator configuration setup, and I'm puzzled. No matter what values I use for fpllidiv, fpllodiv, fpllmul, etc., my PORTB scope waveform never changes its period.
Code runs fine on the device, I just expect to see the output vary with clock freq settings. I must be missing something obvious. Any suggestions?
/* MPLAB v8.92, if that's important */ #pragma FCKSM = CSDCMD #pragma IESO = OFF #pragma UPLLEN = OFF #pragma FNOSC = FRCPLL #pragma FSOSCEN = OFF #pragma POSCMOD = OFF #pragma OSCIOFNC = OFF #pragma JTAGEN = OFF #pragma FPLLIDIV = DIV_2 #pragma FPLLODIV = DIV_256 #pragma FPLLMUL = MUL_20 #pragma FPBDIV = DIV_8
. . . li s1, 0xFFFFFFFF test: sw s1, PORTBINV b test