8051 initial logic for interrupt

Thread Starter

dhanasingaraja

Joined Nov 25, 2011
12
Hello greats,

I use external interrupt in my project.initially if the interrupt signal is low (from spdt switch sw5) when switching on the controller,controller runs very slowly in proteus simulation and real time also.can anybody tell the reason for that? this is my circuit.
 

jimkeith

Joined Oct 26, 2011
540
you must set the interrupt to be edge-triggered, otherwise it continues to re-execute upon return from interrupt--setb it0 (or it1) in the tcon register
 
Top