0
46kviews
Write an assembly language to generate square wave of 2 KHz at pin P1. 1 using 8051. Assume 8051 operating frequency 12 MHz.
1 Answer
written 6.1 years ago by |
(Take the values as given in question and substitute).
Look at the following steps.
T — 1 / 50 Hz = 20 ms, the period of the square wave.
1/2 of it for the high and low portions of the pulse = 10 ms
DCOOH.
TL = 00 and TH = DC (hex)