Joined: 26 Mar 2008 Posts: 5 Location: Woodbridge,UK
Using 16Mhz internal osc on 18f14k50
Posted: Tue Jun 16, 2009 3:05 pm
Hi,
The include file for the 18f14k50 and also the project wizard do not support an internal oscillator of 16Mhz. The PIC does support 16Mhz - will the setup_oscillator accept 0x80 to set 16Mhz?
Andy _________________ PICs do more than washing machines...
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Tue Jun 16, 2009 3:09 pm
Quote:
The include file for the 18f14k50 and also the project wizard do not
support an internal oscillator of 16Mhz
It does in vs. 4.093:
Code:
// Constants used in setup_oscillator() are:
#define OSC_PLL_ON 0x4000
#define OSC_PLL_OFF 0
#define OSC_250KHZ 0x10
#define OSC_500KHZ 0x20
#define OSC_1MHZ 0x30
#define OSC_2MHZ 0x40
#define OSC_4MHZ 0x50
#define OSC_8MHZ 0x60
#define OSC_16MHZ 0x70
#define OSC_32MHZ 0x4060
#define OSC_64MHZ 0x4070
// The following may be OR'ed in with the above using |
#define OSC_TIMER1 1
#define OSC_INTRC 2
#define OSC_NORMAL 0
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum