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

6. On Saturday, you bowl at Mar Vista Bowl, where renting shoes costs $2 and each game bowled is $3.50. On Sunday, you bowl at Pinz where the shoe rental is $5
After reading the first two chapters of The Great Gatsby, do you believe Carraway is a man who follows his father's advice?
Pick a celebrity to write about. Then, write a short conversation IN GERMAN according to the following pattern about your celebrity.
Which detail from the text best supports the answer to part a ? Barack Obama’s Nobel lecture
Can somebody help me with the adjectives thank you
Compare and contrast an isotope and a neutral atom.
Given the following balanced chemical equation: N2(g) + 3H2(g) + 2NH3(8) What is the maximum amount of NH3(g) that can be produced from 2.0 mol H2(g)? Assume th
What is the equation of the blue line?
Consideras que la conducta humana es solamente explicada por su componentebiologico?...CUADRO COMPARATIVO ENTRE EL CEREBRO LIMBICO Y EL CEREBRO REPTILIANO, QUE
What happens to all religious imagery in the Soviet Union? What is it replaced with? I