Hi All
I am experimenting with a 12F629 and as always don't want to mess things up without knowing exactly why I need to put certain lines of code in.
So here are my questions (however simple it may seem to some)
1.Assuming I am using the internal oscillator and all ports as digital IO what should the settings be ?
2.Do I have the correct statemt in OPTION_REG for weak pullups off and is anything else needed ?
3.What exactly is the TMRO prescale = 256 ? when would it be needed ?
(And yes have the datasheet in front of me - but obviously not sinking in !)
4.I noticed searching through the forums regarding the 12F629 this line DEFINE OSCCAL_1K 1 appears fairly often and what's a little confusing is why it's need if at all ?
I was reading this post which added to the confusion [HTML]http://www.picbasic.co.uk/forum/showthread.php?t=1966&highlight=12F629+settings[/HTML]
and this one [HTML]http://www.picbasic.co.uk/forum/showthread.php?t=543[/HTML] and the datasheet.. and a qucik flip through google too !
Here's what I have so far
Any info and/or help would be appreciatedCode:CMCON=7 'disable analog comparator GPIO=$00000000 TRISIO=$00000000 INTCON=0 'interrupts off 'or INTCON.6=0 ' Disable all unmasked Interrupts and INTCON.7=0 ' Disable 'Global Interrupts OPTION_REG.7= 1 'weak pull-up's disabled osccon=%01100000 '4MHz internal clock define OSC 4 '4MHz
Kind regards
Dennis


 
						
					 
			 
			 
			 
					
					 12f629 config settings
 12f629 config settings
		 
				
				
				
				
			

Bookmarks