different software times, impossible?


Closed Thread
Results 1 to 39 of 39

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: different software times, impossible?

    from what you have described so far, it may be easier than it seems to implement this..... maybe.
    1, you have to use timer interrupt at 50micro seconds..... the highest common value for both times
    2, you implement a while/wend loop with block of code for main X....hi/low and total run ... and block of code for Y .... with values you calculated
    3, using counters in blocks to toggle pins and exit while when pulses/count are reached
    4, outside of while blocks to get/calculate new Y's.... do other stuff then startup a new round of pulses
    5, the constraint is all the code inside blocks have to be less than 50micro seconds..... at 20 MHZ should able to do about 100 to 200 instructions in 50micro seconds

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: different software times, impossible?

    thank you amgen, i have to work with the timers for generate the correct number of pulses for two ports with the lowest possible latency.

Similar Threads

  1. WDT times not as expected 18f46k80
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 18th July 2015, 04:22
  2. MCSP, PBP260, Win7 - is it impossible?
    By HenrikOlsson in forum General
    Replies: 18
    Last Post: - 26th January 2010, 17:08
  3. Drive relay between two times
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th December 2009, 09:19
  4. Instruction times
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th June 2009, 09:16
  5. Calling Subroutines Multiple Times
    By Forkosh in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th March 2008, 07:11

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