Tuesday, May 31, 2016

8051 Question Bank

What is microcontroller?
How many I/O ports are placed in microcontroller 8051?
Define DPTR.
What is the purpose of PSW register?
What is use of EA pin?
How many bit addressable location are placed in internal RAM?
What is interrupts signal?
Name the types of 8051 interrupts signals.
Define clock cycle.
Define machine cycle.
Explain the Architecture of 8051.What are the blocks in Microcontroller.
Explain the Pin Diagram of 8051.
Explain the Instruction set with examples.
Explain the block diagram of 8051 Microcontroller.
What is assembler?
Mention the different fields in assembly language instructions?
What is operand field?
What are fields used in assembly language instructions as optional?
Mention two assembler directives?
Mention any four addressing modes of 8051?
Mention any two examples of direct addressing instructions?
What are the instructions used to access external RAM?
How can you perform multiplication using 8051 microcontroller?
What is the operation carried out when 8051 executes the instruction MOVC A,@A+DPTR?
Write an ALP for multibyte addition.
Explain the different modes of addressing used in 8051.
Write an ALP for finding maximum value in an array.
Explain assembly and running of an 8051 program.
Explain the structure of assembly language.
Write an ALP to arrange the given set of ‘n’ numbers in ascending order
Mention the timers of 8051?
Mention the bit addresses of ports p0 and p1?
How many bit addressable locations are placed in internal RAM of 8051?
Mention the SFR registers used in timer operation?
Mention the operating modes of 8051?
What is the function of C/T bit in TMOD register?
Find the timers clock frequency for the crystal frequency of 11.0592MHz?
State the function of M1 and M0 bits in TMOD register?
What is the function of TF0 bit in TCON register?
State the use of T0 pin of 8051?
Explain the bit addresses for I/O of 8051.
Explain TMOD and TCON registers.
Explain bit addresses for RAM.
Explain the steps to program the timer 1 in mode 2.
Explain in detail about the programming of 8051 timer.
Explain the various modes of timer operation with diagram.
How will you double the baud rate in 8051?
What is the function of SMOD in PCON register?
What is RS 232C?
How many timers are in 8051? Specify their names.
Mention the four modes of timer operation.
Mention the registers used for timer/counter operation.
Define timer operation.
Define counter operation.
What are registers used for serial communication in 8051?
Why are drivers bused in between RS232 and microcontroller?
Explain the baud rates of serial communication in 8051.
Explain the interrupts of 8051.
Explain about the serial port programming.
Draw the interfacing diagram of RS232 with8051 and explain its operation.
Explain the functions of each bit of SCON and PCON registers
Explain IP and IE registers.
Define peripherals.
What is interfacing?
What is the use of 8255?
Mention the ports placed in group a and group b of 8255.
Specify some important LCD modules.
What is the use of stepper motor?
What is the use of RTC?
Mention the capacity of nonvolatile ram placed inside of ds 12887
With the diagram explain how 8051 interfaced to external memory.
With the interfacing diagram, explain the operation of delay.
Draw the functional diagram of 8255 and explain each block.
Draw and explain the interfacing diagram of optoisolater with 8051.
Explain the control word format for i/o mode of 8255.
Draw the interfacing diagram of LM35 with microcontroller and explain its operation.
With the help of neat diagram explain the architecture of 8051 microcontroller in detail. Discuss its flag register.
Draw block diagram of 8 channel temperature indicator and controller using 8051 microcontroller. Explain it in detail.
Explain the various addressing modes of 8051 with the help of appropriate example of each.
Write an 8051 assembly language program to multiply two 8-bit numbers kept in the external RAM addressed by 4000H and 4001H respectively. Store the result in the external RAM beginning from 6000H.
Write an 8051 assembly language program to convert a binary number stored in external RAM location 3000H to its equivalent BCD number and store the result in internal RAM 20H.
Ten hexadecimal numbers are stored in internal RAM 40H onwards. Write an 8051 assembly language program to find the largest number and store it in register R4.
Explain various bit level instructions available in 8051in detail.
Write an 8051 assembly language program to compliment the lower nibble of internal RAM location 72H.
Write an 8051 assembly language program to find largerof two 8-bit numbers stored in external RAM 2000H and 2001H.
Explain the difference between MOC, MOVX, and MOVC instructions with the help of neat diagram.
Explain all rotate instructions with the help of appropriate example of them.
Create a Square wave of 50% duty cycle over Port 0.0.
Write an 8051 assembly language program to perform
a) keep monitoring the P0.1 until it becomes high
b) When P0.1 become high, read data from Port 1,and
c ) send a low to high pulse on P1.0 indicate that data has been read.
Explain the difference between MOV 80H, #99H and MOV @R0, #99H if R0=80H.
If A=90H and CY=1, what is the value of A after execution of
(a) RR A
(b)RL A
(c) RLC A
(d) RRC A
Describe the interrupt structure of 8051 in detail.
Explain the function of the pins PSEN and EA of 8051.
Explain the registers DPTR and SP of 8051.
Name any four additional hardware features available in microcontrollers when compared to microprocessors. Explain their use in detail.
Explain how interrupts are prioritized in 8051 microcontroller.
Explain the I/O port structure of 8051 microcontroller in detail.
Explain various timer modes available in 8051 microcontroller in detail.
With the help of neat circuit diagram explain how a 4x4 keypad is interfaced with 8051 microcontrolle. Write 8051 assembly language program for keypad scanning.
Draw the schematic for interfacing a stepper motor with 8051 microcontroller and write 8051 assembly language program for the same.
Explain the instruction set of 8051 microcontroller with appropriate example.
Explain TCON and TMOD function registers of 8051 microcontroller in detail.
Explain SCON and PCON function registers of 8051 microcontroller in detail.
Explain the following instructions of 8051 with examples.
a. CJNE destination, source, label
b. MUL AB
c. INC @Rp
d. SWAP A
e. SETB P2.0
Interface 32K of ROM and 8K of RAM with 8051 microcontroller. Write their address range.
Explain program status word of 8051 microcontroller in detail.
Explain internal memory organization of 8051 microcontroller with the help of necessary figures.
Write an 8051 assembly language program to generate software delay of 100ms. Explain your delay calculations assuming crystal frequency of 12MHz.
A lookup table of seven segment code is stored in ROM beginning from memory location 5000H. A single digit BCD (i.e. 0 to 9 only) is stored in internal RAM 20H. Convert it to its equivalent seven segment code and store it in external RAM 6000H.
Explain different jump and call instructions of 8051 microcontroller with their jump ranges with the help of figure.
Write an 8051 assembly language program to find the square of any number between 0 to F using lookup table technique.
Interface 4 digit seven segment display with 8051 and write a program to display BCD number 5432 on it.
Draw interfacing circuit of LCD with 8051 and write a program to display “HELLO” word on it.
Explain pulse width measurement of a square signal using interrupt 1 pin of 8051 microcontroller. Write an assembly language program of the same.
Interface 8-bit DAC with microcontroller 8051. Write a program to generate saw tooth wave using DAC.
List different modes of data communication available in 8051 microcontroller and discuss any one of them in detail.
Explain interrupt driven character transmission in 8051 microcontroller. Write an assembly language program of the same.
Explain frequency measurement using 8051 microcontroller. Write an assembly language program of the same.
Explain interrupt priority of 8051 microcontroller in detail. How priority can be changed using IP function register?
Differentiate between Microprocessor and Microcontroller?
Describe the Pin configuration of 8051?
Draw and Explain the Block Diagram of 8051?
What are different ways for classifying the Microcontroller?
List the various types of Microcontroller and their family members?
Describe the port structure of Microcontroller?
Define the Input port and Output port?
Explain 8051 signals which has different meaning at different instances?
When should EPROM to be used and when to be flash to be used?
Describe Internal Structure of Data Memory?
List the benefits of EPROM and Flash memory?
What is the value of TH1 in serial communication mode for generating of baud rate of 9600, 4800,2400 and 1200?
Describe the Time/counter section of 8051?
Describe PSW SFR?
Describe the TCON, TMOD SFR?
Assume XTAL=22 MHz, WAP to generate the pulse train of 2 seconds period on P2.4, Use time-1 in mode-1?
W.A.P to generate a Square wave of 50 % duty cycle on P1.5. Time-0 is used to generate the delay?
W.A.P to generate an interrupt after 2 ms using timer-1. Assume crystal clock frequency of 11.0592 MHz?
Describe the register bank concept in 8051?
Interface a memory of 8KB RAM with 8051? Give its address map?
Describe the use of Program and Data memory?
Describe the timing diagram of external memory for accessing its operation?
Describe the external Program and External data memory
How do use timer-0 as external counter to count event?
How do you program timer-0 in Mode-2?
How you will generate a pulse after every 2 ms using 12 MHz Crystal oscillator?
Explain the various addressing modes of 8051?
Describe the Instruction DJNZ,SETB,CLR, RL?
W.A.P. to add two 8 bit numbers kept in internal memory?
W.A.P. to multiply two 8-bit kept in the External data memory addressed by 5000H and 5001H respectively. Store the result in the Memory addressed by 5002H.
Describe various bit level instructions available in 8051?
W.A.P. to compliments the lower nibble of Ram location FFH?
W.A.P. to move bit 4 of RAM location to bit 2 of Accumulator?
W.A.P. to divide one 8-bit number by another 8-bit number?
Describe the concept of stack in 8051?
W.A.P. to find largest number among two 8-bit number?
W.A.P. to load any random number in R4 and R6. Increment R4 and Decrement R6 until they are equal?
Describe the classification of instruction set of 8051?
Describe the various flow controls instructions?
Describe the instructions (all instructions)?
Explain the difference between MOC, MOVX, and MOVC?
Explain all addressing modes available to move byte to direct address?
Describe the difference between LJMP, AJMP and SJMP? Explain how CJNE is useful for implement if and Case statements?
Explain the use of rotate instructions?
Why PUSH and POP instructions are useful for serving to an interrupt?
Compare program, routine, interrupt service routine?
How do you find execution time for set of instructions in the program?
WAP for writing odd bits at port P2=1s and even bits =0s. Toggle the bit 0,3,7 at port P2?
WAP to set clear all the byte of four banks?
WAP to load 98H into accumulator and execute RRC three times and then add 70H. What will be the results in A and Flags? Assume CF=0?
Create a Square wave of 50% duty cycle over Port 0.0?
WAP perform a) keep monitoring the P0.1 until it becomes high b) When P0.1 become high, read data from Port 1 and c) send a low to high pulse on P0.2 indicate that data has been read?
WAP to toggle P1.3, P1.7, P.15 continuously without disturbing other pins of port?
Sate the Bit address of various ports and SFRS?
WAP to find the number of zeros in register R2of bank-0 ?
Explain the difference between MOV 80H, #99H and MOV @R0, #99H if R0=80H?
If A=90H and CY=1, what is the value A after execution of a) RR A b) RL A c) RLC A DNA) RRC A
Describe the interrupt structure of 8051?
Describe IE, IP SFR?
Define the Interrupt latency and Dead line?
How enabling and disabling of interrupt can be carried out?
What is the role of polling to determine the interrupt sources?
Describe the action of processor to call interrupt subroutine?
List the flags for each interrupt source in 8051?
Describe the multiple interrupt sources in 8051?
How do you disable all the interrupts?
How you will set the priorities of interrupt?
Describe the Block diagram of 8259?
Describe ICW1, ICW2, ICW3, and ICW4?
Describe OCW1, OCW2 and OCW3?
Draw the interfacing of 8259 with 8051?
Write a Program to addition when INT0 Interrupt occurs?
List interrupts supported by 8051, with their priority and vector location?
Describe the serial communication feature of 8051 with various operating mode?
List the programmable features of 8251?
Differentiate between synchronous and asynchronous communication?
Describe the SCON, PCON SFR?
Describe the block diagram of 8251?
Describe the Mode/Command/Status register format of 8051?
W.A.P. to transmit letter “Y” continuously over TxD pin with baud rate 64th of clock frequency with even parity enabled, 2 stop bit, character length of 8-bit?
WAP to receive the data which has been send in serial form and send it out to port-0 in parallel form and also save the data in memory location 60H?
Interface ADC0816 with 8051 with Port 0 and Port 1? W.A.P. to read the analog sample and store into memory addressed by 20H?
Interface DAC 0800 with 8051? W.A.P. to generate a square wave through it?
Describe the IC ADC0816? List it specification?
Interface LCD display with 8051? W.A.P. to display 10 characters whose ASCII code is stored in internal memory addressed by 20H?
Design Temperature controlled system using 8051 where system is sensed temperature of furnace at a regular interval. If it exceeds the desired level (assume) then Heater control should be turn off otherwise it remains On?
Describe the Ideal and Power down mode of 8051?
List the various LCD command codes?



