Interfacing LCD Microprocessor and Interfacing by Ravinder Nath Rajotiya - May 4, 2022May 4, 20220 Introduction LCD is the most common display devices used in different dedicated applications be it the instrumentation, medical equipment, panels, robotics etc. It is quite easy to interface it with the microprocessors or microcontrollers. We can directly interface a LCD with microcontrollers, however, for interfacing with microprocessors, we need a peripheral device such as 8255. Here in this post we discuss the basics of LCD, its commands, interfacing using 8255 PPI an final a program to initialize LCD to display some user data on it. PIN Diagram of LCD Pin number Symbol I/O Description 1 Vss xx GND 2 Vcc xx +5V 3 VEE Xx Power Supply to control contrats (use POT) 4 RS I RS=0 to select command Register, to allow user to send command to LCD RS=1 to select data register, allowing user to send data for display 5 R/W I R/W=0 : to Write R/W=1: to
GGSIPU Mid-Term-1 April 2022 Solution Microprocessors by Ravinder Nath Rajotiya - April 11, 2022April 11, 20220 Solution MT-1 April 2022 ETEE 310 Microprocessors and Microcontrollers Time 1.5 Hours MM: 30 Q1. Differentiate between PC and SP Sl PC SP 1 Program counter (PC) points to the next instruction in memory to be executed Stack Ponter(SP) points to the top of the stack memory from where an item could be accessed 2 It is auto incremented for normal sequential program Incremented for PUSH and for POP operation an item accessed and the SP decremented for stack-up configuration Q1. (b) Briefly describe different memory technologies used in microprocessor system. A microprocessor system does not contain any memory internally other than the set
8086 Microprocessor Lab Environments 8086 Programming by Ravinder Nath Rajotiya - February 21, 2022February 21, 20220 Different ways to write 8086 Assembly Program Introduction The MPI Lab experiments can be performed using the microprocessor trainer kit or it can be performed using a PC installed with one of the different assembler available like MASM611, NASM, TASM and so on. It all depends on the instructor/faculty which one they prefer. The advantage with the trainer kit is that you can view the different ICs and other components on the kit, you can manually set certain settings using different jumpers/links on the motherboard and feel the concept of low level programming. You are required to first write the program on a coding sheet or notebook, then manually assemble it referring the mnemonic/hex code table and substituting the address all manually with
Interfacing Stepper Motor Microprocessor and Interfacing by Ravinder Nath Rajotiya - November 9, 2021November 11, 20210 Interfacing a stepper Motor Definition: These stepper motors are made of permanent magnet rotor with stator field excitation. Unlike the DC motors which move continuously, the stepper motors move in incremental steps. The stepper motor is a type of DC motor with the field placed on the rotor in the form of permanent magnets with two, three or four sets of coils called phases, placed in the stator around the rotor. Common step size of stepper motor is 0.9 to 30 degree. Applications Area: Robotics, printers, object handling, plotters, disk drives etc. Types of Stepper Motors: Stepper motor can be a two phase stepper or a four phase stepper motor. A two phase stepper motor has two stator poles whereas a four phase stepper motor has four
Generating PORT Address for I/O Microprocessor and Interfacing by Ravinder Nath Rajotiya - October 12, 2021October 12, 20210 Generating the Ports for interfacing There are two techniques or methods for interfacing i/o devices, these are: i/o-Mapped I/O- In this method, the i/o device have separate address space and instructions exclusively for inputting or outputting the data from/to the devices. Instructions for reading/writing memory are different than i/o instructions.IN and OUT are used for i/o devices, and MOV is used for memory related operations. memory-mapped I/O- This techniques uses the common address space and instructions for communicating with the memory or the i/o. MOV instruction is used for i/o as well as memory related operations. In the following paragraph we will learn how to create the port addresses for the i/o-mapped i/o technique. We will use some address decoding logic gates for