I am using one of the 8051 external capture ports to generate an interrupt. My code enters and returns from the ISR just fine until I add a line to toggle an unused external port pin. For some reason, it just stops working when that line is in, but when I comment it out, it works fine. Anybody ever encounter similar problems, or have any ideas?