LCD Interfacing-8051 AT89C51xD2 Introduction: A 16*2 Alphanumeric display with backlight is provided on Evaluation Board. Liquid Crystal Display (LCD) is widely used electronic display module and having a wide range of applications such as calculators, laptops, mobile phones etc. LCD in ALS 8051 Evaluation Board is connected to Port P2.…
8051 Assembly code to generate look up table for even numbers
Hello guys, Let’s see how to generate a lookup table for even numbers. There are three addressing modes in 8051 micro-controller: Immediate addressing mode, Direct addressing mode and indirect addressing mode. We use indirect addressing mode in this program to generate a lookup table for even numbers. Note: When we…
8051 Assembly code to generate look up table for odd numbers
Hello guys, Lets see how to generate look up table for odd numbers. There are three addressing modes in 8051 micro-controller: Immediate addressing mode, Direct addressing mode and indirect addressing mode. We use indirect addressing mode in this program to generate look up table for odd numbers. Note: When we…
8051 code to find the sum of negative numbers stored in an array.
Program to find the sum of all negative numbers stored in an array. This program finds the negative numbers in an array and adds them.Basically negative number is one whose carry bit is 1. Algorithm 1)Initializing register R0 with the array address and register R1 with counter. 2)Storing the first…
DC Motor Interfacing with 8051 Microcontroller – CodesExplorer
DC Motor Interfacing with 8051 Microcontroller Fig 1 DC Motor This Code is specially developed for ALS 8051 Evaluation Board. A DC motor basically converts direct current electrical energy into mechanical energy. They have a wide range of applications in bots and in other electronic devices. By interfacing DC motor to the microcontroller,…
Stepper Motor Interfacing with 8051 Microcontroller – CodesExplorer
Stepper Motor Interfacing with 8051 Microcontroller Fig 1. Stepper Motor A stepper motor is a brushless motor which divides complete 360 degree rotation into steps. Each step has fixed angle and motor rotates along those angles.In this article we will be interfacing Stepper Motor with 8051 Microcontroller. In this article…
8051 code to find Permutation and Combination
This program finds the value of permutation and combination for given two input numbers Algorithm 1) Store the value of n to R0,store the value of r to R1 and store the value (n-r) to R2. 2) Compare if n>r continue the process, if n<r then stop computation, if n=r…
ARM code: Assembly code to add numbers from array
ARM processor is used in all the Embedded systems that are being built now. Here I explain ARM assembly program to add numbers declared in an array. ALGORITHM: Start Create an array of numbers Initialize a counter register to the number of elements in an array Load base address of…
GCD of two numbers using 8051 microcontroller.
This program finds the GCD of given two numbers and stores it in the register. Algorithm. 1) Store the num1 in R1 register and num2 in R2 register. 2) Compare whether num1>num2 and directly store result if num1=num2. 3) If num1>num2 assign numerator register to num1 and denominator register to…
Password Based Door Lock System using 8051 Microcontroller
8051 code for Password Locking System This program is to take input from the keypad as the password which is set by the user and displays whether the password is correct or incorrect on LCD. ALGORITHM 1)Initializing the password in an array called pass. 2)Taking the inputs from the keypad.…