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

What is the function performed by sim instruction in 8085, What is  the fu...

What is  the function performed by SIM instruction in 8085? SIM -Set Interrupt Mask. This instruction masks the interrupts as desired .it also sends out serial data by the seri

Define short lines, Define Short Lines? For short power lines (up to 50...

Define Short Lines? For short power lines (up to 50 miles; 80 km),  the effects of the shunt capacitance and leakage resistance are negligible. Hence the line may be represente

Give a general account of common drain amplifier, Q. Give a general account...

Q. Give a general account of common drain amplifier? The output is taken over the source terminal and when the dc supply is replaced by its short circuit equivalent, the drain

Importance of transistor, Importance: The transistor is the main activ...

Importance: The transistor is the main active component in practically all current electronics, and is considered through many to be one of the greatest inventions of the 20 t

Key performance indicators in business, Key Performance Indicators in Busin...

Key Performance Indicators in Business Significance of Key Performance Indicators (KPIs) in the business of power especially within a change environment due to partial deregul

Explain function of application layer, Q. Explain function of application l...

Q. Explain function of application layer? Layers of OSI model are as follows: (1) The Physical Layer: This defines an interface in terms of connections, voltage levels and

Metering technologies, Metering Technologies An electric meter or ener...

Metering Technologies An electric meter or energy meter is a device in which measures the amount of electrical energy supplied to customers of an electric supply company. Elec

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