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

Rankine cycle and modified rankine cycle, Discuss in detail the several ene...

Discuss in detail the several energy resources and their availability. How does a Rankine cycle differ from a modified Rankine cycle? Write down the mathematical expression of m

Explain phase-shift keying, Q. Explain phase-shift keying? In PSK, the ...

Q. Explain phase-shift keying? In PSK, the phase angle of a carrier is keyed between two values. When the values are separated by π radians, it is known as phase-reversal keyin

Explain the working of frequency division, Explain the Working of Frequency...

Explain the Working of Frequency Division? A frequency divider able to be constructed from J-K flip-flops by taking the output of one cell to the clock input of the next and th

Evaluate a single-stage transistor amplifier, Design and using Pspice, eval...

Design and using Pspice, evaluate a single-stage transistor amplifier amplifier to meet the following specifications: * Power supply - 12V dc. · *Voltage gain - 120 when Vin

Obtain a thevenin equivalent circuit, Q. (a) Obtain a Thevenin equivalen...

Q. (a) Obtain a Thevenin equivalent circuit at terminals A-B in the circuit. (b) What impedance ¯ZL, when connected to A-B, produces maximum power in ¯ZL? (c) Find the val

Explain the phase shifting circuit, Q. Discuss the operation of a transisto...

Q. Discuss the operation of a transistorized phase shift oscillator with the help of a diagram? Explain the phase shifting circuit? An oscillator is a circuit which converts el

Explain classification of amplifiers on biasing conditions, Q. Explain the ...

Q. Explain the classification of amplifiers on the biasing conditions? Based on the amount of transistor bias and amplitude of the input signal, amplifiers can be classified as

Compare mosfet with jfet, Q. Compare MOSFET with  JFET? a. In enhanceme...

Q. Compare MOSFET with  JFET? a. In enhancement and depletion types of MOSFET,the transverse electric field induced across an insulating layer deposited on the semiconductor ma

Determine gold and silver are which type of materials, Gold and silver are ...

Gold and silver are (A) Dielectric materials (B) Low resistivity conducting materials. (C) Magnetic materials. (D) Insulating materials. Ans: Gold and si

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