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.

How create 1 second time delay in this program?

Status
Not open for further replies.

linok04

Newbie level 3
Joined
Aug 1, 2010
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Delhi
Activity points
1,305
hai,
I am a new in pic.I write the program in c language and attach my hard ware digram.This circut include a sensing transformer for sensing input mains.if mains is present get 12v-0-12v and read the pic adc volt and the output is high(RB7). I think
add 5 second time delay for mains sensing(ie input mains present wait 5seconds then the output is high ) in this program how do this please help me.
 

you wrote that code and you don't know how to delay a second?

or you didn't write the code.
 

millwood said:
you wrote that code and you don't know how to delay a second?

or you didn't write the code.
sir,
I think add 5 second time delay for mains sensing(ie input mains present wait 5seconds then the output is high ) in this program how do this please help me.
 

please help me.

what I never understood is how could you wrote the code, yet unable to write a 5s delay?

that just doesn't make sense, unless you didn't write the code.

or you just don't understand the code you wrote.
 

It seems that you are using HI-TECH compiler, so you can use its delays.
Just import file delays.h into your code and use functions from there.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top