Hardware Interrupts and PBP


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Posts
    44

    Question Hardware Interrupts and PBP

    Hi. Im 15, and I live in Argentina. Okay, lets start coding.
    I was wondering if I could use the hardware interrups in a 16F877A to ckeck the status of the USART receiver, and the status of some buttons (on portB change). I looked in the manual, and there seems to be two commands:
    ON INTERRUPT and ON_INTERRUPT. The one that does it on software is really wasteful of memory, and makes the whole code run much slower, so how can I configure the other interrupts??? I would really appreciate it if you could give me some code examples. Thanks in advance, Manuel.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default

    Hi,
    The easiest way by far is to use Darrel's Instant Interrupt routine. It alows you to code your interrupt service routine in basic without the obvious drawbacks of ON INTERRUPT. It does have an effect on performace compared to true assembler interrupts but it is SO much easier to use. Look at:

    http://www.picbasic.co.uk/forum/show...ant+interrupts

    /Henrik Olsson.

Similar Threads

  1. Replies: 2
    Last Post: - 8th February 2009, 05:10
  2. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48
  3. help: TMR0 interrupts disabling PORTAchange interrupts???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th August 2008, 15:10
  4. Replies: 1
    Last Post: - 1st November 2006, 03:11
  5. PBP Interrupts for beginners
    By Tomexx in forum General
    Replies: 1
    Last Post: - 15th November 2004, 03:01

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