¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

PIC interrupts


Len Shelton
 

I've been reading through my 123 Microcontroller Experiments by Myke Predko
and have a question about the interrupts he uses in his assembler code for
the 16F684. Like other PICs I am familiar with, the 16F684 seems to use 0x04
as the interrupt vector, but Myke doesn't seem to use it. Instead he just
repeatedly bit checks the INTCON flags. Doesn't the PIC jump to 0x04 anyhow
on an interrupt? What am I missing? Is it that he is clearing the interrupt
flag before the interrupt latency cycles have expired? If so, am I correct
that the newer PICs don't have such interrupt latency?



Here is a sample of the code:



btfss INTCON, T0IF

goto $ - 1

bcf Servo1Pin

movwf TMR0

bcf INTCON, T0IF





Is the PIClist dead? I tried to send a message there two weeks ago (twice
even) and it has not shown up. I may be on moderated status because I have
never posted there before, but I figured the moderator would have authorized
my post by now.





Thanks,

Len

Join [email protected] to automatically receive all group messages.