how to pause 10us


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57

    Default how to pause 10us

    hello
    i want pause 10us
    can some one help me
    realy need help

  2. #2
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    Pauseus 10 ???
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Caution... The minimum value for PauseUS is 24uS at 4MHz clock. You have to have a clock around 10MHz or greater before you can achieve 10uS.

    You can use a series of @ NOP statements, each of which will delay 1uS at 4MHz.

  4. #4
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    thank for help..

    melanie..
    can i use this for transmit the signal for ultra sonic sensor

    start:
    high portb.0
    low portb.1
    pauseus 10
    low portb.0
    high portb.1
    pauseus 10
    goto start

    end

    NOP?
    i dont know.
    can u tell me
    Last edited by PoTeToJB; - 10th May 2006 at 02:28.

  5. #5
    Macgman2000's Avatar
    Macgman2000 Guest


    Did you find this post helpful? Yes | No

    Default

    I don't mean to sound snippy, but do you have a PICBASIC PRO manual? You can view it on line if not. You have several options, the syntax is easy for your application.

    1). write inline assembly in the middle of PicBasic for the tx routine
    2). use a for loop to toggle through your tx routine X-number of times (number of cycles) using the pauseus running at > 10Mhz clock.
    3). write it all in assembly and run whatever clock frequency you want.

    Best Regards,
    Nick

Similar Threads

  1. Delayed output 10 secs
    By lilimike in forum mel PIC BASIC Pro
    Replies: 37
    Last Post: - 14th October 2011, 06:28
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  3. Replies: 11
    Last Post: - 12th July 2008, 02:36
  4. Fade out LEDs question
    By Sam in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 22nd June 2008, 10:50
  5. Help Quick Need to make code smaller
    By Programmednew in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 25th January 2005, 03:46

Members who have read this thread : 1

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