SanjayPhirke
New Member
In my 89S52 design, I want to make the LCD back-light on for specified period as soon as any key is pressed. After that duration the back-light goes off provided no switch is pressed again during that period.
I get a low signal for any switch pressed. So I can use an external interrupt along with a timer. But for this simple work two interrupt resources will be occupied.
Can somebody suggest me a simpler method. Is it possible by using timer2 alone(T2EX pin)? In Capture mode, interrupt is generated on high-to-low transition at T2EX. At the same time it can also be used as regular timer...
I get a low signal for any switch pressed. So I can use an external interrupt along with a timer. But for this simple work two interrupt resources will be occupied.
Can somebody suggest me a simpler method. Is it possible by using timer2 alone(T2EX pin)? In Capture mode, interrupt is generated on high-to-low transition at T2EX. At the same time it can also be used as regular timer...