Timming


Closed Thread
Results 1 to 3 of 3

Thread: Timming

  1. #1

    Default Timming

    Hi guys,

    i'm trying to calibrate a set of instructions in order to get 1 second total time.

    the code is as follows :

    FOR ADDR=0 TO $706

    adcin gpio.0,va

    temp =(va */ 50 ) >> 2
    temp=temp/10

    pause 800 ' calibration to ge 1 value per second
    debug " Valor Gravado: ", dec temp," Na posição ", dec ADDR, 13,10

    I2CWRITE SDA,SCL,CTW,ADDR,[temp.highbyte]
    pause 10
    ADDR=ADDR+1
    I2CWRITE SDA,SCL,CTW,ADDR,[temp.lowbyte]
    pause 10
    ADDR=ADDR+1
    if but1=1 then 'stop recording
    goto start
    endif
    NEXT

    The "pause 800" is the line where i'm currently fine tuning the timming.

    My method is trial and error ( not to efficient i'm affraid )

    How do you guys do this ? Is there a tool to make this easier ?

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    Hi,

    MPLAB Simulator ( MPSIM ) seems the best tool ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    DT

Similar Threads

  1. MIBAM on 16F628
    By idtat in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2009, 12:42
  2. RX - TX timming
    By ruijc in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th February 2009, 00:06
  3. Newbie with LAB X1 timming problem
    By schlaray in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th November 2006, 00:30

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