Hello,

I need some help writing a program. I have some experience with Vbasic, but I have no experience programming chips other then copying them. Ive been using tlc 555 timers in hobby projects, but I want to use something more powerful and easier to modify. Im using a 12F629. I wrote a simple program, but im sure ive left ALOT out:

Symbol pir = GP5
symbol cam = GP4
Loop:
IF pir = high THEN
high cam
PAUSE 1000
low cam
PAUSE 180000
ENDIF
GOTO Loop

where GP5 is an input and GP4 is an output.

Ive tried reading 20 different help files, but they all pertain to the 16xxxx series chips. And I just Seem to get lost.

could someone please post a sample program along these lines, or could someone please edit my programand repost it?

If I just knew the proper format and how to set the chip up, this wouldn't be a porblem, but I just cant seem to figure it out. What I need is the entire thing. not just the loop section of the code.


Thanks,
Fish