generate a train of pulses


Results 1 to 4 of 4

Threaded View

  1. #2
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Try the PauseUs command ?

    From the manual
    Pause the program for Period microseconds. Period is 16-bits, so
    delays can be up to 65,535 microseconds. Unlike the other delay
    functions (NAP and SLEEP), PAUSEUS doesn't put the microcontroller into
    low power mode. Thus, PAUSEUS consumes more power but is also
    much more accurate.
    Because PAUSEUS takes a minimum number of cycles to operate,
    depending on the frequency of the oscillator, delays of less than a
    minimum number of microseconds are not possible using PAUSEUS. To
    obtain shorter delays, use an assembly language routine.
    OSC Minimum delay
    3 (3.58) 20us
    4 24us
    8 12us
    10 8us
    12 7us
    16 5us
    20,24 3us
    25-33* 2us
    40** 2us
    * PIC17Cxxx and PIC18Xxxx only.
    ** PIC18Xxxx only.
    PAUSEUS assumes an oscillator frequency of 4MHz. If an oscillator other
    that 4MHz is used, PBP must be told using a DEFINE OSC command.
    See the section on speed for more information.
    Last edited by malc-c; - 6th January 2011 at 19:22.

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