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?

    the first train is fixed 400 pulses, 50% on and 50% off. for the second train i can set another number of pulses, but the totale time must be the same of the first train, same start same end, maybe two pic serially connected?

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,632


    Did you find this post helpful? Yes | No

    Default Re: different software times, impossible?

    so wave 1 is 400 pulses of [ pulse width x] : therefore duration = x * 800
    wave 2 is y pulses of duration/(y*2) ; assuming 50% duty

    y range is ?
    x range is ?
    tolerance is ?
    repeat rate is ?

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: different software times, impossible?

    the only fixed thing is the 400 pulses of the x, with 300us on and 300us off, on the other side y i must have the choice to set different pulses (100 to 600). But whatever pulses have the y the goal must be to reach the end at the same time....
    Last edited by lutherblisset; - 20th January 2016 at 00:28.

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,632


    Did you find this post helpful? Yes | No

    Default Re: different software times, impossible?

    But whatever pulses have the y the goal must be to reach the end at the same time....
    how do you define the end ?

    depending on what you think a reasonable resolution is (and achievable) not all possible pulse counts in the range 100-600 will divide exactly into the duration .

    what is the duration 800 * 300 uS or 799 * 300 uS ?

    how do you intend the sync to be eg leading edge low to high transition to trailing edge high to low transition ?

    can the final y pulse just be truncated to fit ?
    Attached Images Attached Images  

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: different software times, impossible?

    hello richard, first of all thank you. The y pulse can be always approximate to the unit, so it's never truncated. Only the pause change to reach the total time together at the x pulse. the x pulse is fixed 400*600=240000=240milliseconds, so the y pulses.

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: different software times, impossible?

    i will make a test to see if the logical circuit connected to the pic accept "on" states duration other than "off" states, not symmetrical. Cause if the only important thing is the distance between the beginning of every "on" state maybe the software can be easier....

  7. #7
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: different software times, impossible?

    It is, I understand, also possible to run more than one pic from a clock source. You mentioned connecting pics serially, but I do not see this as a solution; however, two (or more) sync'ed to the same clock...

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