You can post your problem related to 8051 Microcontroller Projects here. We will try our best to help you out.
2 posts •Page 1 of 1
top:first you make the timer as 16 bit timer ie mode 1
give the the value for 50 ms ie hex of 50000
give 20 to any register
start the timer with gate
when timer overflows,decriment the register and jump back to top when the register value becomes 0,you will get a dalay of 1 sec
pls check the crystal frequency.this is for 12 mhz.
HOW TO USE TIMER INTERRUPT IN 8051 MICROCONTROLLER