Pic16c72a

Thread Starter

rathishag007

Joined Jun 12, 2008
2
Hi,,,,,
I need a subprogram of 1 SECOND delay.......I want to call this routine frequently..Because i am doing my project traffic light.so i want to CALL the delay of 1 second ,20 times for highway road and 5 times for pocket road. please anyone can help me..I need my delay pgm in assembly language.................


Advanced thanXXX
 

Reshma

Joined Mar 11, 2007
54
Hi,,,,,
I need a subprogram of 1 SECOND delay.......I want to call this routine frequently..Because i am doing my project traffic light.so i want to CALL the delay of 1 second ,20 times for highway road and 5 times for pocket road. please anyone can help me..I need my delay pgm in assembly language.................


Advanced thanXXX
You have to first understand the how the timing cycles work and the time period of each machine cycle. Since the PIC instructions are orthogonal each instruction uses 1 Machine cycle. Anyway, here is a fun page which will generate the code for the required delay:
http://www.piclist.com/techref/piclist/codegen/delay.htm
;)
 
Top