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

Show applications for synchronous motors, Q. Show Applications for Synchron...

Q. Show Applications for Synchronous Motors? With constant-speed operation, power factor control, and high operating efficiency, three-phase synchronous motors are employed in

Show the analog voltage, a) Write a program that will read and show the ana...

a) Write a program that will read and show the analog voltage on pin PE7 approximately once every second. b) Write a program that will read and show in decivolts the analog volt

Grid connected hybrid pv-wind power system, Hi there, My project title is g...

Hi there, My project title is grid connected hybrid pv-wind power system. For this topic, i need a specification of the system. For this system a matlab and homer software simulati

Explain interrupt vector table, The interrupt vector table is always create...

The interrupt vector table is always created in the first 1K area of the memory. Justify the statement. While the CPU receives an interrupt type number start from the PIC, this

FLOW CHART TO RUN MOTOR, IFYOU AVE TWO DC MOTOR,RELAY,TWO BATTERYAND MICROC...

IFYOU AVE TWO DC MOTOR,RELAY,TWO BATTERYAND MICROCONTROLLER FLOW CHART TO RUN MOTOR AND CONTROL TWO BATTERIES

Sr flip flop - introduction to microprocessors , SR Flip Flop The SR  f...

SR Flip Flop The SR  flip  flop is an arrangement  of logic gates that maintain astable output even after  the  input  are turned off.  It has  two  inputs namely  SET input (S

Electrical machine, what happens when we apply DC supply to transformer pri...

what happens when we apply DC supply to transformer primary

Positive and negative clippers, Positive Clippers The shunt connected p...

Positive Clippers The shunt connected positive clipper, in which the diode conducts for positive half cycle and hence, the output is a straight line. During the negative half c

Define the half duplex with respect to serial communication, With respect t...

With respect to serial communication define the half duplex. Half Duplex Transmission: A channel of half duplex can send and receive, but not at same time. It's like a one-la

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