|
Tài trợ cho PIC Vietnam |
Đóng góp ý kiến Nơi tiếp nhận những ý kiến đóng góp của thành viên |
|
Ðiều Chỉnh | Xếp Bài |
15-12-2010, 12:39 AM | #1 |
Nhập môn đệ tử
Tham gia ngày: Dec 2010
Bài gửi: 1
: |
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 |
|
|