siongboon
Advanced Member level 1
Hi,
I have a problem changing the clock cycle for pic24fj64004.
I have tried the following code to play around with CLKDIV register,
CLKDIVbits.RCDIV=0x0000;
CLKDIVbits.RCDIV=0x0500;
and also
CLKDIVbits.RCDIV2=1;
CLKDIVbits.RCDIV1=0;
CLKDIVbits.RCDIV0=0;
I see that most example begins the code at the beginning of main().
Try either way but the clock cycle just doesn't change at all.
I have wrote the instruction to generate an output pulse,
checking on the pulse width to determine the clock cycle.
The clock cycle is struck at the default clock cycle as indicated on the datasheet.
I cannot manage to change the clock cycle through CLKDIV register.
Is there any other configuration that I may have missed out?
Thank you very much for your any advise.
Best Regards,
Siong Boon
I have a problem changing the clock cycle for pic24fj64004.
I have tried the following code to play around with CLKDIV register,
CLKDIVbits.RCDIV=0x0000;
CLKDIVbits.RCDIV=0x0500;
and also
CLKDIVbits.RCDIV2=1;
CLKDIVbits.RCDIV1=0;
CLKDIVbits.RCDIV0=0;
I see that most example begins the code at the beginning of main().
Try either way but the clock cycle just doesn't change at all.
I have wrote the instruction to generate an output pulse,
checking on the pulse width to determine the clock cycle.
The clock cycle is struck at the default clock cycle as indicated on the datasheet.
I cannot manage to change the clock cycle through CLKDIV register.
Is there any other configuration that I may have missed out?
Thank you very much for your any advise.
Best Regards,
Siong Boon