Has anyone made additions to DT_INTS-14?
I'm using the PIC16F1788 for a project and due to the fact that interrupt-on-change doesn't conform to the parameters in Darrel's wondercode, I need to add some new interrupts and constants to its list.
Has anyone successfully done this (added interrupts for other chips)? I've added what I think is needed, but am getting errors at compile time.
Thanks,
Picster
Re: Has anyone made additions to DT_INTS-14?
Re: Has anyone made additions to DT_INTS-14?
From the link to DT_INTS-14 in post 1 of that thread:
Quote:
NEW! Updated version 1.10, now works with 16F1xxx Enhanced Core PIC's.
Quote:
New in Version 1.00
GPC_INT -- GPIO Int On Change
IOC_INT -- Int On Change
RAC_INT -- RA Port Change
RABC_INT -- RAB Port Change
T1GATE_INT -- Timer1 Gate
TMR4_INT -- TMR4 - PR4 Match
TMR6_INT -- TMR6 - PR6 Match
SSP1_INT -- (M)SSP module 1
BUS1_INT -- Bus Collision 1
SSP2_INT -- (M)SSP module 2
BUS2_INT -- Bus Collision 2
CCP3_INT -- CCP3
CCP4_INT -- CCP4
CCP5_INT -- CCP5
CMP1_INT -- Comparator 1
CMP2_INT -- Comparator 2
OSCF_INT -- Oscillator Fail
LVD_INT -- Low-Voltage Detect
LCD_INT -- LCD controller
CRYPT_INT -- KeeLoq Cryptographic
USB_INT -- USB 16C745/765 only
ALL_INT -- Global Interrupts
Re: Has anyone made additions to DT_INTS-14?
Thanks Robert,
I had seen that (but bookmarked it again just in case). What a wealth of information there - great to have all in one place, I'm sure I'm one of many who appreciate your effort toward that.
When I look at the chip specs for IOC_INT for the 16F1788, it's a bit different with positive and negative edge registers. So I should just set those in my program prior to the include and rely on the standard IOC_INT routine in Darrel's code "as is" to manage and reset the flags, correct?
Thanks again...
picster
Re: Has anyone made additions to DT_INTS-14?
I honestly couldn't tell you, never played with those 16F1xxx PICs. But that's why I quoted Darrel saying his routine was modified to support those PICs.
Best I can say is give it a try, monitor your PIC, use LEDs to tell you how it reacts on the interrupt.
Robert
Re: Has anyone made additions to DT_INTS-14?
Yup, worked!! I had to configure the edge trigger bit and then I reset the port's IOC bit flag for "safety" sake in the interrupt routine...
Thanks again