IOC on 16F1939
+ Reply to Thread
Results 1 to 3 of 3

Thread: IOC on 16F1939

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,872

    Default IOC on 16F1939

    Trying to make use of DT-INTS-14 on a 16F1939 and detect Change on Port B.

    Code:
    '-------------   INTERRUPTS SETUP   ---------------------
    ASM
    INT_LIST  macro;    IntSource,  Label,      Type,  ResetFlag?
        INT_Handler     RBC_INT,    _keybrd,    PBP,    yes
        endm
        INT_CREATE            ; Creates the interrupt processor
    ENDASM
    
    @  INT_ENABLE  RBC_INT      ; Enable Port B on change
    The above code gives an error:
    ... : ERROR: ("INT_ENABLE" - Interrupt Flag ( INTCON,RBIF ) not found.)
    ... : ERROR: ("INT_Handler" - Interrupt Flag ( INTCON,RBIF ) not found.)

    So, that means the DT-INTS14 does not support the IOC of 1939?

    Ioannis

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    1,671

    Default Re: IOC on 16F1939

    If its dt-ints compatible it will be IOC int


    Code:
    '-------------   INTERRUPTS SETUP   ---------------------
    ASM
    INT_LIST  macro;    IntSource,  Label,      Type,  ResetFlag?
        INT_Handler     IOC_INT,    _keybrd,    PBP,    yes
        endm
        INT_CREATE            ; Creates the interrupt processor
    ENDASM
    
    
    @  INT_ENABLE  IOC_INT      ; Enable Port B on change
    This is more entertaining than Free to Air TV

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,872

    Default Re: IOC on 16F1939

    Hmm, yes. IOC that is... Did it again!

    Thanks Richard,

    Ioannis

Similar Threads

  1. IOC on the 27k40
    By longpole001 in forum PBP3
    Replies: 3
    Last Post: - 31st July 2018, 11:28
  2. Replies: 2
    Last Post: - 16th March 2018, 11:24
  3. IOC on a ACD pin ?
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th August 2013, 01:11
  4. IOC question
    By Adrian in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st April 2008, 19:21

Members who have read this thread : 16

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