Hello Matt,

I tried to compile my sample with your modification and it compiled
without errors. But doesn't work with the pic.

I needed to add this line :

--IOCB: INTERRUPT-ON-CHANGE PORTB REGISTER

IOCB = 0b_0011_0000          -- 0b_B7B6B5B4_xxxx    1 enable/0 disable

And now everything works!

I hope this help you to modify the lib.

Regards,

Enzo



On 19 avr, 07:02, mattschinkel <[email protected]> wrote:
> Try using alias like this in your sample:
>
> alias INTCON_RBIE is INTCON_RABIE
> alias INTCON_RBIF is INTCON_RABIF
> include interrupt_on_change
>
> Let me know if it works, I'll see if I can add similar lines in the
> lib.
>
> Only port B will work with this lib at the moment, do you need to use
> port A? I guess you only have 4 interrupt on change pins with port B.
>
> Matt.
>
> On Apr 17, 5:47 pm, seen <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I'm trying the "Interrupt on change" library with a 18f14k50 PIC.
>
> > I have 2 errors when i compile my program:
>
> > [Error] (lib/interrupt_on_change.jal) [Line 1157]  "intcon_rbie" not
> > defined
> > [Error] (lib/interrupt_on_change.jal) [Line 1158]  "intcon_rbif" not
> > defined
>
> > i looked in the datasheet and i found the problem! "rbie" and "rbif"
> > doesn't exist and are replaced with "rabie" and "rabif" because the
> > interrupt on change pin are on portA and portB.
>
> > The IOCA and IOCB are the register to enable or disable Interrupt on
> > change pin.
>
> > How can i help you to modify the library?
>
> > Regards,
>
> > Enzo

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to