Multitasking


Closed Thread
Results 1 to 2 of 2

Thread: Multitasking

  1. #1
    Tomexx's Avatar
    Tomexx Guest

    Default Multitasking

    Hi,
    How can I achive true multitasking on a 16F628A. Like running a main loop and another piece of code at thesame time.
    An example appreciated.

    Thanks,
    Tom

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    The only thing that truely runs at the same time are the other hardware components of your PIC... ie ADC, Comparators, USART, Timers etc. They all run independantly of your main program code. All other multitasking is performed by time-slicing your code between several tasks to give the appearance of running simultaneously. Naturally the faster the PIC, the better this illusion is carried out.

    Take a room full of IBM 370 Mainframe, it doesn't have parallel processing capability, so it STILL performs just ONE instruction at a time... it just happens to do it damn quick, so a hundred users all end up thinking that the computer is serving their needs simultaneously with everyone elses... it's NOT... break it down and you discover that at any instant in time, it's still serving ONE user at a time.

Similar Threads

  1. Multitasking Ideas
    By HYETİK in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 15th April 2009, 07:50
  2. Multitasking?
    By bearpawz in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th December 2007, 07:50
  3. Need help with Counter/Timer application
    By RussMartin in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 6th September 2006, 05:48
  4. Hserout, multitasking?
    By toalan in forum Off Topic
    Replies: 4
    Last Post: - 25th February 2005, 16:07
  5. Multitasking 12F675 I/O
    By jpeakall in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th November 2003, 00: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