Related topics:
8051 Program - day of week calculation   |   8051 Program - i2c subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines   |   8051 Program - memory subroutines   |   8051 Projects

List of topics: 8051

8051 Projects

http://www.8051projects.info/projects.php
Auto Control of three phase Induction motor (AT89S52)
Automatic College Bell (AT89S8252 & DS1307)
Automatic plant Irrigation (AT89C2051)
Automatic Room light Controller with Visitor Counter (AT89S52)
BIOMEDICAL MONITORING SYSTEM (AT89C2051 + TX/RX)
Device control through Bluetooth from Symbian OS Mobiles
Device Controlling through PC (Visual Basic)
Digital Calendar (AT89C2051)
Digital Countdown Timer (AT89C2051)
Digital IC Tester for 74 series
Digital Visitor Counter (AT89C2051)
DS1620 Based Temperature Controller (AT89S52)
DS1820 Based High Precision Temperature Indicator
Electronic Cash Register (ECR)
Electronic Voting Machine (AT89S8252)
Electronics Components Tester (AT89C52)
Fingerprint Based Electronic Voting Machine
FingerPrint Based Security System
Fire Fighting Robot (AT89S52)
Gates Emulator (AT89C2051)
Home Security System(AT89S52)
Infrared Interruption counter (AT89C2051)
InfraRed Remote Switch (6 devices + 1 fan) -AT89S52
InfraRed Remote Switch (AT89C2051)
Interactive Voice Response System For College Automation (IVRS)
Line Following Robot (AT89C2051)
Microcontroller Based Caller ID (AT89C2051)
Microcontroller Based Digital Clock with Alarm
Microcontroller Based Digital code Lock (AT89C2051)
Multipattern Running Lights (AT89C2051)
Parallel Telephone with auto secrecy (AT89C2051)
Password Based Door Locking (AT89C2051)
PC -MC communication (AT89C2051 + Tx/Rx)
PC BASED DATA LOGGER (AT89S52 + VB)
PC Based Digital IC Tester
PC Based GPS
PC Based Robot (AT89C2051)
PC Remote Control
Prepaid Energy Meter (AT89S52)
REMOTE CONTROL VIA INTERNET (AT89S52 + Ethernet Adaptor))
Remote Controlled Digital Clock with DS1307 & AT89C2051
RF based Automatic meter reading
RF Based Remote control (AT89C2051)
RFID Based Attendance System (AT89S52 + RFID)
RFID Based Security System (AT89S52 + RFID)
SECURED WIRELESS DATA COMMUNICATION (AT89S52)
SMS through Telephone (AT89S8252)
Solar tracking System (AT89C2051)
Telephone Controlled Motor
Telephone controlled Remote switch (AT89S52)
Temperature controlled Fan (AT89S52)
TIME OPERATED ELECTRICAL APPLIANCE CONTROLLING SYSTEM
Traffic Light Controller (AT89C2051)
Two Line Intercom (AT89C2051)
http://www.engineersgarage.com/microcontroller/8051projects/
Interfacing ADC0808 with Serial port (RS232) using interrupt clock from 8051 microcontroller (AT89C51)
How to interface Serial ADC0831 with 8051 Microcontroller (AT89C51)
How to create custom characters on 16x2 LCD using 8051 microcontroller (AT89C51)
How to control Stepper Motor using ULN2003 and 8051 Microcontroller (AT89C51)
How to interface Stepper Motor with 8051 Microcontroller (AT89C51)
How to display an image on Graphics LCD using AT89C52
How to display string on Graphics LCD using 8051 Microcontroller (AT89C52)
How to interface Graphics LCD with 8051 Microcontroller (AT89C52)
How to interface GPS with 8051 Microcontroller (AT89C51)
How to extract details from GPS Receiver using 8051 Microcontroller
How to interface Humidity Sensor with 8051 Microcontroller (AT89C51)
Servo Motor control through Keypad using 8051 Microcontroller (AT89C51)
How to interface Servo Motor with 8051 Microcontroller (AT89C51)
How to interface GSM Module with 8051 microcontroller (AT89C51) using PC
How to interface GSM Module with 8051 microcontroller (AT89C51) using PC and LCD
Interfacing GSM Module with 8051 microcontroller (AT89C51) without using PC
EEPROM (24C02) Memory Reset using 8051 microcontroller (AT89C51)
How to Interface Serial EEPROM 24C02 with 8051 microcontroller (AT89C51)
Toll plaza system based on vehicle category interface with 8051 microcontroller (AT89C51)
Simple toll plaza system using low frequency RFID interfaced with 8051 microcontroller (AT89C51)
RFID based Secured access system using 8051 microcontroller (AT89C51)
Interfacing RFID with 8051 microcontroller (AT89C51) using serial interrupt
How to interface RFID with 8051 microcontroller (AT89C51)
Digital clock using DS12C887 and 8051 microcontroller (AT89C51) in 12 hour mode
Clock using RTC DS12C887 & 8051 microcontroller (AT89C51) with alarm set function
LCD based clock using RTC DS12C887 and 8051 microcontroller (AT89C51) using update interrupt
Digital clock using RTC DS12C887 and 8051 microcontroller (AT89C51) with time set
How to Interface RTC DS12C887 with 8051 microcontroller (AT89C51)
How to interface Sharp's distance sensor with 8051 microcontroller (AT89C51)
How to interface LDR with ADC0808 using interrupt clock from 8051 microcontroller (AT89C51)
Interfacing ADC0808 with Serial port (RS232) & 8051 microcontroller using clock from D-flip flop
LCD based digital alarm clock with digital thermometer using 8051 microcontroller (AT89C51)
Electronic voting machine using seven segment multiplexing with 8051 microcontroller (AT89C51)
How to interface computer's Serial Port (RS232) with 8051 microcontroller (AT89C51)
LCD based dual message display using 8051 microcontroller (AT89C51)
Liquid/Water Level Indicator with Alarm using 8051 Microcontroller (AT89C51)
How to generate sound using 8051 microcontroller (AT89C51)
How to interface three input channels of ADC0808 using 8051 microcontrollers (AT89C51)
How to interface ADC0808 using clock from 8051 microcontroller (AT89C51)
How to interface ADC0808 with 8051 microcontroller (AT89C51) using clock from D-flip flop
Interfacing ADC0804 with Serial port (RS232) using 8051 micocontroller (AT89C51)
Distance measurement using InfraRed sensor with ADC0804 & 8051 microcontroller (AT89C51)
Clap counter using 8051 microcontroller (AT89C51)
LCD based sound operated display using 8051 microcontroller (AT89C51)
Celsius and Fahrenheit scale digital thermometer using 8051 microcontroller (AT89C51)
Celsius scale digital thermometer using 8051 microcontroller (AT89C51)
How to make an alphabetic keypad using 8051 microcontroller (AT89C51)
Electronic code lock with user defined password using 8051 microcontroller (AT89C51)
Keypad based simple electronic lock using 8051 microcontroller (AT89C51)
How to interface keypad with 8051 microcontroller (AT89C51)
LCD based digital alarm clock using 8051 microcontroller (AT89C51)
LCD based digital clock using 8051 microcontroller (AT89C51)
How to interface ADC0804 using 8051 microcontroller (AT89C51)
LCD based voting machine using 8051 microcontroller (AT89C51)
How to display custom animations on 16x2 LCD using 8051 microcontroller (AT89C51)
How to display Hindi alphabets on 16x2 LCD using 8051 microcontroller (AT89C51)
How to create text animation on 16x2 LCD using 8051 microcontroller (AT89C51)
How to display number on 16x2 LCD using 8051 microcontroller (AT89C51)
How to display text on 16x2 LCD using 8051 microcontroller (AT89C51)
How to interface 16x2 LCD with 8051 microcontroller (AT89C51)
Automatic bidirectional visitor counter using 8051 microcontroller (AT89C51)
Up down counter using 8051 microcontroller (AT89C51)
Stopwatch using 8051 microcontroller (AT89C51)
Countdown timer using 8051 microcontroller (AT89C51)
Seven segment based alarm clock using 8051 microcontroller (AT89C51)
Seven segment based digital clock with time set option using 8051 microcontroller (AT89C51)
Simple Digital clock using 8051 microcontroller (AT89C51)
Seven segment multiplexing using 8051 microcontroller (AT89C51)
8 candidate quiz buzzer using 8051 microcontroller (AT89C51)
Digital dice using 8051 microcontroller (AT89C51)
User input based seven segment display using 8051 microcontroller (AT89C51)
How to interface seven segment display with 8051 microcontroller (AT89C51)
How to interface LEDs with 8051 microcontroller (AT89C51)
Microcontroller Based Sequential Timer for DC Motor Control
One Time Programmable Password Lock
Microcontroller Based City Locator using GPS and LCD
Intelligent Automated Home Lighting System
Traffic Management for Emergency Vehicles using AT89S52 Microcontroller with RFID & IR Sensors
Controlling Appliances Wirelessly using RF Technology
Zigbee Based Alerting System for Mine Workers
Wireless Monitoring and Controlling Rescue Robot using Zigbee
DC Motor Control using PWM with ADC
Interfacing RF Module with 8051 Microcontroller
Interfacing 3-Axis Accelerometer with 8051 Microcontroller
Home Applinces Control By Human Voice
Interfacing LED Dot Matrix with 8051 Microcontroller
Mobile Controlled Home Automation
Lasered Security System
Voice Controlled Wheel Chair For Physically Disabled People
Mobile Controlled Robot
Line Follower Robot
Real Time Clock with Alarm Option using AT89S52 and DS1307 IC
Industrial Temperature Control System
Interfacing L293D with 8051 Microcontroller
AC Motor Speed Control using RF Remote
Automatic Room Lighting
DIY Game: Glow All the LEDs First!
Keypad Locking System with User Defined Password
DTMF Controlled Home Automation System Using 8951
RFID Based Attendance System using 8051 Microcontroller
Rain Detector using 8051 Microcontroller
Distance Finder Based on AT89S52 and Ultra-Sonic Sensors HC-SR04
Motor Protection against Single Phasing and Overheating
Real Time Clock using 8051 Microcontroller and RTC IC DS1307
Tachometer using microcontroller
Conveyor Belt controller
Differential Relay to protect System from Negative Phase
How to interface LCD with 89C51
Cell Phone Operated Land Rover
89C51 Microcontroller based Pick n Place Robot
Wireless Remote data monitoring System for Industries
DC Motor Controller
Industrial Laser cutting machine
Load Positioning System
Industrial Temperature Controller
IR Remote Control System
Wireless DC Motor controller
DTMF Based Programmable FM Remote with 89C51
Remote Unipolar Stepper Motor Controller with 89C51
IR Remote Control for Home Appliances
Multichannel IR Remote using 89C51
Typing Assistant based on 8051 microcontroller
Frequency and Pulse Width Measurement using microcontroller
DTMF Based ROBO Car
Controlling Audio Volume & Tone with a Remote Control
Controlling a Desktop Computer with a Remote Control
8 Contestant Quiz Buzzer Project using Assembly Language
Temperature Controlled Fan
Traffic Light Controller
Object Counter using 8051
DC Stepper Motor with AT89C51 Microcontroller
Interfacing ADC0808 with microcontroller 8051
Cell Phone based Device Control with Voice Acknowledgement
Operating Daily Life Gadgets using Voice Recognition System and Embedded Controllers
Biometric Voting Machine
http://www.circuitstoday.com/category/8051-projects
http://www.8051projects.net/
http://www.electronicshub.org/8051-microcontroller-projects-engineering-students/
http://circuitdigest.com/8051-microcontroller-projects
http://nevonprojects.com/8051-project/
Human Speed Detection Project
Accurate Room Temperature Controller Project
Automated Elevator With Overload Alert
Machine Overheat Detection With Alert
Home Automation Using Android
PC Based Home Automation
BLDC Motor Speed Control Using Fuzzy Logic
Voice Controlled Robotic Vehicle
Automatic Light Intensity Controller By External Light Sensing
Rf Controlled Spy Robot With Night Vision Camera
Hand Motion Controlled Robotic Arm
Hand Motion Controlled Robotic Vehicle
Industry Power Consumption Penalty Minimization Using AFPC Unit Project
Advanced Military Spying & Bomb Disposal Robot
Circuit Breaker Based On Password
Multi Microcontroller Networking System
Device Load Monitor With Programmable Meter For Energy Audit
Ultrasonic Radar Project
Power Grid Failure Detection Based on Voltage and Frequency Variance Detection
Thyristors Based Dual Converters
Voice Based Notice Board Using Android
Flexible Ac Transmitter System Using TSR
SVC Based Flexible AC Transmission System(FACTS)
Microcontroller based 4 Quadrant speed control system
Controlling Pc By TV Remote as Mouse
Lamp Illumination Control With Precision
Remote Controlled Pick & Place Robotic Vehicle
Load Shedding Time Management With Programmable Interface
Ultrasonic Object Detection Project
Solar Street Lights With Auto Intensity Controller
Industry Automation Using Programmable Switching in Repetitive Nature Of Work
AC Power Controller With Programmable Interface
Postage Stamp Value Calculator
Android Controlled Wildlife Observation Robot
Vehicle Movement Based Street Lights With External Light Sensing
Controlling Pc By TV Remote as Mouse
Electrical Load Controlled By PC
Displaying Moving Message On Notice Board Using PC
Precise Digital Temperature Controller
Motion Based Automatic Door Opener
Wildlife Observation Robot Using Rf
Industry Temperature Control System
TV Remote Controlled Home Appliances Project
Vehicle Sensing Street Lights Project
Efficient Power Manager Project
IR Based Obstacle Detection For Load Switching Project
IR Based Traffic Density Detection And Signal Adjustment
Ultrasonic Distance Measurement Project
IR Based Dish Position Controller
Dynamic Signal Light Timings On Traffic Density
Liquid Level Controller System Without Contact
Closed Loop DC Motor Control To Run It At Exact Speed
RPM Display For BLDC Motor With Speed Controller
Visitor Sensor Light With Seven Segment Display
Display Object Counter On 7 Segment Display
Home Automation Using Touch Screen
Android Controlled Pick And Place Robotic Arm Vehicle Project
SMS Controlled Railway Level Gate Control With Programmable Numbers
Vehicle Theft Detection/Notification With Remote Engine Locking
Patient Health Check Using Wireless Health Monitor
Car Overspeeding Detection Project
MC Based Line Follower Robot
Robotic Vehicle With Metal Detection Project
Long Range Spy Robot With Night Vision
Long Range Spy Robot With Obstacle Detection
Long Range Spy Robot With Metal Detection
Fire Fighter Robot With Night Vision Camera
AC Power Strength Controller System
Android Antenna Positioning System
Traffic Signals With Synchronization System
Multi Motors With Synchronized Speed
Single Phase Induction Motor With Smooth Start
Configurable Password Security System
Displaying message Using Led Propeller
Thyristor Based Cyclo Converter
Remote Controlled Induction Motor Controller
Induction Motor Timer Using Auto Delta Star Starter
Multi-Power Supply Using 4 Different Sources
IR Remote Thyristor Power Controller
Controlling Induction Motor Power Through Thyristor
ZVS Based 3 Stage Solid State Relay
DC Motor Speed Controller
Cycle Switching Without Harmonics For Industrial Power Control
Thyristor Firing Angle Control For Battery Charging
Street light automatic intensity controller
Security Access Control Using RFID Project
Attendance System Based On RFID Project
RFID Based Passport Project
Android Military Spying & Bomb Disposal Robot
Automating Homes Using RF
RF Based Secure Door Opener System
RF Secure Coded Communication System
Load Control System Using DTMF
Voice Controlled Home Automation
DTMF Cell Phone Based Door Opener
Remote Vehicle Control Through Cell Phone
Dialled Telephone Number Display On 7 Segment
Digitally Controlled Home Automation Project
Android Controlled Induction Motor with 7 segment display
Android Controlled Notice Board Project
Density based traffic controller with android overriding ability
Hovercraft Controlled By Android
Android Controlled Automobile
Remote Controlled Robotic Arm Using Rf
Android Controlled Robotic Arm
Programmable Sequential Load Operation Controlled By Android Application Project
Android Password Based Remote Door Opener System Project
Android Controlled Remote Password Security
Android Controlled Railway Level Gate Control
Android Controlled Remote AC Power Control
Robot Controlled By Android Application
Home Appliance Control Using Android Application Project
Android Controlled Fire Fighter Robot
Android Controlled Based Spy Robot With Night Vision Camera
Android Controlled Pick And Place Robotic Arm Vehicle Project
Wireless Surveillance Robot Controlled by PC
Shuttling Metro Train Between Stations Project
Solar Panel With Sun Position Tracking
Android Circuit Breaker
System To Measure Solar Power
Controlling Solar Energy Charge
Obstacle Avoider Robotic Vehicle
Robotic Arm Vehicle Controlled By Touch Screen Display
TV Remote Controlled Robotic Vehicle Project
Robot Controlled By Android Application
Android Controlled Fire Fighter Robot
Android Controlled Based Spy Robot With Night Vision Camera
http://www.projectsof8051.com/microcontroller-based-project-list/
http://www.edgefxkits.com/8051-microcontroller-projects/
http://1000projects.org/micro-controller-projects.html
http://www.myclassbook.org/electronics-mini-projects-list/



