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

During the early part of the 1800’s, American Presidents had tried to buy Texas. true or false
Write 6,392,094,003 in word form
1/4 (3x - 16) + 1/4x = 5 and 1/3 PLZ!
What is the answer to 7-4+3×0+1
Which of the following is true of an electrolytic cell?  a. An electric current causes an otherwise non-spontaneous chemical reaction to occur.  b. Reduction o
Write a real world problem where you would have to multiply 120 and 75.
What is the oppitise of contract
360 customers in 30 days unit rate?
What provides the force necessary to start a building or bridge oscillating?
Write 2.275 as a mixed number