- This topic has 1 reply, 2 voices, and was last updated 9 years, 7 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › CALCULATE 1 SECOND DELAY IN 8051
HELLO,TELL ME HOW TO CALCULATE 1 SECOND DELAY IN 8051 BY USING TIMER 16 BIT MODE HOW TO CALCULATE VALUE FOR THO AND TL0????
with timer in 16 bit mode u can generate max delay of 65 ms aprox.
so u need loop to repeat the process
you set timer to count 50000 to generate delay of 50 ms
then just rotate it for 20 times in for loop so u get 20×50 = 1000 ms = 1 sec