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

Show the complement representation, Q. Show the Complement Representation? ...

Q. Show the Complement Representation?   There are two types of complements for each number system. r's and (r-1)'s complement ex.             decimal

Digital communication , Classify the following signals as energy signals or...

Classify the following signals as energy signals or power signals. Find the normalized energy or normalized power of each. a. ? ? , 0, 0 0, at Ae t a x t elsewhere

Data bus - bus organisation , Data bus The data  bus is the  group of 8...

Data bus The data  bus is the  group of 8 bit   used  to carry data. There  line are  bidirectional data can flow  in both  directions i e form  microprocessor to  peripherals

Determine impedance in each branch - delta connection, Determine Impedance ...

Determine Impedance in each branch - delta connection: A delta connected balanced 3-phase load is supplied from a 3-phase 400 V supply. The line current is 30 Amp and the powe

Illustrate simple telephone communication system, Q. Illustrate simple tele...

Q. Illustrate simple telephone communication system with circuit and equation of current flow in microphone? Ans: Simple  Telephone  Communication: In the simplest form of

What is extended data output ram, What is extended data output RAM? EDO...

What is extended data output RAM? EDO RAM: A slight modification to the DRAM structure changes the device in an EDO (extended data output) DRAM device. Inside the EDO memory, a

Advanced mobile phone system, Q. Advanced Mobile Phone System? Cellular...

Q. Advanced Mobile Phone System? Cellular systems employed cells with a radius in the range of 5-18 km. The base station usually transmitted at a power level of 35 W or less, a

Charge and electric force, Charge and Electric Force The proton has a c...

Charge and Electric Force The proton has a charge of +1.602 10 -19 coulombs (C), while the electron has a charge of -1.602 × 10 -19 C. The neutron has zero charge. Electric c

Explain the working of rectifier circuits, Q. Explain the working of Rectif...

Q. Explain the working of Rectifier Circuits? A simple half-wave rectifier using an ideal diode is shown in Figure(a). The sinusoidal source voltage v S is shown in Figure (b)

Determine the force applied to the plunger by system, Q. For the electromag...

Q. For the electromagnet shown in Figure, the λ-i relationship for the normalworking range is given by i = aλ 2 + bλ(x -d) 2 ,where a and b are constants. Determine the force app

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