Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

5 minutes tmer using pic16f877a

Status
Not open for further replies.

donnafe

Junior Member level 3
Joined
Feb 9, 2011
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,440
i'm donnafe. .

please help me regarding my project. .

i will be making an automatic plant waterer. .

i just want to ask if wat will be the source code in making a 5 minutes timer .. but when the timer reaches 1 minute the water will flow w/ in 10 seconds then stops. . then when the timer reaches the 5 minutes again the water will flow w/in 1o seconds. .
 

i dont know C but the concept is still the same with basic..

as you know, 1000ms = 1 sec

so for example:

loop:

delayms 60000
portb.0 = 1
delayms 10000
portb.0 = 0
delayms 230000
portb.0 = 1
delayms 10000
portb.0 = 0

goto loop
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top