Related topics:
8051 Program - day of week calculation   |   8051 Program - i2c subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines   |   8051 Program - memory subroutines   |   8051 Question Bank

List of topics: 8051

8051 Program - memory subroutines




Related topics:
8051 Program - day of week calculation   |   8051 Program - i2c subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines   |   8051 Projects   |   8051 Question Bank

List of topics: 8051

8051 Program - conversion subroutines

8051 Program - 5 digit decimal to binary
8051 Program - byte to ascii
8051 Program - 16 bit binary to ascii
8051 Program - bcd byte
8051 Program - 16 bit hex to bcd
8051 Program - convert dptr to unsigned string
8051 Program - convert dptr to signed string
8051 Program - convert 12bit binary to bcd
8051 Program - convert 8bit binary to bcd
8051 Program - convert binary to ascii base36
8051 Program - convert binary to ascii
8051 Program - convert base36 value to binary
8051 Program - convert bcd value to hex
8051 Program - convert ascii decimal to binary
8051 Program - convert ascii hex to binary
8051 Program - convert acc to uppercase
8051 Program - convert acc to lowercase
8051 Program - signed 8bit to 16bit conversion
8051 Program - unsigned to signed conversion 32bit
8051 Program - unsigned to signed conversion 16bit
8051 Program - unsigned to signed conversion 8bit
8051 Program - signed to unsigned conversion 32bit
8051 Program - signed to unsigned conversion 16bit
8051 Program - signed to unsigned conversion 8bit
8051 Program - hex to bcd 12bit
8051 Program - hex to bcd 8bit
8051 Program - bcd to hex 8bit
8051 Program - ascii to bcd
8051 Program - bcd to ascii
8051 Program - ascii to hex
8051 Program - hex to ascii
8051 Program - ascii to decimal
8051 Program - decimal to ascii
8051 Program - hex to decimal 8bit
8051 Program - decimal to hex



