Multiple operations at once?


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RodSTAR View Post
    I (and many/{all} of us) had exactly that question.
    Happily, interrupts were made for that, reacting at specific realtime events, such as: -A/D activity, USART I/O, QEI, Timers, Capture, Keyboard, switch, and so on.-

    There are 2 ways to handle interrupts:
    1.- The standard way is using 'ON INTERRUPT' statement & stuff. (see manual/forum)
    2.- The recommended way is using Darrel Taylor's 'Instant Interrupts', once you understand it, you'll enjoy it's benefits. (documentation in a thread in the forum).

    My personal choice is labeling tasks to optimize troubleshooting (if happen), code and memory. (why labeling? because PBP doesn't allow functions or sub/procedures structure)

    Rodrigo.
    I forgot to specify... Interrupts don't need to be handled within a loop, they just 'pop-up' in realtime things happen.
    "Beethoven had his critics too, see if you can name 3 of them"

  2. #2
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    89


    Did you find this post helpful? Yes | No

    Default

    For Multiple work, you can make Multiple interrupt (pin) on port c or d or b then ON INTERRUPT, you can do as you wish.

    .

Similar Threads

  1. Multiple PICS from Same Crystal?
    By WOZZY-2010 in forum General
    Replies: 2
    Last Post: - 6th February 2010, 15:18
  2. Multiple RETURNS within a single subroutine
    By BrianT in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st June 2009, 16:43
  3. Problems controlling multiple pics
    By gandora in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 29th May 2007, 08:59
  4. Multiple PIC's with 1 crystal
    By puma in forum Schematics
    Replies: 11
    Last Post: - 20th March 2007, 17:02
  5. Multiple SERIN's
    By JoeR in forum mel PIC BASIC
    Replies: 4
    Last Post: - 6th October 2005, 22:22

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