0
13kviews
Write a program to generate square wave of 500 Hz on P1.0 using Timer 1 of 8051. Oscillator frequency is 12 MHz.
1 Answer
0
1.1kviews

Frequency = 500 Hz

l pulse = 1/500 =2ms

1 ms is the ON time and 1 ms is the off time.

Hence a delay of 1 msec is required

count = 1 msec/1μsec = 1000

count = 65536 - 1000 = (64536) count = FCl8H

TL1 = 18 H …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.