Yes, the config bits are set to xt, watchdog off, code protect off, ect. I have tried the other oscillator settings and watchdog on, but no luck. And yes the mclr is pulled high thru a 10k. Heres the 16f84A program:
loop: High PORTB.0 ' Turn on LED connected to PORTB.0
Pause 1500 ' Delay for .5 seconds
Low PORTB.0 ' Turn off LED connected to PORTB.0
Pause 1500 ' Delay for .5 seconds
Goto loop ' Go back to loop and blink LED forever
End
With the 12f675 I set the config bits in the program:
@ Device PIC12F675,WDT_OFF,PWRT_ON,PROTECT_OFF,MCLR_ON,BOD_ OFF 'sets configuration
adcon0=0 ' no ADC doesn't seem necessary but may be a good idea
ansel=0 'no ADC input - IMPORTANT if using ports in digital mode
cmcon=7 'turns off comparator function -IMPORTANT if using ports in digital mode
trisio=0 ' all ports set as outputs - essential to minimize sleep current
vrcon=0 'turns off Vref for min current
DEFINE OSCCAL_1K 1 ' Set OSCCAL for 1K device - calibrates the internal oscillator -not related to SLEEP
@ DEVICE INTRC_OSC_NOCLKOUT
loop: high GPIO.5 ' Turn on LED connected to PORTB.0
Pause 1500 ' Delay for .5 seconds
Low GPIO.5 ' Turn off LED connected to PORTB.0
Pause 1500 ' Delay for .5 seconds
Goto loop ' Go back to loop and blink LED forever
End
It must be something stupid but I have torn up the circuit and rebuilt half a dozen times. Im pretty good at breadboarding. I threw in some extra caps on the vdd to vss but I am using an expensive benchtop supply so it should be clean.
Thanks for you consideration,
Gary


 
		
		 
						
					 
			 
			 
			 
					
					

 yep, did all that.
 yep, did all that.
		 Originally Posted by Gary Goddard
 Originally Posted by Gary Goddard
					


Bookmarks