Design of Counters Digital Logic and Computer Design by Ravinder Nath Rajotiya - October 9, 20230 Introduction to Counters I remember my childhood, at a time even before going to the primary school, we used to play with pebbles, soon we started counting the pebbles. When I joined school, I realized that counting is part of our life and is used in every walk of life, count starting from zero, or starting from any number (preset). As I grew, I found counting used for different purpose; we go to refuel our vehicle, there a meter that counts the amount and the quantity of fuel; counting the marks awarded to student in an exam; days temperature, population of a city/ country, counting the score in a match, number of votes obtained by a candidate in an election, number
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.