
MenuHi Richard,
thank you so much for your quick reply.
And once again you are 100% correct.
How could i be so blind?
Thanks. It now compiles correctly.
INT_Handler USART_RX_INT, _RxISR, PBP, yes
dt ints does not have an interrupt called USART_RX_INT perhaps you mean RX_INT
Hi guys,
i'm a bit lost with a very small and simple program which does not compile when using DT interrupt library on the 18F2580.
I was hopping someone more inteligent could help figure out...
The output is pretty clean in my experience. I use my photodiode in photoconductive mode (reverse bias), which makes it faster and supposedly noisier but I haven't noticed any noise except in some...
achilles03 - 13th January 2026, 04:23
There are less complicated ways i think
'PIC-12F683#CONFIG
__config _FOSC_EC & _WDT_OFF & _CP_OFF & _MCLRE_OFF & _PWRTE_ON & _CPD_OFF &_FCMEN_OFF &_IESO_OFF
#ENDCONFIG
DEFINE OSC 8
Yep, that did it! The output is now as smooth as the 16F883's output. The 16F883 used the INT_INT interrupt from the start. The GPC_INT requires the particulars you noted, and additionally it...
achilles03 - 13th January 2026, 03:30
Hi Dave,
How clean is the output from your photodiode?
I have been working on a similar setup recently using an encoder wheel and photointerrupter.
I had greater success feeding the MCU's input...
i would
you are not using IOC correctly since the gpio is never read in the isr to clear the change condition
4.2.3 INTERRUPT-ON-CHANGE
Each of the GPIO pins is individually...
I had thought - should I be using "INT_INT" instead of "GPC_INT"? It is set up using GPIO.2 as the interrupt pin, which is the dedicated INT pin per the datasheet. Can you set up an interrupt on...
achilles03 - 12th January 2026, 23:29

Pull down button on Port B
Using weak pullups on port B of 16f1936. A button to ground will cause an interrupt on IOCBN.
MOUNTAIN747 Today, 20:28Question: should I use a low value resistor in line with this pull down button?
Wayne