PAUSEUS command


Closed Thread
Results 1 to 5 of 5

Thread: PAUSEUS command

  1. #1
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104

    Default PAUSEUS command

    My last question for the day ! The PBP manual gives minimum times for different oscillator speeds (eg 24us for4MHz). Is this also the increment (24/48/72 etc us) and if not how do I determine what is the smallest increment I can specify ? Can I go 24 / 25 / 26 ?

    Thanks, Andrew

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hi,

    I'm not sure I understand the question, but here goes...

    Are you asking what the minimum value for PAUSEUS can be for a given crystal?

    If so, this is what I understand:

    If you load PAUSEUS directly, you can go as low as 1us. For instance, "PAUSEUS 1" gives a 1us delay. However, if you are loading PAUSEUS with a variable, the minimum delay you can accomplish (with a 4MHz crystal) is 24us. This is because of the extra processing time required by the PIC to handle the variable.

    Somebody please correct me if I'm wrong.

    Regards,
    ---> picnaut

  3. #3


    Did you find this post helpful? Yes | No

    Red face Whoops!

    Hello again,

    Sorry, I haven't got my facts straight.
    It looks like 24us is the minimum delay for PAUSEUS, whether you're using a variable or not. Please see the attached table for a list of crystal frequencies and their minimum PAUSEUS delay values.

    Cheers!
    Attached Images Attached Images  
    ---> picnaut

  4. #4
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104


    Did you find this post helpful? Yes | No

    Default

    Thanks for answering. I'll try and explain further - if say for a 4MHz oscillator the minimum PAUSEUS is 24us (presumably because of the number of clock cycles taken to execute the command), can I only increment in multiples of that minimum (24 / 48 / 72 / etc) or can I increment in smaller amounts and if so how do I determine that increment other than by trial and error ?

    Thanks, Andrew

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Hi,

    OK, I understand now.
    Sorry about that.

    Yeah, as far as I know you can use PAUSEUS 24, PAUSEUS 25, PAUSEUS 26, etc... with accuracy.

    It's just that you can't go any lower than 24us.



    Cheers!
    ---> picnaut

Similar Threads

  1. PICs can do more if use others than delays instructions
    By hardcore in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th February 2010, 19:52
  2. Sony LanC Program
    By l_gaminde in forum Code Examples
    Replies: 2
    Last Post: - 25th September 2009, 18:51
  3. LANC code 12F675
    By MikeDD in forum General
    Replies: 4
    Last Post: - 9th May 2008, 05:44
  4. reducing shiftout clock freq and PS2/PC interfacing ....
    By wireless magic in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 26th February 2008, 20:15
  5. Can I do this???
    By noobie in forum mel PIC BASIC
    Replies: 2
    Last Post: - 10th June 2006, 18:57

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