Write a control word for counter, Electrical Engineering

Assignment Help:

Q. Write a control word for counter 1 of 8253 / 8254 that selects following options:  load least significant byte only, mode 5 of operation and binary counting. Then write an instruction sequence that will load the control word into 8253 / 8254 which is located at address 01000 h of memory address space.  Suppose that 8253 / 8254 is attached to I/O bus of the CPU and address inputs A0and A1are supplied by A2 and A3.

Ans:

2114_Write a control word for counter.png

Based on above given conditions and presuming counter 0 is used. Control word becomes 0001 1010h.

Identify the port address

- CS is enabled when A7=1

- Control Register is selected when A1 and A0 =1

- Presuming unused address lines A6 to A2 are at logic 0, 

Then port address would be as below

   Control Register = 83H

   Counter 2 = 82H

   MVI A, B0H

   OUT 83H

   MVI A, LOWBYTE

   OUT 82H

   MVI A, HIGHBYTE

   OUT 82H

  LOOP: MVI A, 80H

   OUT 83H

   IN 82H

   MOV D, A

   IN 82H

   ORA D

   JNZ LOOP

   RET


Related Discussions:- Write a control word for counter

Equivalent circuit of unijunction transistor, Equivalent Circuit : Th...

Equivalent Circuit : The equivalent circuit of a UJT is shown in fig. The P - N junction represented in the emitter by a diode. Silicon bar being lightly doped has a high res

Buck converter - power supplies , Buck Converter In buck  converters th...

Buck Converter In buck  converters the output  voltage is  always  less than the  input  voltage. The basic  circuit  of buck converter is shown  in figure. The operation of th

Name 5 different addressing modes, The five addressing modes are given belo...

The five addressing modes are given below: Immediate, Register, Direct, Implied addressing modes           Register indirect,

Evaluate the diode current id, Question: (a) The piecewise linear appro...

Question: (a) The piecewise linear approximation given in Figure is assumed for the diode in the circuit shown in Figure. Evaluate the diode current ID. (b) The piecew

Canonical sum-of-products form, Q. The truth table for F(A,B,C) = mi (2, 3,...

Q. The truth table for F(A,B,C) = mi (2, 3, 4 5) is as follows: (a) Express F in a canonical sum-of-products form. (b) Minimize F in an SOP form, and obtain a possible realiz

Illustrate the principles of operation of centralized, Q. Illustrate the pr...

Q. Illustrate the principles of operation of centralized SPC and distributed SPC and compare their performance. Ans: In centralized control, all control equipment is replac

Economic analysis of hydropower, find the net value of power if an average ...

find the net value of power if an average value of energy is assumed to be $0.05/KWh, the capacity value is $30/kw-yr ...

What is inter digit time, Q. What is inter digit time? Break time is no...

Q. What is inter digit time? Break time is nominally 61 ms and make time is nominally 39ms. Digits are separated by idle period of 300 ms known as inter digit time. It is vital

Diffusion capacitance, Diffusion Capacitance Diffusion capacitance is ...

Diffusion Capacitance Diffusion capacitance is the capacitance because of transport of charge carriers among the two terminals of a device, for instance, the diffusion of carr

Embedded systems design, You have been requested by your Senior Engineer to...

You have been requested by your Senior Engineer to design an Engine Control Unit (ECU) and prepare a report detailing your proposed solution. The client requires a design for a mic

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd