Time mismatch in PAUSEUS


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    New York US
    Posts
    46


    Did you find this post helpful? Yes | No

    Lightbulb

    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

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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.

  3. #3
    Join Date
    Dec 2008
    Location
    New York US
    Posts
    46


    Did you find this post helpful? Yes | No

    Default

    Dear Al,
    So I tested your modified code and get result:
    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.
    Thank you again for driving me in right direction.
    Best Regards

  4. #4
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    You are welcome.

    Al.
    All progress began with an idea

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts