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

#need digital related, Is there any electronics related papers like digital...

Is there any electronics related papers like digital for free download

Ac, power factor improvement

power factor improvement

Block diagram and the truth table of a demultiplexer, Q. Given the block di...

Q. Given the block diagram and the truth table of a demultiplexer, as shown in Figure, obtain its implementation.

Differences between enhancement and depletion mosfet, Q. What Are the Diffe...

Q. What Are the Differences Between Enhancement And Depletion Mosfet? Depletion MOSFET:Here a slab of p_type material is formed from a silicon base and referred to as substrate

Rotating magnetic fields, When a machine has more than two poles, only a si...

When a machine has more than two poles, only a single pair of poles needs to be considered because the electric, magnetic, and mechanical conditions associated with every other pol

What are encoder and the decoder, There are zillions of things in electroni...

There are zillions of things in electronics known as encoders. You can look up LCDs and NAND gates as well and this is actual basics.

Find the equivalent components of the network, Q. At the two terminals (A, ...

Q. At the two terminals (A, B) of a one-port network, the voltage and the current are given to be v(t) =200 √2 cos (377t + 60°) V and i(t) = 10√2 cos(377t + 30°) A. (a) Determin

Matlab, Exercise 1: Data array manipulation and selection using for loops ...

Exercise 1: Data array manipulation and selection using for loops These exercises demonstrate the use of for loops in array manipulation and selection. a) Write a user-defined fun

Determine the current for given capacitance values, Q. Consider the circuit...

Q. Consider the circuit of Figure. Determine and sketch i L (t) and v C (t) for capacitance values of (a) 1/6 F, (b) 1/8 F, and (c) 1 / 26 F. Note that the capacitance values ar

Working of a linear variable differential transformer, Illustrate the const...

Illustrate the construction and principle of working of a linear variable differential transformer. Describe how the magnitude and direction of displacement of core of LVDT is dete

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