PIC Vietnam

Go Back   PIC Vietnam > Ban Điều Hành > Đóng góp ý kiến

Tài trợ cho PIC Vietnam
Trang chủ Đăng Kí Hỏi/Ðáp Thành Viên Lịch Tìm Kiếm Bài Trong Ngày Ðánh Dấu Ðã Ðọc Vi điều khiển

Đó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
Prev Previous Post   Next Post Next
Old 15-12-2010, 12:39 AM   #1
congdaukhj
Nhập môn đệ tử
 
Tham gia ngày: Dec 2010
Bài gửi: 1
:
Question 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
congdaukhj vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn
 

Ðiều Chỉnh
Xếp Bài

Quyền Sử Dụng Ở Diễn Ðàn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Smilies đang Mở
[IMG] đang Mở
HTML đang Tắt

Chuyển đến


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


Được sáng lập bởi Đoàn Hiệp
Powered by vBulletin®
Page copy protected against web site content infringement by Copyscape
Copyright © PIC Vietnam