1 out of 1 members found this post helpful.
Did you find this post helpful?

|
Re: DT Ints not working on 16F18426
Not sure how I missed this the first time around, but you're manually enabling both the IOC and INT interrupts.
Don't do that. Get rid of both these lines:
Code:
INTCON = %11000000 ' Enable GIE, PEIE, falling edge.
PIE0 = %00010001 ' Enable IOCIE, INTE bits.
There is no handler defined for the INT interrupt, which is on the same pin as your IOC (pin RA2).
Once INT gets set there's nothing to clear it, so you never really exit the ISR... it immediately gets reinvoked when the RETFIE executes.
Last edited by tumbleweed; - 4th September 2023 at 13:11.
Bookmarks