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 are the 8086 interrupt types, What are the 8086 interrupt types? D...

What are the 8086 interrupt types? Dedicated interrupts Type 0: Divide by zero interrupt Type 1: Single step interrupt Type 2:Non maskable interrupt Type 3: Breakpo

Write shorte note on carbon, Write shorte note on Carbon. Carbon: The...

Write shorte note on Carbon. Carbon: The rate of commutator wear in electrical machines is greatly decreased by using brushes made of carbon. Carbon (C) is also used in autom

What is asynchronous data transfer, What is asynchronous data transfer? ...

What is asynchronous data transfer? It is a data transfer method which is used when the speed of an I/O device does not match with the speed of the microprocessor. Asynchronous

Discuss macro assembler directive, Discuss MACRO assembler directive wi...

Discuss MACRO assembler directive with example. MACRO: A sequence of instructions to that has a name is assigned is termed as macro. Macros and subroutines are the

The filter capacitor , It is needed to use a half-wave rectifier for a dc p...

It is needed to use a half-wave rectifier for a dc power supply that gives an average dc output voltage of 15 V and a maximum ±1V ripple is permitted. The rectifier feeds a load of

Mention the desirable properties of fuse materials, Mention the desirable p...

Mention the desirable properties of fuse materials. A fuse material must possess the properties as follows: Low resistivity - It means, thin wires can be used that will of

Resistivity, Low and high resistivity materials and their applications

Low and high resistivity materials and their applications

Lhld load hl pair direct instruction, LHLD  Load  HL Pair Direct  Instru...

LHLD  Load  HL Pair Direct  Instruction This  instruction is used to copy the  content  of memory  location specified  by opened  in register L  and copy the content of next  m

Microcontroller - introduction to microprocessors , Microcontroller Mic...

Microcontroller Microcontroller  is also known  as computer  on a chip  this  includes basic  features of microprocessor (ALU Registers  and control circuits ) with  1 k to 2k

Define voltage divider rule, Define voltage divider rule Voltage drop a...

Define voltage divider rule Voltage drop at every resistor that connected by serial can be search by using voltage divider rules (VDR).

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