PDA

View Full Version : PIC12f629 beginner program



kiwi newbie
- 20th October 2010, 06:42
Hi.

Ive finally found a forum with information in it that's easy (well easier) to follow. thanks

I brought a pickit2 a few months back and have be scrolling through the net ever since looking for info for programming pic's, but to be honest most of its gone over my head.....

Ive just got a few questions that i hope you can help me with.

I brought a pic12f629 and would like to program the outputs so I can turn an LED on for 3-5 seconds then off for a random period of 5, 15, 30 and 60 minutes?

so far Ive been able to flash the LED for 3 seconds then turn it off for 5 minutes, but it just keeps doing this, I cant for the life of me get it to turn on at the random intervals (5,15,30,60mins)

Any help appreciated.
Ill keep trying:-)

mackrackit
- 20th October 2010, 07:18
Welcome to the forum.

What programming language are you using? I ask because it sounds like you just happened to find your way here. Are you using Pic Basic Pro?
http://melabs.com/