[SOLVED] Problem in Timer interrupt in 8051 keil c compiler

Status
Not open for further replies.

vinothksr08

Member level 3
Joined
Jun 18, 2013
Messages
66
Helped
7
Reputation
14
Reaction score
7
Trophy points
8
Location
Tamilnadu, India
Visit site
Activity points
367
hai friends,

the program is not working in keil debug..

Code:
#include<reg51.h>
sbit in=P1^1;
void main()
{
TMOD=0x01;
IE=0x82;
TH0=0x00;
TL0=0x00;
TR0=1;
}
void timer0() interrupt 1
{
in=~in;
}

plz help

thanks in advance
 

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…