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

Find internal resistance across terminals, Q. In the Wheatstone bridge circ...

Q. In the Wheatstone bridge circuit shown in Figure, R 1 = 16, R 2 = 8, and R 3 = 40; R 4 is the unknown resistance. RM is the galvanometer resistance of 6 . If no current

Explain how materials can be classified in three groups, Explain how materi...

Explain how materials can be classified into three groups on the basis of atomic structure. An atom has a positively charged nucleus surrounded through a group of negatively ch

Shunt capacitors, Shunt Capacitors Line losses owing to poor PF can be...

Shunt Capacitors Line losses owing to poor PF can be decreased through improving the PF. Overall improvement in the operating condition can be brought about through reducing t

Logic Gates, XOR gate BY using NAND gate Only

XOR gate BY using NAND gate Only

What is faithful amplification, What is faithful amplification. What are ba...

What is faithful amplification. What are basic condition for faithful amplification. Describe : (a) Peak Inverse voltage. (b) Maximum forward current. (c) Knee voltage

Find the line current after the addition of capacitor bank, Q. Find the lin...

Q. Find the line current after the addition of capacitor bank? A 60-Hz, three-phase motor draws 25 kVA at 0.707 lagging power factor from a 220-V source. It is desired to impro

Find the current in resistance, Q. Obtain the Thévenin and Norton equivalen...

Q. Obtain the Thévenin and Norton equivalent circuits for the portion of the circuit to the left of terminals a-b in Figure, and find the current in the 200- resistance.

What is meant by biasing transistor, Q. What is meant by biasing transistor...

Q. What is meant by biasing transistor? The purpose of dc biasing of transistor is to obtain a certain dc collector current at a certain dc collector voltage. These values of c

Digital control system, block diagram of digital control system and explain...

block diagram of digital control system and explain each block

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