Delay program

J

Thread Starter

janeth b

How can I make delay in Assembly Language for at least five minutes to be programmed in PIC16F84A? I have here programs but either running with wrong output or not running.

If you have any idea please email me at balingkit08 at yahoo. com. ph

Thanks.
 
M

Michael Griffin

Have the program run in a loop, figure out how long one loop takes, and count the number of loops. Alternatively, if the PIC has a free hardware timer/counter, run that at a known frequency and count the number of times it overflows. It's not possible to get more specific than this, because any solution has to be integrated with whatever else the micro is doing. Those are the general principles though.
 
Top