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.

need help Interupt diversion

Status
Not open for further replies.

vanhards

Newbie level 3
Joined
Nov 8, 2004
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
27
I'm currently using at89c2051 MCU.
Does anybody now if I can get an external interupt from other pin instead of the T1 or T0 pins. Especially for the edge triggered interupt.
Basically I need 3 pins for external interupt which point to INT0 sub routine.
Thank you for the help.
 

Salam,

You can turn Timer\Counter into external interrupt.

Set your Timer\Counter in count mode.

Set the counter in 8-bit autoreload mode

The reload value must be 0xff

The next time the counter sees falling edge in the signal, it will increment and overflow and cause interrupt ;-)


Bye
 

    vanhards

    Points: 2
    Helpful Answer Positive Rating
SphinX said:
Salam,

You can turn Timer\Counter into external interrupt.

Set your Timer\Counter in count mode.

Set the counter in 8-bit autoreload mode

The reload value must be 0xff

The next time the counter sees falling edge in the signal, it will increment and overflow and cause interrupt ;-)


Bye

Thank you for your help.
Can you please clarify the following:
Does that means I can have 4 external interrupt pins available on the 89c2051 ?

Thanks
 

Salam,

Yes, But you will no able to use the timers anyway.

Bye
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top