Related topics:
8051 Program - day of week calculation   |   8051 Program - i2c subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines   |   8051 Program - memory subroutines   |   8051 Projects   |   8051 Question Bank

List of topics: 8051

8051 Program - math subroutines

8051 Program - 32bit multiplication
8051 Program - divide
8051 Program - sign fixup for divide
8051 Program - signed mod
8051 Program - signed divide
8051 Program - unsigned mod
8051 Program - unsigned divide
8051 Program - signed 16bit multiply Accumulate table
8051 Program - signed 16bit multiply divide
8051 Program - unsigned 32bit division
8051 Program - signed 32bit division
8051 Program - unsigned 16bit division
8051 Program - signed 16bit division
8051 Program - unsigned 8bit division
8051 Program - signed 8bit division
8051 Program - signed 16bit multiply Accumulate
8051 Program - unsigned 16bit multiplication
8051 Program - signed 16bit multiplication
8051 Program - signed 8bit x 16bit multiplication
8051 Program - unsigned 8bit multiplication
8051 Program - signed 8bit multiplication
8051 Program - signed 32bit subtraction
8051 Program - signed 16bit subtraction
8051 Program - signed 32bit addition
8051 Program - signed 16bit addition
8051 Program - square and cube operation
8051 Program - square root of a given number 8bit
8051 Program - square of a given number 8bit
8051 Program - gcf of two numbers
8051 Program - lcm of two numbers
8051 Program - fibonacci series
8051 Program - factorial of a given number
8051 Program - average of a set of numbers
8051 Program - sum of set of numbers in external ram
8051 Program - sum of a set of numbers
8051 Program - addition 8bit 2digit bcd
8051 Program - multiplication 16bit by 8bit
8051 Program - addition multibyte
8051 Program - division 16bit
8051 Program - multiplication 16bit
8051 Program - subtraction 16bit
8051 Program - addition 16bit
8051 Program - division 8bit
8051 Program - multiplication 8bit
8051 Program - subtraction 8bit
8051 Program - addition 8bit
8051 Program - arithmetic operation 8bit



