s20880
s20880 s20880
  • 10-05-2021
  • Computers and Technology
contestada

Write a program to generate a square wave with 80% duty cycle on bit P2.7 Microprocessor.​

Respuesta :

phenom786
phenom786 phenom786
  • 10-05-2021

Answer:

assuming its assembly (otherwise just delete this ans)

Explanation:

MOV TMOD , #01 ;

MOV TLO, #00 ;

MOV THO, #DCH

CPL P1.5

ACALL DELAY

SJMP HERE

;generate delay using Timer 0

DELAY:

SETB TR0

AGAIN:

JNB TF0 ,AGAIN

CLR TR0

CLR TF0

RET

Answer Link

Otras preguntas

At the begining of 6 grade the ratio of number of the advanced math students to the number of regular students was 3:8. However after taking the placement tests
At the begining of 6 grade the ratio of number of the advanced math students to the number of regular students was 3:8. However after taking the placement tests
How do you find the perimeter of a dented square?
if arctan(3/5)=K    Tan(k)=?
Here's a story problem...."Rita's wants to estimate the number of beans in a large jar.  She takes out 100. she takes out 100 beans and marks them. Then she ret
if arctan(3/5)=K    Tan(k)=?
At the begining of 6 grade the ratio of number of the advanced math students to the number of regular students was 3:8. However after taking the placement tests
What was an effect of nationalism in Europe in the early 1900s?
How do you find the perimeter of a dented square?
Here's a story problem...."Rita's wants to estimate the number of beans in a large jar.  She takes out 100. she takes out 100 beans and marks them. Then she ret