PIC Vietnam

PIC Vietnam (http://www.picvietnam.com/forum/index.php)
-   Đóng góp ý kiến (http://www.picvietnam.com/forum/forumdisplay.php?f=6)
-   -   hỏi về phân tích các lệnh (http://www.picvietnam.com/forum/showthread.php?t=7550)

congdaukhj 15-12-2010 12:39 AM

hỏi về phân tích các lệnh
 
các bác hãy phân tích giùm em đoạn lệnh này và công thức tính thời gian lệnh delay #include "p16f84.inc"

Start ORG 0x00
BSF 03,5
MOVLW 00h
MOVWF 05h
MOVWF 06h
BCF 03,5
run
movlw 0x01
movwf 06h
call Delay

movlw 0x00
movwf 06h
call Delay

movlw 0x02
movwf 06h
call Delay

movlw 0x00
movwf 06h
call Delay

movlw 0x04
movwf 06h
call Delay

movlw 0x00
movwf 06h
call Delay

movlw 0x08
movwf 06h
call Delay

movlw 0x00
movwf 06h
call Delay

movlw 0x1f
movwf 06h
call Delay

movlw 0x00
movwf 06h
call Delay

movlw 0x01
movwf 06h
call Delay

movlw 0x02
movwf 06h
call Delay

movlw 0x00
movwf 06h
call Delay

movlw 0x04
movwf 06h
call Delay

movlw 0x08
movwf 06h
call Delay

movlw 0x1f
movwf 06h
call Delay

movlw 0x00
movwf 06h
call Delay

movlw 0x2f
movwf 06h
call Delay


movlw 0x0b
movwf 06h
call Delay

movlw 0x00
movwf 06h
call Delay

movlw 0x0c
movwf 06h
call Delay

movlw 0x00
movwf 06h
call Delay

movlw 0x0d
movwf 06h
call Delay

movlw 0x00
movwf 06h
call Delay
goto run
Delay MOVLW 03
MOVWF 1Ah
Delay1 DECFSZ 1Bh,1
GOTO Delay1
DECFSZ 1Ch,1
GOTO Delay1
DECFSZ 1Ah,1
GOTO Delay1
RETURN

END


Múi giờ GMT. Hiện tại là 04:15 PM.

Tên diễn đàn: vBulletin Version 3.8.11
Được sáng lập bởi Đoàn Hiệp.
Copyright © PIC Vietnam