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

Draw the re-model for the circuit, Draw the re-model for the circuit given ...

Draw the re-model for the circuit given in figure and calculate: a). The input impedance (β=100), b). The output impedance (r0 = 50 kΩ) and c). The mid-band collector-base

Its use in civil engineering, applications of electronics device (bjt,mosfe...

applications of electronics device (bjt,mosfets) in civil engineering

Single phase half wave controlled rectifier , Single Phase Half wave contro...

Single Phase Half wave controlled Rectifier In half  wave  rectification either  the positive or negative half  of the ac wave is  passed while  the other  half is blocked. Be

Gis applications in management of power distribution systems, GIS Applicati...

GIS Applications in Management of Power Distribution Systems: a.)        Inventory of existing network. b.)        Easy access to network details. c.)        Easy access

Resultant force, State and prove parallelogram law of forces and explain i...

State and prove parallelogram law of forces and explain it''s applications

Define time-shifting precedes time-reversing and vice versa, Define Time-Sh...

Define Time-Shifting Precedes Time-Reversing and Vice Versa Signal x[n] is time-shifted by m samples (delay in time) giving x[n - m]. This signal is then reversed at n = 0 givi

State the advanatages of GPS system, Advanatages of GPS system These s...

Advanatages of GPS system These systems have been developed to mimic the knowledge and expertise of an expert in a particular field. For instance: -  prospecting for minera

Effect of supply voltage - stepper motor , Effect of Supply  Voltage ...

Effect of Supply  Voltage a.As the applied  as voltage  is increased hysteresis loss increases. b.Eddy current losses are given by W e α f 2 t 2 B 2 m Where B m =

Mechanical structure of depletion type mosfet, Mechanical Structure of Depl...

Mechanical Structure of Depletion Type MOSFET The mechanical structure of this type of device is displayed in figure. In an IC, we would locate two n-type regions side by side

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