problem in intruder detecting system project

Status
Not open for further replies.

bagavathi

Member level 3
Joined
Nov 15, 2011
Messages
58
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Tamil Nadu,India
Visit site
Activity points
1,686
sir,
i m doing intruder detecting system project .i m using ir sensor. the sensor output pin is connected to interrupt. i m using gsm modem for send the message. when interrupt occur modem send message. it is worked . but now i have problem .that is firstime only it goes to interrupt routine when interrupt occur. after that interrupt routine is not executed even interrupt occur. i checked the sensor is work corectly . if i give reset interrupt routine is executed only one time .for every interrupt i have to i give reset .
pls help .....
 

Just give up the idea of using an interrupt routine to send the alarm. In most cases, it's sufficient to poll the input status in a loop. If the signal is extraordinary short (e.g. lasting only a few us, which sounds unlikely), you can uitilze an interrupt procedure to set an alarm flag.
 
Maybe you need to re-enable the interrupt from the configuration register.
Or, as FvM said, polling the input pin will do the job especially when no other tasks are done by the controller.
 
Enabling the interrupt.
The IRET from interrupt service routine.
The actual address of the ISR.
These are the issues that may help you resolve the problem.
A Raoof Khan
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…