Experiment-6: Generating Square wave with 8254 PIT 8086 Programming by Ravinder Nath Rajotiya - April 15, 2021May 6, 20220 AIM: Write a Program to generate a square wave using 8254. Write an assembly language program in 8085 microprocessor which generates 1 KHz square waveform by using counter 2 as a binary counter if clock frequency of 8254 is 2 MHz. Objective: To understand the mode of operation of 8254 To understnd the calculation of count value To develop the program for generating a square wave pulse using 8254 Assumption – Assume the port addresses are 8C01 H, 8C03 H, 8C05 H, 8C07 H for Counter-0, Counter-1, Counter-2, Control Register. Modes of Operation: 8254 can operate in six mode of operations. These are: Mode-0: Interrupt on Terminal Count –Mode 0 is typically used for event counting Mode-1: Hardware Retriggreable One Shot Mode-2: Rate Generator) –Initially value of OUT is low.