It looks like you have registered but you have not yet posted and
messages. Our requirements are that you must post at least two
messages, to allow the moderators to review your registration, before
you will be allowed access to the full range of forum areas.

Please make a couple of posts, until then you may see a notice that
says you are banned from certain forum areas.

DT Instant Interrupts - Clarification?

Hi All,

I am preparing to tackle my first project using interrupts and have been looking at Darrel's Instant Interrupts. The link I have is for DT_INST-18 Ver 3.3 but the web page says this is for use with PIC18F's. I intend to use a PIC12F683 or PIC12F1822 for my project. Am I correct in assuming that DT_INST-18 cannot be used on these devices? If so, is there another version which can be used?

Re: DT Instant Interrupts - Clarification?

Hmmm.... it would appear that DT_INST-14 doesn't work with PIC12F683
I downloaded Ver 1.1 of the application and trialed the "Hello World" program from Darrel's website.
I made the necessary change from PORTB.1 to GPIO.1 for the LED1 variable but got a host of errors when compiling:

Re: DT Instant Interrupts - Clarification?

Hi All,

I am pleased to announce that the external interrupt routine is now working properly. Thank you to all who have helped me resolve my problems - much appreciated

To aid in my PCB layout I would like to move my ADC channels to AN1 and AN2. This will mean that I need to alter the type of interrupt from an external interrupt on GP2 to a Change on Interrupt on GP4. To do this I have changed the Interrupt Handler in DT_INST-14 from INT_INT to GPC_INT, Enable GPC_INT and enabled bit 4 of the Interrupt-On-Change GPIO Register (ie IOC.4=1). My interrupt switch is set up with a 10k pull-up resistor from GP4 to +5V and a momentary action switch from GP4 to 0V. The code compiles without error but the change on interrupt function does not work in "the real world".

I would have thought this was a pretty straight forward change but I am obviously missing something important. Would someone please direct me to where I have gone wrong?

Re: DT Instant Interrupts - Clarification?

Unless I am not following your changes right, It seems in your ISR you are still waiting while gpio.2 is high. since that is now an analog input (I think) it might just be zooming right through the ISR making it look as though it was never called.

-Bert

The glass is not half full or half empty, Its twice as big as needed for the job!

Re: DT Instant Interrupts - Clarification?

Yes, it was the GPOI.2 statement in the ISR that was causing the problem.
All fixed now

Code:

This is a Code Space Test

Hey, I even got the code space thing happening - I'm on fire!!!

Thanks for all your help guys - really appreciate it.
I will post details of the final project once it is all up and running - code, circuit diagram, PCB and some pretty pictures of the finished product.

Re: DT Instant Interrupts - Clarification?

although this thread is old , it has been helpful in me understanding some of the setup and use of DT instant interrupts , as well as using IOC setting in the 12F683

I do have a question on using IOC and DT_interupt,bas

If the pin for the interrupt is used both as input as well as output , do i need to change anything in setting on the IOC pin (IOC.4=1 - set interupt on change from high on gp4 ) or within DT interrupt.bas when the GPIO its set to output

do i need to turn off or to stop the interrupt routine being called incorrectly if pin is then set to output

Or is the IOC and DT interrupt routines only applicable when its GPIO is an input

Re: DT Instant Interrupts - Clarification?

It has been awhile since I used "instant interrupts." All my projects are working fine. Last summer I upgraded to PBP 3.0. When I went to load "Instant Interrupts" today the text file says install in the directory where "PBPW.exe" exists; it is not there anymore. I see "PBPX.exe" under C:\PB3 directory; is that the replacement for PBPW.exe ??

I did search of the forum but could not find anything on the subject. Sorry, for asking a dumb question but I am a little rusty these days!