PCDVD數位科技討論區

PCDVD數位科技討論區 (https://www.pcdvd.com.tw/index.php)
-   七嘴八舌異言堂 (https://www.pcdvd.com.tw/forumdisplay.php?f=12)
-   -   關於8051組語delay秒千數計算 (https://www.pcdvd.com.tw/showthread.php?t=649245)

ivy11111 2006-08-30 06:02 PM

關於8051組語delay秒千數計算
 
假如我使用的是12MHZ
這樣一串指令,要花多久的時間??

DELAY:
$5: MOV R7,#200
$6: MOV R6,#249
DJNZ R6,$
DJNZ R7,$6
DJNZ R5,$5
RET


剛學8051組合語言~_~一開始不懂好多..

asccpu 2006-08-30 09:47 PM

自己找指令表來看,上面都有CLOCK數值,計算一下就行了。


所有的時間均為GMT +8。 現在的時間是11:33 AM.

vBulletin Version 3.0.1
powered_by_vbulletin 2025。