Write a control word for counter, Electrical Engineering

Assignment Help:

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

Ans:

2114_Write a control word for counter.png

Based on above given conditions and presuming counter 0 is used. Control word becomes 0001 1010h.

Identify the port address

- CS is enabled when A7=1

- Control Register is selected when A1 and A0 =1

- Presuming unused address lines A6 to A2 are at logic 0, 

Then port address would be as 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

Determine the resistivity of the wire, The resistance of 1.5 km of wire of ...

The resistance of 1.5 km of wire of cross-sectional area 0.17 mm 2 is 150Ω. Determine the resistivity of the wire.

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

Stator voltage control methods - motor control , Stator Voltage Control Met...

Stator Voltage Control Methods By  controlling  the applied voltage  the speed  of an  induction motor  can be  controlled. Since  the output  torque of 3-? induction motor  i

Show binary coded decimal number system, Q. Show Binary Coded Decimal Numbe...

Q. Show Binary Coded Decimal Number System? If we analysis single digit values for hex, the numbers 0 - F, they represent the values 0 - 15 in decimal, and occupy a nibble. Fre

R = 10 ohms VB = 5V V1 is the sinusoidal wave having, Ask questionDraw the ...

Ask questionDraw the following circuits on the PROTEUS and check the output waveform on oscilloscope #Minimum 100 words accepted#

Prove modified algorithm better than the elevator algorithm, A slight modif...

A slight modification of the elevator algorithm for scheduling disk requests is to always scan in the same direction, In what respect is this modified algorithm better than the ele

LED should also show the rounded percentage , The LEDs should also show th...

The LEDs should also show the rounded percentage of the full scale output. Since there are 8 LEDs every one represents 12.5%. Though, since we want the rounded percentage the LED o

Estimate the length of the wire required to get a resistance, A heater elem...

A heater element is made of nichrome wire having resistivity equal to 100 × 10 -8 ohm-m. The diameter of the wire is 0.4mm. Calculate the length of the wire required to get a resi

Common-drain jfet amplifier, Q. Common-Drain JFET Amplifier? Figure (a)...

Q. Common-Drain JFET Amplifier? Figure (a) shows a CD JFET amplifier in which resistors R 1 , R 2 , and R SS are selected by the bias design, and capacitors CG and CS are chos

Why ce configuration is widely used in amplifier circuit, Q . Why CE Config...

Q . Why CE Configuration is widely used in amplifier circuit? The main utility of a transistor lies in its ability to amplify weak signals. The transistor alone cannot perform

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