1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
steposvetlana [31]
3 years ago
7

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

Computers and Technology
1 answer:
zhenek [66]3 years ago
7 0

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

You might be interested in
Which of the following statements is false?
Sergio039 [100]

Answer:

Option (d)

Explanation:

Option (a) the return type of the method specifies the type of the data that is returned for the method calling. The return type can be void if it doesn't return any value. The method return can be int, string and bool etc. So, option (a) is true and it not the correct option.

Option (b) is true it doesn't need any parameters. So, option (b) is not the correct option.

Option (c) is true. If the method has some return type other than void it must return something according to the return type.So, option (c) is not the correct option.

Option (d) is false. Getters and setters methods are used for accessing private variables but the name MUST start with get or set is false. The best practice is to start with get and set but it is NOT a must.

So, option (d) is correct option.

6 0
3 years ago
Create a do-while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The loop shou
Gala2k [10]

Answer:

import java.util.Scanner;

public class TestClock {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       int sum = 0;

       char op;

       do{

           System.out.println("Enter two numbers");

           int num1= in.nextInt();

           int num2 = in.nextInt();

           sum = sum+num1+num2;

           System.out.println("Do you wish to perform another operation, Y/N");

           op =in.next().charAt(0);

       }while(op =='Y'||op=='y');

       System.out.println("sum "+sum);

   }

}

Explanation:

The code is implemented in Java progrmming language

  1. create an integer variable sum
  2. create a character variable op
  3. create a do while loop to request user to enter num1 and num2
  4. Request the user to also enter a char Y/N (yes or no repectively)
  5. While the char is Y keep adding up the sum and prompt the user to enter two new numbers
  6. Else break out of the loop and print the sum
6 0
3 years ago
If 209g of ethanol are used up in a combustion process, calculator the volume of oxygen used for the combustion at stp​
SOVA2 [1]

Answer:

a) The volume of oxygen used for combustion at STP is approximately 305 dm³

b) The volume of gas released during combustion at STP is approximately 508 dm³

Explanation:

The given chemical reaction equation for the burning of ethanol in air, is presented as follows;

2CH₃CH₂OH (l) + 6O₂ (g) → 4CO₂ (g) + 6H₂O

The mass of ethanol used up in the combustion process, m = 209 g

The molar mass of ethanol, MM = 46.06844 g/mol∴

The number of moles of ethanol in the reaction, n = m/MM

∴ n = 209 g/(46.06844 g/mol) ≈ 4.537 moles

a) Given that 2 moles of ethanol, CH₃CH₂OH reacts with 6 moles of oxygen gas molecules, O₂, 4.54 moles of ethanol will react with (6/2) × 4.537 = 13.611  moles of oxygen

The volume occupied by one mole os gas at STP = 22.4 dm³

The volume occupied by the 13.611 moles of oxygen gas at STP, 'V', is given as follows;

V = 13.611 mol × 22.4 dm³/mole = 304.8864 dm³ ≈ 305 dm³

The volume occupied by the 13.611 moles of oxygen gas at STP, V = The volume of oxygen used for the combustion ≈ 305 dm³

b) The total number of moles of gases released in the reaction, is given as follows;

The total number of moles = (4.537/2) × (4 + 6) = 22.685 moles of gas

The total volume of gas released, V_T = The volume of gas released during the combustion at STP = 22.685 moles × 22.4 dm³/mole = 508.144 dm³ ≈ 508 dm³

7 0
3 years ago
Now now now now mowewweedeeee
gavmur [86]

Answer:

15

Inside the type declaration, you specify the maximum length the entry can be. For branch, it would be 15.

I can't seem to type the full "vc(15)" phrase because brainly won't let me.

4 0
3 years ago
Who does Potholes effect in South Africa?
Morgarella [4.7K]
By definition, a pothole is a structure mostly located at the surface of roads and highways wherein it is usually characterised by having deep crevices which are primarily caused by extreme soil erosion or the presence of water in the area. In addition, these potholes greatly affect the transportation system of South Africa because the flow of traffic will be interrupted.
4 0
3 years ago
Other questions:
  • .When an argument is passed ______________, the called method can access and modify the caller’s original data directly.
    8·1 answer
  • Because log-on procedures may be cumbersome and tedious, users often store log-on sequences in their personal computers and invo
    6·1 answer
  • An administrator has noticed that GPO containing new update settings has not yet applied to one of the computers on the network.
    5·1 answer
  • Whats your favorite sport between these options?
    12·2 answers
  • What is a good way to minimize technical problems with your computer
    10·1 answer
  • when two pieces of cui or other unclassified information are posted online together or attached together in an email and result
    5·1 answer
  • 9
    10·1 answer
  • By
    7·1 answer
  • A collection of computers, printers, routers, switches, and other devices
    15·1 answer
  • Assume that x and y are boolean variables and have been properly initialized. !(x || y) || (x || y) The result of evaluating the
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!