DT instant interrupts with mister_e keypad


Results 1 to 6 of 6

Threaded View

  1. #5
    Join Date
    Oct 2008
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Works!!!

    Quick question, why are you enabling the interrupts after the ASM-ENDASM not inside?

    Code:
    ASM
    INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
            INT_Handler    RBC_INT,  _Scan,   PBP,  yes
        endm
        INT_CREATE               ; Creates the interrupt processor
    ENDASM
    
    @   INT_ENABLE   RBC_INT     ; enable external (INT) interrupts
    Why not this?
    Code:
    ASM
    INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
            INT_Handler    RBC_INT,  _Scan,   PBP,  yes
        endm
        INT_CREATE               ; Creates the interrupt processor
        INT_ENABLE   RBC_INT     ; enable external (INT) interrupts
    ENDASM

    Also, why the funny indentation inside ASM-ENDASM? Remember, I'm new to interrupts and don't know assmebler
    Thank you Darrel,
    Tom
    Last edited by Tomexx; - 26th November 2008 at 18:55.

Similar Threads

  1. V 2.60 and DT Instant Interrupts?
    By jderson in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 22nd July 2009, 06:48
  2. DT Instant Interrupts help
    By perides in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 26th November 2008, 18:41
  3. 12F683 and DT Instant Interrupts
    By jderson in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 22nd November 2008, 12:47
  4. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 06:32
  5. Replies: 1
    Last Post: - 1st November 2006, 03: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