8051

8051 itimer interrupt program to display value of ‘Y’ at P0 and ‘n’ at P2. Also generate square wave of 10 KHz at P2^0 with timer0 in interrupt mode.Using [email protected]

I have explained the calculations for the timer in my previous post.please have a look . CODE:

8051

8051 timer Interrupt program to copy data from P0 to P1 ,while simultaneously generating square wave of time period 200 uS at P2^0 .

When it comes to interrupt programming , we have to consider some important registers. For this program the registers used are IE(interrupt enable),TCON(timer control),TMOD(timer mode).     In timer interrupt programming calculating the value to be loaded to the timer is very important. Here XTAL frequency i have considered is 11.0592 MHz.If you are using […]