skbohra
Newbie level 6
- Joined
- Oct 28, 2012
- Messages
- 14
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,366
32 Mhz clock pulse output from pic24f16ka102
I am simply trying to get clock pulse output at CLKO(RA3) from pic24f16ka102 and according to the datasheet, following code should work, but I am not getting any pulse near 32Mhz, I am only getting random pulse with max frequency of some hundred Khz
I am simply trying to get clock pulse output at CLKO(RA3) from pic24f16ka102 and according to the datasheet, following code should work, but I am not getting any pulse near 32Mhz, I am only getting random pulse with max frequency of some hundred Khz
Code:
#include "p24Fxxxx.h"
_FWDT (FWDTEN_OFF);
_FOSCSEL(FNOSC_FRCPLL);
_FOSC(FCKSM_CSECMD & POSCFREQ_MS & OSCIOFNC_ON & POSCMOD_NONE)
int main(void)
{
// Use Internal 8 MHz Clock
OSCCON = 0x0000;
CLKDIV = 0x0000;
return 0;
}
Last edited: