Presentation is loading. Please wait.

# How to Calculate DelayTime

## Presentation on theme: "How to Calculate DelayTime"— Presentation transcript:

How to Calculate DelayTime
Pisit Nakjai

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

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

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

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)

MC with Full Mode

Example cnt1 = 171 cnt2 = 24 cnt3 = 6 DelayLoop decfsz cnt1,f
Goto DelayLoop decfsz cnt2,f decfsz cnt3,f

Example T0 = 2+ (171-1)(3) = 512 T1 = 2+ (24-1)(767+3) = 17712
Total = T0+T1+T2 = =

Download ppt "How to Calculate DelayTime"

Similar presentations

Ads by Google