| ??? 02/26/03 15:29 Read: times |
#40152 - RE: Delay routine for 30 seconds. Responding to: ???'s previous message |
Try This one. It has always worked fine for me.
Hugh ;************************************************************************* ; DELAY LOOP CAUSE THE LCD IS SLOW TO WARM UP ;USING A 11,059,200 hertz CRYSTAL THE TOTAL LOOP TIME IS .0356944 SEC ;************************************************************************* DELAY: MOV R0,#00h ; 2 cycle AGAIN: MOV R1,#00h ; 2 cycle HERE: NOP ; 1 cycle NOP ; 1 cycle DJNZ R1,HERE ; 4 cycle DJNZ R0,AGAIN ; 4 cycle RET ; |



