Hi Al,
Thank you very much for your advice. Will test.
It is all about Tips & Tricks, so will learn step by step.
Visual Basic was more friendly.
Best Regards
Hi Al,
Thank you very much for your advice. Will test.
It is all about Tips & Tricks, so will learn step by step.
Visual Basic was more friendly.
Best Regards
Here is an ASM code generator for delays.
http://www.piclist.com/techref/picli...egen/delay.htm
VB... May have been friendly but you were not working at the hardware level either...
Dave
Always wear safety glasses while programming.
Dear Al,
So I tested your modified code and get result:
Thank you again for driving me in right direction.Code:PORTB = % 10000001 '2 clock cycles x .2uSec =.4uSec @ goto $+1 '2 clock cycles x .2uSec =.4uSec Skip next istr @goto $-1 '2 clock cycles x .2uSec =.4uSec Return on prev address @nop '3 clock cycles x.2uSec = .6uSec So total is equal 1.8uSEc what I really get Finally I come with decision to drop @nop So it looks now more affordable: PORTB = % 10000001 '2 clock cycles x .2uSec =.4uSec @ goto $+1 '2 clock cycles x .2uSec =.4uSec Skip next istr @goto $-1 '2 clock cycles x .2uSec =.4uSec Return on prev address Total is 1.2 uSec that is closer to what I espected.
Best Regards
![]()
Bookmarks