RCtime timeout


Closed Thread
Results 1 to 4 of 4

Thread: RCtime timeout

  1. #1
    Join Date
    May 2006
    Posts
    19

    Default RCtime timeout

    hi,

    I have a project in wich i use the RCtime commando a lot
    every time i use rctime it costs me 0,131 seconds. this is realy slowing my program down. is there a possibility to give it a timeout of about 50 ms?

    Chris

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


    Did you find this post helpful? Yes | No

    Talking The magic Crystal Ball ...

    RCTime can be used in plenty of ways !!!

    What is connected to the µP PIN ??? lil' scheme is welcome ...

    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
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Lightbulb

    If you're using a 20MHz clock RCTIME will "timeout" after 0,131sec(65535*2us). By using ......

    DEFINE PULSIN_MAX 25000

    ....... it will timeout in 50ms(25000*2us). It's all in the manual.

    /Ingvar

  4. #4
    Join Date
    May 2006
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    thats exactly what i needed,

    thanks!

Similar Threads

  1. Serin2 Timeout
    By tazntex in forum Serial
    Replies: 15
    Last Post: - 15th August 2008, 15:40
  2. POT and RCTIME instructions
    By ruijc in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th November 2007, 15:47
  3. can someone help me with RCTIME
    By gandora in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 17th May 2007, 00:30
  4. 16F628A Serin timeout and Timer1
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th March 2006, 23:20
  5. PULSIN and RCTIME
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th November 2004, 14:45

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