| ??? 02/06/03 08:38 Read: times |
#38382 - RE: Check my Delay Responding to: ???'s previous message |
MOV R0,#101
DELAY2:
MOV R1,#101
DELAY1:
MOV R3,#101
DJNZ R3,$
DJNZ R1,DELAY1
DJNZ R0,DELAY2
CPL P1.0
RET
I didn't check if it will produce 1 sec delay. But just checked the program. I would use another approach, to use a timer for a 50 msec interrupt and in the ISR, use a counter to count upto 20 times and then do what ever is desired. |
| Topic | Author | Date |
| 1 Minute Delay | 01/01/70 00:00 | |
| RE: 1 Minute Delay | 01/01/70 00:00 | |
| RE: 1 Minute Delay | 01/01/70 00:00 | |
| RE: 1 Minute Delay | 01/01/70 00:00 | |
| Check my Delay | 01/01/70 00:00 | |
| checking on simulator | 01/01/70 00:00 | |
| Now 1 Minute delay program in assembly | 01/01/70 00:00 | |
| RE: delay of x minutes | 01/01/70 00:00 | |
| I really tried hard but no use | 01/01/70 00:00 | |
| RE: I really tried hard but no use | 01/01/70 00:00 | |
| RE: Check my Delay | 01/01/70 00:00 | |
| RE: 1 Minute Delay | 01/01/70 00:00 | |
| RE: I really tried hard but no use | 01/01/70 00:00 | |
| Ijaz is right | 01/01/70 00:00 | |
| RE: Waqar | 01/01/70 00:00 | |
| RE: Software | 01/01/70 00:00 | |
| difference between counter and timer | 01/01/70 00:00 | |
| RE: difference between counter and timer | 01/01/70 00:00 | |
RE: difference between counter and timer | 01/01/70 00:00 |