Related topics:
8051 Program - day of week calculation   |   8051 Program - i2c subroutines   |   8051 Program - conversion subroutines   |   8051 Program - memory subroutines   |   8051 Projects   |   8051 Question Bank

List of topics: 8051

8051 Program - i2c subroutines

;Ports Used for I2C Communication
sda equ P0.0
scl equ P0.1
;Start Condition for I2C Communication
startc:
clr scl
setb sda
nop
nop
setb scl
nop
nop
clr sda
ret
;Stop Condition For I2C Bus
stop:
nop
nop
clr sda
setb scl
nop
nop
setb sda
nop
nop
clr scl
ret
;Sending Data to slave on I2C bus
;with Acknowledgement
send:
mov r7,#08
back:
clr scl
nop
nop
nop
rlc a
mov sda,c
setb scl
nop
nop
nop
clr scl
nop
nop
nop
djnz r7,back
setb sda
setb scl
nop
nop
nop
nop
clr scl
nop
nop
nop
ret
;Receiving Data from slave on I2C bus
;with Acknowledgement
recv:
mov r7,#08
back2:
setb sda
setb scl
nop
nop
nop
mov c,sda
rlc a
clr scl
nop
nop
nop
djnz r7,back2
setb sda
clr scl
nop
nop
nop
clr sda
setb scl
nop
nop
nop
clr scl
nop
nop
nop
mov @r0,a
inc r0
ret



