Experiment-5 Reading a number from One Port and Sending it to another Port 8086 Programming by Ravinder Nath Rajotiya - April 15, 2021May 9, 20220 Aim: Write a Program to read 16 bit Data from a port and display the same in another port. Objectives: [ To learn configuring of Key board and display module with 8086 microprocessor using 8255PPI Design algorithm and develop a program for accepting data from oneport and displaying it to LCD connected to other port. Equipment Require: 8255 Display Module, 8086 trainer Kit Theory: A Simple approach We can make use of the 8086 IN and OUT instruction to read the data from the device attached to a port and send the data to another port. We can access the ports using direct addressing or indirect addressing Direct address can be provided in the instruction Indirect address is loaded in DX register. here is simple program statements for the
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.
8255 PPI(Programmable Peripheral Interface) Microprocessor and Interfacing by Ravinder Nath Rajotiya - March 26, 2020April 21, 20220 8255 Programmable Peripheral Interface 8255 is a programmable peripheral interface IC which is used as an interface between the external device and the microprocessor for parallel communication. This IC is a 40-pi IC having three ports known as Port-A(PA), Port-B(PB) and Port-C(PC). these ports can operate in various modes. the complete details is given in the following PPTSs. Features of the 8255: It provide three I/O ports All the three I/O ports are latched Port operation is configurable by programming 8255 i.e. writing a control word in CWR BSR- bit set-reset mode allows individual pins of port C to be controlled to be set or reset. PIN diagram of 8255 8255 PPI is a 40-pin IC, it has three 8-bit ports named PA, PB
8255 Programmable Peripheral Interface Interfacing devices by Ravinder Nath Rajotiya - March 13, 2020May 10, 20210 8255 Programmable Peripheral Interface Introduction: 8085 microprocessor need the interface ICs to interface with the I/O devices. In this lecture we focus on 8255 a programmable peripheral interface. Features of 8255 40 pin IC. 24 I/O pins divided into 3 groups, Port-A, Port-B, and Port-C. Port C can be used as a single 8-bit port or in group of four bits for providing handshake signals for Port-A and Port-B. 8255 can operate in different modes i.e. BSR Mode, and I/O Mode BSR mode is used for controlling individual bits of port C in read/write operation, I/O Mode of Operations are : Mode-0, Mode-1, Mode-2 . Mode-0 is used when simple I/O activity is required on all three ports, Mode-1 is used for handshake mode for Gp-A and G-B ports with