| ??? 05/21/03 22:13 Read: times |
#46295 - variable hw delays |
is it poss to write a "variable" length delay using parameter passing (ie registers) in asm, ive come up with this bit of code but something tells me it could be done better, regs set for 5milisecond delay with 12mhz clock, or maybe this is it?
org 0H mov sp,#5FH mov tmod,#10H mov tcon,#00H mov R0,#0ECH mov R1,#077H delay: mov TH1,R0 mov TL1,R1 setb TR1 loop: jnb TF1,loop clr TR1 clr TF1 jmp delay end thanks |
| Topic | Author | Date |
| variable hw delays | 01/01/70 00:00 | |
| RE: variable hw delays | 01/01/70 00:00 | |
RE: variable hw delays | 01/01/70 00:00 |



