Download presentation
Presentation is loading. Please wait.
1
How to Calculate DelayTime
Pisit Nakjai
2
Loop1 T = 3(4-1)+2 T = 11 delay1 = 4 Delayloop
decfsz delay1,f 1 MC delay1 = 3 Goto DelayLoop 2 MC decfsz delay1,f 1 MC delay1 = 2 decfsz delay1,f 1 MC delay1 = 1 decfsz delay1,f 2 MC delay1 = 0 T = 3(4-1)+2 T = 11
3
Full Loop1 delay1 = 0 Delayloop T = 3(256-1)+2 T = 767 MC
decfsz delay1,f 1 MC delay1 = 255 Goto DelayLoop 2 MC … decfsz delay1,f 1 MC delay1 = 1 decfsz delay1,f 2 MC delay1 = 0
4
Second Loop T = (FullLoop1+3)(delay2-1)+2 T = (767+3)*3 +2 = 2303 MC
Delayloop Full Loop MC decfsz delay2,f 1 MC delay2 = 2 Goto DelayLoop 2 MC decfsz delay2,f 1 MC delay2 = 1 decfsz delay2,f 2 MC delay2 = 0
5
Second Full T = (FullLoop1+3)(256-1)+2 T = (767+3)*255 +2 = 195587 MC
delay2 = 0 Delayloop Full Loop MC decfsz delay2,f 1 MC delay2 = 255 Goto DelayLoop 2 MC decfsz delay2,f 1 MC delay2 = 1 decfsz delay2,f 2 MC delay2 = 0 Tn = 2+ (Tn-1 + 3)(delayvalue-1)
6
MC with Full Mode
7
Example cnt1 = 171 cnt2 = 24 cnt3 = 6 DelayLoop decfsz cnt1,f
Goto DelayLoop decfsz cnt2,f decfsz cnt3,f
8
Example T0 = 2+ (171-1)(3) = 512 T1 = 2+ (24-1)(767+3) = 17712
Total = T0+T1+T2 = =
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.