Using timer0 and serial interrupt in 8051

Status
Not open for further replies.

shaji001

Newbie level 2
Joined
Oct 12, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
Hi, I am implementing an up/down counter with a delay of 1sec(using Timer0) and dsiplaying it on the terminal using serial port at the same time. When i implement only the led display it works but when i add the logic for hyperterminal display it doesnt. But the same terminal display logic is working in a program where no timer interrupt is used. Can anyone please help me on this? Thanks.
 

May be the problem of Interrupt priority....

But can u put your code so we can varify it????
 

Hi, thanx for responding...I'm attaching my codehere. Please suggest any changes if required.
 

on the begin of interrupt subroutine is missing (minimum!):

"push psw"

end before instruction reti:

"pop psw"
 

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…