Multi-Threading


Results 1 to 23 of 23

Thread: Multi-Threading

Threaded View

  1. #11
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Arrow

    skimask, I recommend to you to read the other posts and my replies.

    To me an interrupt means:

    -Stop the current main program.
    -Execute the interrupt routine
    -Go back to where you came from in the main routine.

    Basically interrupts should show a possible way to create the impression of multithreading. But.

    But imagine there is a servo motor. The motor needs a signal every 20ms to keep it's torque. So the interrupt starts the interrupt routine. The interrupt routine should take say 2 seconds. And within these two seconds there is the action of force onto the motor.

    This is what I was alluding to when writing about the pauseus issue. This stands for reserving time within the interrupt routine.

    Or do DT's includes make the pic execute the code (even the main code) by cycling through each interrupt each cycle of code execution? So using a 20Mhz quarz leads to processing a portion of each code every 0.2 us?

    I appreciate that you want to answer my questions to my satisfaction. Then give me a code example showing how to do that with DT's includes.
    Last edited by Ted's; - 11th August 2008 at 03:42.

Similar Threads

  1. Multi Slow speed PWM and Instant Interrupts
    By DaveC3 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd November 2010, 12:50
  2. multi functions button press
    By malwww in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th May 2009, 00:12
  3. 16-48 pin Multi slow PWM
    By krohtech in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th March 2009, 03:28
  4. Multi diomencinal array
    By morphyn in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th February 2009, 21:19
  5. parallel port multi pic programmer?
    By SuB-ZeRo in forum Schematics
    Replies: 8
    Last Post: - 25th June 2005, 10:20

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