Related topics:
8051 Program - day of week calculation   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines   |   8051 Program - memory subroutines   |   8051 Projects   |   8051 Question Bank

List of topics: 8051

8051 Program - day of week calculation

;Day Of Week calculation
;(P)2008 by Jan Waclawek
;tested with MetaLink assembler
;first, a test program going through all dates; the utility itself is below
day equ 30h
month equ 31h
year equ 32h
dow equ 33h
TestDow:
mov dow,#2
mov year,#0
mov month,#3
sjmp TestDowX2
TestDowX1:
mov month,#1
TestDowX2:
mov day,#1
TestDowX3:
mov r5,day
mov r6,month
mov r7,year
call DayOfWeek
cjne a,dow,Fail
inc dow
mov a,dow
cjne a,#7,TestDowX4
mov dow,#0
TestDowX4:
inc day
mov a,month
add a,#TestDowTab-TestDowX5-1
movc a,@a+pc
TestDowX5:
cjne a,day,TestDowX6
sjmp TestDowX3
TestDowX6:
jnc TestDowX3
mov a,month
cjne a,#2,TestDowX7
mov a,day
cjne a,#29,TestDowX7
mov a,year
anl a,#3
jz TestDowX3
TestDowX7:
inc month
mov a,month
cjne a,#12+1,TestDowX2
inc year
mov a,year
cjne a,#100,TestDowX1
sjmp Pass
TestDowTab:
db 31,28,31,30,31,30,31,31,30,31,30,31
Fail:
ljmp Fail
Pass:
sjmp Pass
;calculates day of week
;good since 01.03.2000 until 31.12.2099
;input: r7 - year (00-99 for 2000-2099)
; r6 - month (01-12)
; r5 - day (01-31, as appropriate for given month)
;no sanity check performed
;returns in acc 00-06 for Monday-Sunday
;uses b
DayOfWeek:
cjne r6,#3,DayOfWeekX1
DayOfWeekX1:
mov a,r7
subb a,#0
mov b,a
rr a
rr a
anl a,#03Fh
clr c
subb a,b
mov b,a
mov a,r7
rl a
add a,b
mov b,a
mov a,r6
add a,#DayOfWeekTab-DayOfWeekX2-1
movc a,@a+pc
DayOfWeekX2:
add a,r5
add a,b
;add a,#4
mov b,#7
div ab
mov a,b
ret
DayOfWeekTab:
;db 0,3,4,0,2,5,0,3,6,1,4,6
db 4,0,1,4,6,2,4,0,3,5,1,3
end



