wm_loop2
nop
nop
nop
nop
nop
nop
nop
decfsz WAIT2 ; Continue if loop2 > 0.
goto wm_loop2 ;
nop
nop
nop
nop
nop
nop
decfsz WAIT1 ; Continue if loop1 > 0.
goto wm_loop1 ;
; *** Return from subroutine ***
return
;-------------------------------------------------------------------------
; General: Wait procedure. (Fixed 100 microseconds)
; Input : None.
; Output: None.
; W register & variable WAIT1 will be broken.
;-------------------------------------------------------------------------
wait_100us
; *** Wait loop ***
MOV lw 48 ; Set 100 microseconds loop counter.
MOV wf WAIT1 ; (96 microseconds)
wu_loop
nop
nop
decfsz WAIT1 ; Continue if loop > 0.
goto wu_loop ;
; *** Return from subroutine ***
nop
nop
nop
nop
nop
return
; End of COUNTER.ASM
16f84_32.H
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25]
本文关键字:单片机 PIC单片机,单片机-工控设备 - PIC单片机