' Bits 5-0 Frequancy callibaration 00000 = centre Frq ' Bit 6 - PLLEN - 1 PLL enabled, 0 = PLL disabled OSCTUNE = %01000000 ' Bit 7 - INTSRC - internal LF Source Select 1 = 31.25 from 16Mhz Internal /512 HF-INTOSC ) 0 = Internal 31khz OSC ' Bit 0 MFIOSEL - 1 = MF-INTOSC replaces HF-ISTOSC Freq for 500Khz,250Khz,31.25KHz) 0 = MF-INTOSC not used
' Bit 2 n/a, Bit 1 - MFIOFS 1= MFINTOSC stable 0 = Not stable ' Bit 3 = SOASCGO - Osc Start control bit 1 = OSC running, 0 = OSC shut off if no requests for it ' OSCCON2 = $00 ' Bit 7 n/a, Bit 6 - SOSCRUN - Run status bit, Bit 5-4 n/a, ' Bits 1-0 - 00= Dephalt Pri OSc ( OSC1/2 or HF-INTOSC with/without PLL set in FOSC,3:0> config1H ' Bit 2 - HFIOFS =1 ( INTOSC Frq stable bit - 1 = stable, 0 = not stable ' Bit 3 - OSTS = 0 - Osc startup time out is ruinning from internal OSC ( HF, MF or LF-INTOSC) ' Note: INTSRC = OSCTUNE and MFIOSEL = OSCCON2 ' Bit 7 IDLEN =0 ( sleep mode when sleep instraction executed) OSCCON = %01100000 ' Select 32Mhz - using 8Mhz internal with PPLx4 in Config1H = IDLEN =0, 8Mhz, OSTS=0,RFIOFS=1,RC_Run (1x) OSC using PLL