Related topics:
8051 Program - i2c subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines   |   8051 Program - memory subroutines   |   8051 Projects   |   8051 Question Bank

List of topics: 8051

8051 Program - 5 digit decimal to binary

;*CONVERTS 5 DIGIT DECIMAL NUMBER (12345) INTO 3 BYTES BINARY NUMBER
BIN_1 EQU 42H ; LSB
BIN_2 EQU 41H ; MIDDLE SB
BIN_3 EQU 40H ; MSB
DEC_1 EQU 50H ; TEN THOUSANDS OF 5 DIGIT DECIMAL NUMBER
DEC_2 EQU 51H ; THOUSANDS OF 5 DIGIT DECIMAL NUMBER
DEC_3 EQU 52H ; HUNDREDS OF 5 DIGIT DECIMAL NUMBER
DEC_4 EQU 53H ; TENS OF 5 DIGIT DECIMAL NUMBER
DEC_5 EQU 54H ; UNITS OF 5 DIGIT DECIMAL NUMBER
FACTOR EQU 60H ; AUXILLIARY VARIABLE
;MAIN CODE:
;EXAMPLE;
;TO CONVERT 5 DIGIT DECIMAL NUMBER (12345) INTO 3 BYTES BINARY NUMBER
MOV R2,#00 ; NEW LINE
; \
MOV BIN_1,#00 ; |
MOV BIN_2,#00 ; | 3 BYTES BINARY OUTPUT
MOV BIN_3,#00 ; |
; /
MOV DEC_1,#05D ; UNITS
MOV DEC_2,#04D ; TENS
MOV DEC_3,#03D ; HUNDREDS
MOV DEC_4,#02D ; THOUSANDS (1st Decimal place)
MOV DEC_5,#01D ; TEN THOUSANDS (2nd Decimal place)
MOV A,DEC_1 ; TAKE THE UNITS DIRECTLY AS IT IS TO THE LSB
MOV BIN_1,A
MOV A,DEC_2 ; TAKE THE TENS BY MULTIPLYING WITH #10D AND
MOV B,#10 ; AND ADDING TO THE LSB
MUL AB
ADD A,BIN_1
MOV BIN_1,A
MOV R0,#52H ; THE ADDRESS OF 3rd DIGIT
MOV FACTOR,#00D ; INITIALIZE AS ZERO
MOV A,@R0 ; TAKE THE 3rd DIGIT INTO R1 FOR PROCESSING
MOV R1,A
CJNE R1,#00,LOOP ; SKIP IF THE DIGIT IS A ZERO
SJMP ITS_ZERO
LOOP:
MOV A,#100D ; ADD CONSTANT 100D TO LSB AS MANY TIMES
CLR C
ADD A,BIN_1
MOV BIN_1,A
JNC NO_EXCEED
INC BIN_2 ; INCREASE THE NEXT HIGHER BYTES WHEN THE LSB
MOV A,BIN_2 ; OVERFLOWS
CJNE A,#00H,NO_EXCEED
INC BIN_3
NO_EXCEED:
DJNZ R1,LOOP
;-----------
CJNE R2,#00,CONTINUE
SJMP ITS_ZERO
CONTINUE:
DEC R2
SJMP LOOP
;-----------
ITS_ZERO:
INC R0 ; GET NEXT DIGIT WHEN THE LOOP EXHAUSTS
CJNE R0,#55H,PROCEED; GET OUT WHEN ALL THE 3 DIGITS HAVE BEEN
; WORKED UPON. (1st and 2nd digits are used
; before the loop)
SJMP OUT_LOOP
PROCEED:
INC FACTOR ; CALCULATE AS HOW MANY TIMES THE CONSTANT
MOV A,@R0 ; 100D HAS TO BE ADDED TO LSB DEPENDING ON
CJNE A,#00,NOT_ZERO ; THE VALUE OF THE DIGIT ACQUIRED BY @R0
SJMP ITS_ZERO
NOT_ZERO:
PUSH FACTOR
MULTIPLY:
MOV B,#10D
CLR OV
MUL AB
JNB OV,SINGLE
PUSH ACC
MOV A,B
ADD A,R2
MOV R2,A
POP ACC
SINGLE:
DJNZ FACTOR,MULTIPLY
MOV R1,A
POP FACTOR
SJMP LOOP
OUT_LOOP:
MOV R1,BIN_2
MOV R2,BIN_1
MOV R0,BIN_3
END
;IDEA:
; LSB
;+ (DEC_1)
;+ (DEC_2 x 10D)
;+ (DEC_3 x 1 x 100D)
;+ (DEC_4 x 10 x 100D)
;+ (DEC_5 x 100 x 100D)



Related topics:
8051 Program - 16 bit hex to bcd   |   8051 Program - bcd byte   |   8051 Program - 16 bit binary to ascii   |   8051 Program - byte to ascii   |   8051 Program - memory subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines

List of topics: 8051

8051 Program - byte to ascii

; Returns the ASCII codes from the nibbles of a byte stored in the Acc.
; After being called the high nibble is in the Acc and the low nibble
; is in the B register.
; ;usage:
; mov a, #byte
; CALL nibble
; ;returns
; ;A= high nibble
; ;B= low nibble
nibble:
mov b,a ; b=a ; stores Acc in B
anl a,#0f0h ; a=xxxx0000 ; A && #f0h (get the high nibble)
swap a ; a=0000xxxx ; swap nibbles
orl a,#30h ; a=0011xxxx ; add #30h, if nibble is
push acc ; 0-9 we have the ASCII value
push b ; stores A and B
mov b, #3ah ; stores #3ah in B
div ab ; divide A/#3ah
jz recupera1 ; if zero, nibble < #0Ah
nibble1_ok:
pop b ; recover B
pop acc ; recover A
add a, #07h ; adds #07h to get ASCII of A-F
xch a,b
jmp nibble2
recupera1:
pop b ; stores B
pop acc ; stores A
xch a,b
nibble2:
anl a,#0fh ; a=0000xxxx ; A && #0fh (get low nibble)
orl a,#30h ; a=0011xxxx ; add #30h, if nibble is
push acc ; 0-9 we have the ASCII value
push b ; stores A and B
mov b, #3ah ; stores #3ah in B
div ab ; divide A/#3ah
jz recupera2 ; if zero, nibble < #0Ah
pop b ; recover B
pop acc ; recover A
add a, #07h ; adds #07h to get ASCII of A-F
xch a,b
ret ; return to main routine
recupera2:
pop b ; recover B
pop acc ; recover A
xch a,b
ret ; return to main routine



