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

Diode transistor logic gate, A circuit realization of a NAND gate will now ...

A circuit realization of a NAND gate will now be developed. By connecting NAND gates together in various ways, one can synthesize other gates and flip-flops. Thus in principle, a s

Solid state, What are the fundamentals of solid states?

What are the fundamentals of solid states?

Derating factor, Conductors with a temperature rating of 75 degrees C are r...

Conductors with a temperature rating of 75 degrees C are run in an area with an ambient temperature of 55 degrees C. What would be the de-rating factor that should be applied?

Explain the asynchronous decade counter, Explain the Asynchronous Decade Co...

Explain the Asynchronous Decade Counter? The binary counters earlier introduced have two to the power n states. But the counters with states less than this number are as well

What is polyphase induction machine performance, Q. What is Polyphase Induc...

Q. What is Polyphase Induction Machine Performance? Some of the important steady-state performance characteristics of a polyphase induction motor include the variation of curre

Theft or pilferage of power by the existing customers, Theft or Pilferage o...

Theft or Pilferage of Power by the Existing Customers Power theft through the existing consumers is the predominant cause of loss of revenue to the electrical utilities. Almos

Calculate the pu voltage and line to line voltage, The one line diagram of ...

The one line diagram of a simple power system is shown below. The data of the system are given in the table below. (a) Draw the impedance diagram of the system and mark all impe

Gis applications, Gis Applications So far, you have learnt how GIS can...

Gis Applications So far, you have learnt how GIS can help utilities to obtain snapshots of the locations of substations, lines and cables in relation to their geographical bea

Transformer cooling, An oil-filled transformer has a c.m.r. of 500 kVA whic...

An oil-filled transformer has a c.m.r. of 500 kVA which allows it to run continuously in an ambient of 35°C with an oil temperature rise of 50°C. The transformer has a time constan

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