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 ext. interrupt in at89s51

Status
Not open for further replies.

saraheem

Newbie level 5
Joined
Dec 21, 2009
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,346
Hi...

I am using AT89S51 uC. My proj requires the use of the external interrupt Int0 (pin 12 in the IC).

My doubt is: After switching on the power supply and resetting the circuit the Int0 pin goes hi automatically (Before reset the pin is low). But when i first implemented this on the bread board, it was in low state only even after the reset and i used to pull it hi manually to prevent it from going into the int service routine.

Will the interrupt work if i just pull it to ground??? Or will it damage the uC??? :?:

I checked with 2 different uCs having the same program... Both of them are reacting in this way...

Pls tell how to use this int...?

Thank u...
 

On power-on all I/O pins are set as inputs and pulled-up by internal (weak) circuit ..
ExtInt0 and ExtInt1 can be set to trigger an interrupt on the falling edge or low level, that mans that you can safely pull them down to the GND level and by doing so start an interrupt service routine – there is nothing dangerous in this action, pretty normal stuff ..

Rgds,
IanP
:D
 

Thank u IanP...

asked because earlier while doing it in breadboard i had to connect the ext int0 to Vcc to avoid it from going into the isr. Now it is having 5V(hi) after the initial reset on power up. Before reset its 0...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top