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

Give a few applications of superconductors, Give a few applications of supe...

Give a few applications of superconductors. Also give three applications of superconductors. Application of superconductors in Electrical and Electronic Engineering (i) The

Dc motor control, how thyristor work in speed control??

how thyristor work in speed control??

Is the quantizer midriser or midtread, Q. The quantum levels of a quantizer...

Q. The quantum levels of a quantizer are separated by the step size δv = 0.2 V, with the lowest and highest levels of-3.3 V and +3.3 V, respectively. A sequence ofmessage sample

What is program counter in 8085, Program counter holds the address of also ...

Program counter holds the address of also the first byte of the next instruction to be fetched for implementation or the address of the next byte of a multi byte instruction, which

Why are waveguides not used at low frequencies, Q. Comment brie?y on the fo...

Q. Comment brie?y on the following: (a) Why are waveguides not used at low frequencies? (b) Why are open-wire lines not generally used as guiding structures at very high freq

Dc motor, Why rhehostat is not used in the field of dc series motor

Why rhehostat is not used in the field of dc series motor

Explain amplitude-shift keying, Q. Explain Amplitude-shift keying? A ca...

Q. Explain Amplitude-shift keying? A carrier's amplitude is keyed between two levels (binary 1 and 0) in binary ASK. Figure shows the functions of a coherent ASK communication

Ideal operational amplifier, list the key parameters to describe the ideal ...

list the key parameters to describe the ideal operational amplifier

Principal of bipolar junction transistor, Principal of Bipolar junction tra...

Principal of Bipolar junction transistor: A bipolar junction transistor (BJT) is a three-terminal electronic device that constructed of doped semiconductor material and might

Determine the equivalent impedance, Q. A 75-kVA, 230/115-V, 60-Hz transform...

Q. A 75-kVA, 230/115-V, 60-Hz transformer was tested with these results: • Open-circuit test: 115 V, 16.3 A, 750 W • Short-circuit test: 9.5 V, 326 A, 1200 W Determine:

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