
 Originally Posted by 
jackberg1
					
				 
				Thank's Mark_s  for the quick reply, 
I did changed  theses lines, but there's one thing is odd, I have to turn MCLRE_ON  to "on" if it's "OFF" nothing is working properly
look at my listing, I did this to test if the Pic is running at 16mhz, 
Cheer, 
#CONFIG
 __config _HS_OSC & _WDT_ON & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOD_ON & _IESO_ON & _FCMEN_ON
#ENDCONFIG
OSCCON = 0
DEFINE OSC 4    ;RUN  4X     16MHZ CRYSTAL
;DEFINE OSC 16  ;RUN  1X     16MHZ CRYSTAL  PAUSE 1000 = 1 SEC
ANSEL = 0                 ; Set all digital  PULLUP Resistor  page:10
CMCON0 = 7                ; Analog comparators off
LED Con 0    
DO                        ; main loop 
TOGGLE LED
PAUSE 1000
LOOP
END
			
		 
	
Bookmarks