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

Current transformers., CT 10VA, 50A/5A, 6ohz, 2.4KV required nominal primar...

CT 10VA, 50A/5A, 6ohz, 2.4KV required nominal primary voltage?

Explain different routing plan adopted in a network, Q. Explain different R...

Q. Explain different Routing plan adopted in a Telephone network.  Ans: Hierarchical networks are capable of handling heavy traffic where required, and at the same time us

Extrinsic material, Extrinsic Material In addition to thermally ge...

Extrinsic Material In addition to thermally generated carriers, it is possible to create carriers in the semiconductor by purposely introducing impurities into the crystal

Formal lab report, I need someone help me to do electronics formal lab repo...

I need someone help me to do electronics formal lab report, I tried many time to submit it but I couldn''t? plz help me

DC generator, define all the symbols with their units of DC generater

define all the symbols with their units of DC generater

Circuit board packaging, Topics for the projects 1. Power supply design:...

Topics for the projects 1. Power supply design: One source, multiple source. Project process: 1.  Design(circuit analysis, diagram, list of components). 2.   Hardware e

Explain super scalar architecture, Explain super scalar architecture. ...

Explain super scalar architecture. The Pentium microprocessor is organized along with three execution units. Single is executes floating-point instructions, and another two (U

Find the resistance of 1 km of copper cable, Find the resistance of 1 km o...

Find the resistance of 1 km of copper cable having a diameter of 10 mm if the resistivity of copper is 0.017 x 10 -6 Ωm.

Illustrate the working of full wave rectifier, Illustrate the working of fu...

Illustrate the working of full wave rectifier using bridge rectifier. How is it different from centre tapped Rectifier ? Illustrate Avalanche and Zener breakdown. Draw & explain

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