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

Basic definition of electromagnetism, Q. Basic definition of electromagneti...

Q. Basic definition of electromagnetism? A basic understanding of electromagnetism is essential to the study of electrical engineering because it is the key to the operation of

24 - outlet uni-selector, In this case, 24 simultaneous calls can be put th...

In this case, 24 simultaneous calls can be put through switch. Generally a 24-outlet Uni-selector is used as a selector hunter. Every one of the 24 outlets is connected to one two-

Test schedule - meter testing, Test Schedule - Meter Testing The test ...

Test Schedule - Meter Testing The test schedule as per the Central Electricity Authority Regulations on Installation and Operation of Meters is given below. Table: Test S

Matlab coding for powerflow analysis of fast decoupled metho, please give t...

please give the source coding of fast decoupled method

Economic analysis of hydropower, find the net value of power if an average ...

find the net value of power if an average value of energy is assumed to be $0.05/KWh, the capacity value is $30/kw-yr ...

Compute the starting torque with the starting compen sator, A three-phase, ...

A three-phase, 2200-V, 60-Hz, delta-connected, squirrel-cage induction motor, when started at full rated voltage, takes a starting current of 693 A from the line and develops a sta

Zero flag - registers , Zero Flag - Registers If the  result of any  a...

Zero Flag - Registers If the  result of any  arithmetical  or logical  operation in the accumulator  is zero i ,e  all the bits  of accumulator  ( with  some exceptions )  are

Automatic irrigation system on running solar power b, how to upload the pro...

how to upload the program on proteus software by using personal computer

3phase unbalanced load flow, under three phase 4 wire load unbalanced distr...

under three phase 4 wire load unbalanced distribution network how to calacualte the voltage across the load when no load resistance is specified, however the real and reactive powe

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