Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Read 12f629 cal val?

Status
Not open for further replies.

1Steveo

New Member
Im tring to program my first chip. but going noware.

What im i doing wrong?
Im using Proton Plus

Device 12f629

CONFIG INTRC_OSC,WDT_OFF,MCLRE_OFF,CP_OFF

Symbol PIR = GPIO.3
Symbol RELAY = GPIO.2
Symbol TOCS = OPTION_REG.5
TRISIO = %00001000 ' Make GPIO.3 an input
TOCS = 0 'clock source internal

DELAYMS 60000 'wait 60 seconds
DELAYMS 60000 'wait 60 seconds
DELAYMS 30000 'wait 30 seconds

CHECKIT:
IF PIR = 1 THEN 'check sensor
DELAYMS 1000 'wait 1 second
RELAY = 1 'turn on relay
DELAYMS 1000 'wait a second
RELAY = 0 'turn off relay
ENDIF
DELAYMS 30000 'pause 30 seconds
GOTO CHECKIT 'do it again
END
 

Rescyou

New Member
Fuse

You fuse setting appears to be incorrect:

These are the fuse settings for INTRC on the 12F629:

INTRC_OSC_NOCLKOUT
or
INTRC_OSC_CLKOUT

You can check all the correct fuse settings by going into the INC directory in ProtonPlus and using notepad to view the *.LBP file where *= The PIC you have. You can see them near the bottom of the file.

Also if you are having problems with the settings check at the Proton forum and do a search for 12F675 & 12F629 as there are posts there that will help you get everything set right with respect to enables and fuse settings.

Do you have to use GPIO3 or can you use another pin?

Resc.
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top