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

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

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