Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

using 2 external interrupts in at89s52 controller

Status
Not open for further replies.

kiran bhat

Newbie level 5
Newbie level 5
Joined
Mar 8, 2012
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,346
hi
i am trying too use two external interrupts of 8051 so i wrote a code for that but only interrupt 0 is executing but interrupt 2 is not.
i am just enabling timer 0 interrupt ex_intr1 and ex_intr2.

project details is as follows
1) Start the timer and ex_intr1 with ex_intr high priority.
2)till the timer overflows increment the variable in ex_intr1 isr and then display it on a lcd
3)If the count value is less then 64 or greater then 85, wait for some time say approximately 5s.
4)if within 5s ex_intr2 is generated then stop waiting and go to step 1
5)if there is no interrupt within 5s then display some text and go to step1.

this what i want to do. i have written the code everything is working except the ex_intr2.

i am attaching the code. please help thank you in advance.
 

Attachments

  • hb ex2 test.rar
    38.4 KB · Views: 91

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top