Byte2ascii:
mov b, a
swap a
acall Nibble2ascii
xch a, b
Nibble2ascii:
anl a, #00fh
inc a
movc a, @a+pc
ret
ascii:DB "0123456789ABCDEF"



Related topics:
8051 Program - 16 bit hex to bcd   |   8051 Program - bcd byte   |   8051 Program - 16 bit binary to ascii   |   8051 Program - 5 digit decimal to binary   |   8051 Program - memory subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines

List of topics: 8051

8051 Program - 16 bit binary to asci

; | Purpose: Routine to convert a 16bit binary number in ASCII
; |
; | INPUT : R2 (Lsb) and R3 (Msb) ( binary)
; |
; | OUPUT : 30h,31h,32h,33h,34h (internal RAM address) (ASCII)
; | msb--^ ^------lsb
; |
; | Destroy all registers
; |
; | PROGRAMMER: Bruno Marcio Diogo Venancio ( bruno.marcio@bol.com.br )
; | BRAZIL 07/19/2002
; | THIS CODE CAN BE FREELY DISTRIBUTED WITHOUT CHANGES
BINTOASC:
MOV R0,#30h ; R0 = POUT
MOV DPTR,#TAB ; R <- TAB(P)
COM1:
CLR A ; P <- 0
MOVC A,@A+DPTR ; R = TAB(P)
MOV R7,A
INC DPTR
CLR A
MOVC A,@A+DPTR
MOV R6,A
MOV R4,#'0' ; C <- '0'
SOMA: ; N <- N-R
CLR C
MOV A,R2
SUBB A,R6
MOV R2,A
MOV A,R3
SUBB A,R7
MOV R3,A
JC SAIDA ; If < 0 goto SAIDA
INC R4 ; If > 0 then C <- C +1
SJMP SOMA ; goto SOMA
SAIDA:
MOV A,R4
MOV @R0,A ;TABOUT (POUT) <- C
MOV A,R2
ADD A,R6 ; N=N+R
MOV R2,A
MOV A,R3
ADDC A,R7
MOV R3,A
INC R0 ; PSAIDA=PSAIDA +1
CLR A
MOVC A,@A+DPTR
CJNE A,#1,INCREMENTA ; TAB(P) = 1 ?
RET ; If yes, END
INCREMENTA: ; If No, P <- P+1
INC DPTR
LJMP COM1 ; goto COM1
TAB:
DW 10000
DW 1000
DW 100
DW 10
DW 1



Related topics:
8051 Program - 16 bit hex to bcd   |   8051 Program - bcd byte   |   8051 Program - byte to ascii   |   8051 Program - 5 digit decimal to binary   |   8051 Program - memory subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines

List of topics: 8051

8051 Program - bcd byte

;** Function: bcd_to_byte
;** Purpose: Convert a two-byte BCD into a single byte
;** Input: A = Hi byte to convert (ASCII 0x30-0x39,0x41-0x46)
;** R0 = Lo byte to convert (ASCII 0x30-0x39,0x41-0x46)
;** Output: A = Converted value (binary 0x00-0xFF)
;** Destroyed Registers: None
bcd_to_byte:
XCH A,R0
SUBB A,#30h
JNB ACC.4,bcd_to_byte_2
SUBB A,#07h
bcd_to_byte_2:
XCH A,R0
SUBB A,#30h
JNB ACC.4,bcd_to_byte_3
SUBB A,#07h
bcd_to_byte_3:
SWAP A
ORL A,R0
RET



;** Function: byte_to_bcd
;** Purpose: Convert a single byte into two BCD digits
;** Input: A = Byte to convert (0x00-0xFF)
;** Output: A = High nibble (ASCII 0x30-0x39,0x41-0x46)
;** R0 = Low nibble (ASCII 0x30-0x39, 0x41-0x46)
;** Destroyed Registers: None
byte_to_bcd:
MOV R0,A
ANL A,#0Fh
ADD A,#0F6h
JNC byte_to_bcd_2
ADD A,#07h
byte_to_bcd_2:
ADD A,#3Ah
XCH A,R0
SWAP A
ANL A,#0Fh
ADD A,#0F6h
JNC byte_to_bcd_3
ADD A,#07h
byte_to_bcd_3:
ADD A,#3Ah
RET
END



Related topics:
8051 Program - 16 bit hex to bcd   |   8051 Program - 16 bit binary to ascii   |   8051 Program - byte to ascii   |   8051 Program - 5 digit decimal to binary   |   8051 Program - memory subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines

List of topics: 8051

8051 Program - 16 bit hex to bcd

; This routine is for 16 bit Hex to BCD conversion
; Accepts a 16 bit binary number in R1,R2 and returns 5 digit BCD in R7,R6,R5,R4,R3( upto 64K )
ORG 0H
Hex2BCD:
MOV R1,#0fFH; MSByte
MOV R2,#0FFH; LSByte
MOV R3,#00D
MOV R4,#00D
MOV R5,#00D
MOV R6,#00D
MOV R7,#00D
MOV B,#10D
MOV A,R2
DIV AB
MOV R3,B
MOV B,#10; R7,R6,R5,R4,R3
DIV AB
MOV R4,B
MOV R5,A
CJNE R1,#0H,HIGH_BYTE; CHECK FOR HIGH BYTE
SJMP ENDD
HIGH_BYTE:
MOV A,#6
ADD A,R3
MOV B,#10
DIV AB
MOV R3,B
ADD A,#5
ADD A,R4
MOV B,#10
DIV AB
MOV R4,B
ADD A,#2
ADD A,R5
MOV B,#10
DIV AB
MOV R5,B
CJNE R6,#00D,ADD_IT
SJMP CONTINUE
ADD_IT:
ADD A,R6
CONTINUE:
MOV R6,A
DJNZ R1,HIGH_BYTE
MOV B, #10D
MOV A,R6
DIV AB
MOV R6,B
MOV R7,A
ENDD:
SJMP $
END



Related topics:
8051 Program - bcd byte   |   8051 Program - 16 bit binary to ascii   |   8051 Program - byte to ascii   |   8051 Program - 5 digit decimal to binary   |   8051 Program - memory subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines

List of topics: 8051