Kareem101
Newbie level 2
- Joined
- Jun 30, 2015
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 20
The Data sheet says that this chip can do 16 MIPS @32Mhz, although I cant make it work @ 32Mhz
From MPLABX V2.26 and using C30, I generated these Config bits Value as follow :
Now I know that my controller is not working @ 32Mhz as I mesaured the clock on RC15 and found 8Mhz, Hence is working @16Mhz !
So my Question is , what I am missing ?? How to Make it work @ 32Mhz !!
From MPLABX V2.26 and using C30, I generated these Config bits Value as follow :
Code C - [expand] 1 2 3 4 5 6 7 8 9 int CONFIG2 __attribute__((space(prog), address(0x157FC))) = 0xFB3E ; //_CONFIG2( // POSCMOD_HS & // Primary Oscillator Select (HS Oscillator mode selected) // OSCIOFNC_OFF & // Primary Oscillator Output Function (OSC2/CLKO/RC15 functions as CLKO (FOSC/2)) // FCKSM_CSECME & // Clock Switching and Monitor (Clock switching is enabled, Fail-Safe Clock Monitor is enabled) // FNOSC_PRIPLL & // Oscillator Select (Primary Oscillator with PLL module (HSPLL, ECPLL)) // IESO_ON // Internal External Switch Over Mode (IESO mode (Two-Speed Start-up) enabled) //);
Now I know that my controller is not working @ 32Mhz as I mesaured the clock on RC15 and found 8Mhz, Hence is working @16Mhz !
So my Question is , what I am missing ?? How to Make it work @ 32Mhz !!
Last edited by a moderator: