Write a control word for counter 1 of 8253 / 8254, Electrical Engineering

Assignment Help:

Write a control word for counter 1 of 8253 / 8254 that selects the 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 that is located at address 01000 h of memory address space. Assume that 8253 / 8254 is attached to the I/O bus of the CPU and the address inputs A0 and A1 are supplied by A2 and A3 respectively.

Ans:

1593_8253 and 8254.png

8253/54 Word Format

Depends on the above specified conditions and assuming counter 0 is utilized. The word becomes 0001 1010h.

Know the port address

- The CS is enabled while A7=1

- The Control Register is selected while A1 and A0 =1

- Assuming unemployed address lines A6 to A2 are at logic 0, 

Then port address will be as given 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 1 of 8253 / 8254

Explain nodes analysis, Nodes analysis Analysis using KCL to solve for ...

Nodes analysis Analysis using KCL to solve for voltages at every common node of the network and as determines the currents by and voltages across every elements of the network.

Classify feedback control systems according to purpose, Q. Classify Feedbac...

Q. Classify Feedback control systems according to purpose of the system? • Position control systems. Here the output position, such as the shaft position on a motor, exactly fo

Dc circuits, Dc Circuits: In this unit, you have learned about methods...

Dc Circuits: In this unit, you have learned about methods of network analysis which are general in nature such as KCL, KVL, Nodal and Mesh analysis. These general methods may

What do you mean by resistance, Q. What do you mean by Resistance? An i...

Q. What do you mean by Resistance? An ideal resistor is a circuit element with the property that the current through it is linearly proportional to the potential difference acr

Explain the properties of low resistivity materials, Explain the properties...

Explain the properties of low resistivity materials. Low resistivity materials: The conducting materials containing resistivity from 10 -8 to 10 -6 ohm-m come under this cl

what does quality factor mean, The Quality factor is also explained, as Q....

The Quality factor is also explained, as Q. So it is a number, which shows the lossness of a circuit. Higher the Q, the lower are the losses. The quality factor is calculated o

Write a brief note on common drain amplifier, Q. Write a brief note on comm...

Q. Write a brief note on common drain amplifier Since voltage at the gate-drain is more easily determined than that of the voltage at gate-source, the voltage source in the inp

Find the force-current analog as well as the force voltage, Q. (a) The c...

Q. (a) The concept of duality can be extended to nonelectric physical systems bymeans of analogs. For example, the mechanical system characteristics can be investigated by means

Why memory decoding is required, Why memory decoding is required? To a...

Why memory decoding is required? To attach a memory device to the microprocessor, this is necessary to decode the address sent by the microprocessor. Decoding creates the memo

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