Write an assembly language program to generate square wave mode 2 on a port pin
Answers
Answered by
0
Answer:
Explanation:
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
10 ms / 1.085 us = 9216 and 65536 – 9216 = 56320 in decimal, and in hex it is
DCOOH.
TL = 00 and TH = DC (hex)
Similar questions