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

Static characteristics of the npn silicon bjt, Consider the common-emitter ...

Consider the common-emitter BJT circuit shown in Figure (a). The static characteristics of the npn silicon BJT are given in Figure (b) along with the load line. Calculate iB for v

#title thyristor, what is finger voltage in terms of thyristor

what is finger voltage in terms of thyristor

Calculate the thermal velocity of an electron, Question: a) Describe t...

Question: a) Describe two mechanisms by which electrons can be excited from the valence band to the conduction band? b) Given that the direct-band gap energy for Gallium N

Decimal to binary conversion, Decimal  to binary Conversion To conver...

Decimal  to binary Conversion To convert a decimal  number to binary  any one  of the followings  two methods  can be used. Methods1 : This  is very common  methods of co

SINGLE-PHASE INDUCTION MOTORS MOTORS, HOW DOES SINGLE PHASE INDUCTION MOTOR...

HOW DOES SINGLE PHASE INDUCTION MOTORS DEVELOP A STARTING TORQUE ?

List the various addressing modes present in 8086, List the various address...

List the various addressing modes present in 8086? There are 12 addressing modes are present in 8086. They are, (a) Register and immediate addressing modes _  Register ad

Standard deviation of mean, For large number of measurements the mean is ca...

For large number of measurements the mean is calculated by taking a sample. Each sample that is taken has a mean. The mean of various sample difference from sample and are known to

Piezo crystal osillator, whether piezo crystal and quazt crystal oscillator...

whether piezo crystal and quazt crystal oscillator are same?

Transistor, can you differentiate the alpha,beta and gamma

can you differentiate the alpha,beta and gamma

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