SlideShare a Scribd company logo
8051- Microcontroller Experiments

Exp No: 17

AIM:

        To perform 8 bit arithmetic operations using 8051 microcontroller.
               A) Addition
               B) Subtraction
               C) Multiplication
               D) Division


ADDITION

               MOV R0,#00
               MOV A,#DATA1
               ADD A, #DATA2
               JNC LABEL
               INC R0
LABEL:         MOV DPTR,#4150
               MOVX @DPTR,A
               INC DPTR
               MOV A,R0
               MOVX @DPTR,A
HERE:          SJMP HERE




SUBTRACTION


               CLR C
               MOV B,#00
               MOV A,#DATA1
               SUBB A,#DATA2
               JNC LABEL
               CPL A
               INC A
               INC B
LABEL:         MOV DPTR,#4150
               MOVX @DPTR, A
               INC DPTR
               MOV A,B
               MOVX @DPTR,A
HERE:          SJMP HERE
MULTIPLICATION

           MOV A, #DATA1
           MOV B, A
           MOV A, #DATA2
           MUL AB
           MOV DPTR, #4150
           MOVX @DPTR, A
           INC DPTR
           MOV A, B
           MOVX @DPTR, A
LOOP:      SJMP LOOP


DIVISION


           MOV A, #DATA1
           MOV B,A
           MOV A, #DATA2
           DIV AB
           MOV DPTR, #4150
           MOVX @DPTR, A
           INC DPTR
           MOV A, B
           MOV @DPTR, A
LOOP       SJMP LOOP
EXP NO: 18) INTERFACING OF DAC (Digital to Analog Converter)FOR
GENERATIG WAVEFORMS


18 A) SQUARE WAVE GENERATION

AIM.

        To generate square wave using DAC.



PROGRAM



                            START            MOV DPTR,#FFC8
                                             MOV A,#00
                                             MOVX @DPTR,A
                                             LCALL DELAY
                                             MOV    A,#FF
                                             MOVX @DPTR,A
                                             LCALL DELAY
                                             LJMP   START
                            DELAY            MOV    R1, #05
                            LOOP             MOV R2, #FF
                            HERE             DJNZ   R2, HERE
                                             DJNZ   R1, LOOP
                                             RET
                                             .



18 B) Generation of sawtooth wave

Aim

       To create a sawtooth wave using DAC

Program

                                             MOV DPTR, #FFC8
                                             MOV A,#00
                            LOOP:            MOVX @DPTR,A
                                             INC A
                                             SJMP LOOP
18 C) Generation of triangular wave


AIM

      To generate triangular waveform using DAC.


Program

                                        MOV DPTR, #FFC8
                           START        MOV A, #00
                           LOOP1        MOV @DPTR,A
                                        INC A
                                        JNZ LOOP1
                                        MOV A, #FF
                           LOOP2        MOVX @DPTR,A
                                        DEC A
                                        JNZ LOOP2
                                        LJMP START
Exp No: 19 ) Stepper Motor Interfacing



Aim


To interface the stepper motor with 8051 and run it in clockwise and anticlockwise
directions.


Program


Start: MOV          DPTR,#4500
       MOV          R0,#04H
JO : MOVX           A,@DPTR
       PUSH         DPH
       PUSH         DPL
       MOV          DPTR,#FFC0
       MOV          R2,#04
       MOV          R1,#0F
DLY1: MOV           R3,#0F
DLY: DJNZ           R3,DLY
       DJNZ         R1,DLY1
       DJNZ         R2,DLY1
       MOVX         @DPTR,A
       POP          DPL
       POP          DPH
       INC          DPTR
       DJNZ         R0,JO
       SJMP         START

Address For Clockwise For
        Rotation      Anticlockwise
                      Rotation
4500    08            08

4501      01             02

4502      04             04

4503      02             01
Clock wise                      Anticlock wise
Step A1      A2   B1   B2       Step A1 A2       B1   B2
1     1      0    0    0    8   1     1    0     0    0    8
2     0      0    0    1    1   2     0    0     1    0    2
3     0      1    0    0    4   3     0    1     0    0    4
4     0      0    1    0    2   4     0    0     0    1    1

More Related Content

What's hot

Trapatt diode
Trapatt diodeTrapatt diode
Trapatt diode
Ankit Pandey
 
Types of MOSFET Applications and Working Operation
Types of MOSFET Applications and Working OperationTypes of MOSFET Applications and Working Operation
Types of MOSFET Applications and Working Operation
Edgefxkits & Solutions
 
Power mosfet characteristics
Power mosfet characteristicsPower mosfet characteristics
Power mosfet characteristics
sanu singh
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
Sudhanshu Janwadkar
 
EEP306: pulse width modulation
EEP306: pulse width modulation EEP306: pulse width modulation
EEP306: pulse width modulation
Umang Gupta
 
Driving large capacitive loads
Driving large capacitive loadsDriving large capacitive loads
Driving large capacitive loads
Ravi Selvaraj
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller ppt
Rahul Kumar
 
Working of Microwave Tubes and Semiconductor Devices, Unit 2 DECE - C18 SBTET
Working of Microwave Tubes  and  Semiconductor Devices, Unit 2 DECE - C18 SBTETWorking of Microwave Tubes  and  Semiconductor Devices, Unit 2 DECE - C18 SBTET
Working of Microwave Tubes and Semiconductor Devices, Unit 2 DECE - C18 SBTET
janakiravi
 
waveguides-ppt
waveguides-pptwaveguides-ppt
waveguides-ppt
ATTO RATHORE
 
Analog Electronics interview and viva questions.pdf
Analog Electronics interview and viva questions.pdfAnalog Electronics interview and viva questions.pdf
Analog Electronics interview and viva questions.pdf
Engineering Funda
 
A presentation on inverter by manoj
A presentation on inverter by manojA presentation on inverter by manoj
A presentation on inverter by manoj
IACM SmartLearn Ltd.
 
555 Timer (detailed presentation)
555 Timer (detailed presentation)555 Timer (detailed presentation)
555 Timer (detailed presentation)
Tanish Gupta
 
Power Electronics - Thyristor Commutation
Power Electronics - Thyristor CommutationPower Electronics - Thyristor Commutation
Power Electronics - Thyristor Commutation
Burdwan University
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
Pantech ProLabs India Pvt Ltd
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 Microcontroller
Sudhanshu Janwadkar
 
MICROWAVE TUBES.ppt
MICROWAVE TUBES.pptMICROWAVE TUBES.ppt
MICROWAVE TUBES.ppt
PrathyushaReddy358143
 
Microstrip TL 1st 3
Microstrip TL 1st 3Microstrip TL 1st 3
Microstrip TL 1st 3
HIMANSHU DIWAKAR
 
Chebyshev filter
Chebyshev filterChebyshev filter
Chebyshev filter
MOHAMMAD AKRAM
 
Chapter 1 - PWM DC-DC Converter.pdf
Chapter 1 - PWM DC-DC Converter.pdfChapter 1 - PWM DC-DC Converter.pdf
Chapter 1 - PWM DC-DC Converter.pdf
benson215
 
(D/A) and (A/D)conversion
(D/A) and (A/D)conversion(D/A) and (A/D)conversion
(D/A) and (A/D)conversion
Praveen Kumar
 

What's hot (20)

Trapatt diode
Trapatt diodeTrapatt diode
Trapatt diode
 
Types of MOSFET Applications and Working Operation
Types of MOSFET Applications and Working OperationTypes of MOSFET Applications and Working Operation
Types of MOSFET Applications and Working Operation
 
Power mosfet characteristics
Power mosfet characteristicsPower mosfet characteristics
Power mosfet characteristics
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
EEP306: pulse width modulation
EEP306: pulse width modulation EEP306: pulse width modulation
EEP306: pulse width modulation
 
Driving large capacitive loads
Driving large capacitive loadsDriving large capacitive loads
Driving large capacitive loads
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller ppt
 
Working of Microwave Tubes and Semiconductor Devices, Unit 2 DECE - C18 SBTET
Working of Microwave Tubes  and  Semiconductor Devices, Unit 2 DECE - C18 SBTETWorking of Microwave Tubes  and  Semiconductor Devices, Unit 2 DECE - C18 SBTET
Working of Microwave Tubes and Semiconductor Devices, Unit 2 DECE - C18 SBTET
 
waveguides-ppt
waveguides-pptwaveguides-ppt
waveguides-ppt
 
Analog Electronics interview and viva questions.pdf
Analog Electronics interview and viva questions.pdfAnalog Electronics interview and viva questions.pdf
Analog Electronics interview and viva questions.pdf
 
A presentation on inverter by manoj
A presentation on inverter by manojA presentation on inverter by manoj
A presentation on inverter by manoj
 
555 Timer (detailed presentation)
555 Timer (detailed presentation)555 Timer (detailed presentation)
555 Timer (detailed presentation)
 
Power Electronics - Thyristor Commutation
Power Electronics - Thyristor CommutationPower Electronics - Thyristor Commutation
Power Electronics - Thyristor Commutation
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 Microcontroller
 
MICROWAVE TUBES.ppt
MICROWAVE TUBES.pptMICROWAVE TUBES.ppt
MICROWAVE TUBES.ppt
 
Microstrip TL 1st 3
Microstrip TL 1st 3Microstrip TL 1st 3
Microstrip TL 1st 3
 
Chebyshev filter
Chebyshev filterChebyshev filter
Chebyshev filter
 
Chapter 1 - PWM DC-DC Converter.pdf
Chapter 1 - PWM DC-DC Converter.pdfChapter 1 - PWM DC-DC Converter.pdf
Chapter 1 - PWM DC-DC Converter.pdf
 
(D/A) and (A/D)conversion
(D/A) and (A/D)conversion(D/A) and (A/D)conversion
(D/A) and (A/D)conversion
 

Viewers also liked

Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiSolution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidi
Muhammad Abdullah
 
8051 Assembly Language Programming
8051 Assembly Language Programming8051 Assembly Language Programming
8051 Assembly Language Programming
Ravikumar Tiwari
 
Homework 2 sol
Homework 2 solHomework 2 sol
Homework 2 sol
tt_aljobory
 
List of 8085 programs
List of 8085 programsList of 8085 programs
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...
manishpatel_79
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
Dr.YNM
 

Viewers also liked (6)

Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiSolution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidi
 
8051 Assembly Language Programming
8051 Assembly Language Programming8051 Assembly Language Programming
8051 Assembly Language Programming
 
Homework 2 sol
Homework 2 solHomework 2 sol
Homework 2 sol
 
List of 8085 programs
List of 8085 programsList of 8085 programs
List of 8085 programs
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 

Similar to 8051 experiments1

3rd
3rd3rd
Microcontroller 8051 soft
Microcontroller 8051  softMicrocontroller 8051  soft
Microcontroller 8051 soft
baluusa8
 
Maicrocontroller lab basic experiments
Maicrocontroller lab basic experimentsMaicrocontroller lab basic experiments
Maicrocontroller lab basic experiments
Noor Tahasildar
 
Maicrocontroller lab basic experiments
Maicrocontroller lab basic experimentsMaicrocontroller lab basic experiments
Maicrocontroller lab basic experiments
noorahamed tahasildar
 
Maicrocontroller lab basic experiments
Maicrocontroller lab basic experiments Maicrocontroller lab basic experiments
Maicrocontroller lab basic experiments
noorahamed tahasildar
 
Micro Controller lab basic experiments (1)
Micro Controller lab basic experiments (1)Micro Controller lab basic experiments (1)
Micro Controller lab basic experiments (1)
Noor Tahasildar
 
Microcontroller 8051- soft.ppt
Microcontroller 8051- soft.pptMicrocontroller 8051- soft.ppt
Microcontroller 8051- soft.ppt
steffydean
 
Micro p test
Micro p testMicro p test
Micro p test
nurhelmi
 
CoffeeScript for the Rubyist
CoffeeScript for the RubyistCoffeeScript for the Rubyist
CoffeeScript for the Rubyist
Mark
 
CoffeeScript for the Rubyist
CoffeeScript for the RubyistCoffeeScript for the Rubyist
CoffeeScript for the Rubyist
Mark
 
PPI Modes.pptx
PPI Modes.pptxPPI Modes.pptx
PPI Modes.pptx
HebaEng
 
Embedded Systems Training & Live Projects @Technogroovy Systems India Pvt Ltd
Embedded Systems Training & Live Projects @Technogroovy Systems India Pvt Ltd Embedded Systems Training & Live Projects @Technogroovy Systems India Pvt Ltd
Embedded Systems Training & Live Projects @Technogroovy Systems India Pvt Ltd
Technogroovy India
 
Buy Embedded Systems Projects Online,Buy B tech Projects Online
Buy Embedded Systems Projects Online,Buy B tech Projects OnlineBuy Embedded Systems Projects Online,Buy B tech Projects Online
Buy Embedded Systems Projects Online,Buy B tech Projects Online
Technogroovy
 
Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051
logesh waran
 
Automatic light project
Automatic light projectAutomatic light project
Automatic light project
kspece0928
 
Microprocessor Week 8: Subroutine
Microprocessor Week 8: Subroutine Microprocessor Week 8: Subroutine
Microprocessor Week 8: Subroutine
Arkhom Jodtang
 
Alp 8051
Alp 8051Alp 8051
Applications of microcontroller(8051)
Applications of microcontroller(8051) Applications of microcontroller(8051)
Applications of microcontroller(8051)
vijaydeepakg
 
Programs using Microcontrollers.ppt
Programs using Microcontrollers.pptPrograms using Microcontrollers.ppt
Programs using Microcontrollers.ppt
SasiBhushan22
 
Https _doc-0o-c4-apps-viewer.googleusercontent
Https  _doc-0o-c4-apps-viewer.googleusercontent Https  _doc-0o-c4-apps-viewer.googleusercontent
Https _doc-0o-c4-apps-viewer.googleusercontent
vijaydeepakg
 

Similar to 8051 experiments1 (20)

3rd
3rd3rd
3rd
 
Microcontroller 8051 soft
Microcontroller 8051  softMicrocontroller 8051  soft
Microcontroller 8051 soft
 
Maicrocontroller lab basic experiments
Maicrocontroller lab basic experimentsMaicrocontroller lab basic experiments
Maicrocontroller lab basic experiments
 
Maicrocontroller lab basic experiments
Maicrocontroller lab basic experimentsMaicrocontroller lab basic experiments
Maicrocontroller lab basic experiments
 
Maicrocontroller lab basic experiments
Maicrocontroller lab basic experiments Maicrocontroller lab basic experiments
Maicrocontroller lab basic experiments
 
Micro Controller lab basic experiments (1)
Micro Controller lab basic experiments (1)Micro Controller lab basic experiments (1)
Micro Controller lab basic experiments (1)
 
Microcontroller 8051- soft.ppt
Microcontroller 8051- soft.pptMicrocontroller 8051- soft.ppt
Microcontroller 8051- soft.ppt
 
Micro p test
Micro p testMicro p test
Micro p test
 
CoffeeScript for the Rubyist
CoffeeScript for the RubyistCoffeeScript for the Rubyist
CoffeeScript for the Rubyist
 
CoffeeScript for the Rubyist
CoffeeScript for the RubyistCoffeeScript for the Rubyist
CoffeeScript for the Rubyist
 
PPI Modes.pptx
PPI Modes.pptxPPI Modes.pptx
PPI Modes.pptx
 
Embedded Systems Training & Live Projects @Technogroovy Systems India Pvt Ltd
Embedded Systems Training & Live Projects @Technogroovy Systems India Pvt Ltd Embedded Systems Training & Live Projects @Technogroovy Systems India Pvt Ltd
Embedded Systems Training & Live Projects @Technogroovy Systems India Pvt Ltd
 
Buy Embedded Systems Projects Online,Buy B tech Projects Online
Buy Embedded Systems Projects Online,Buy B tech Projects OnlineBuy Embedded Systems Projects Online,Buy B tech Projects Online
Buy Embedded Systems Projects Online,Buy B tech Projects Online
 
Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051
 
Automatic light project
Automatic light projectAutomatic light project
Automatic light project
 
Microprocessor Week 8: Subroutine
Microprocessor Week 8: Subroutine Microprocessor Week 8: Subroutine
Microprocessor Week 8: Subroutine
 
Alp 8051
Alp 8051Alp 8051
Alp 8051
 
Applications of microcontroller(8051)
Applications of microcontroller(8051) Applications of microcontroller(8051)
Applications of microcontroller(8051)
 
Programs using Microcontrollers.ppt
Programs using Microcontrollers.pptPrograms using Microcontrollers.ppt
Programs using Microcontrollers.ppt
 
Https _doc-0o-c4-apps-viewer.googleusercontent
Https  _doc-0o-c4-apps-viewer.googleusercontent Https  _doc-0o-c4-apps-viewer.googleusercontent
Https _doc-0o-c4-apps-viewer.googleusercontent
 

More from tt_aljobory

Lecture12
Lecture12Lecture12
Lecture12
tt_aljobory
 
Lecture11
Lecture11Lecture11
Lecture11
tt_aljobory
 
Lecture10
Lecture10Lecture10
Lecture10
tt_aljobory
 
Lecture9
Lecture9Lecture9
Lecture9
tt_aljobory
 
Lecture7
Lecture7Lecture7
Lecture7
tt_aljobory
 
Lecture8
Lecture8Lecture8
Lecture8
tt_aljobory
 
Lecture6
Lecture6Lecture6
Lecture6
tt_aljobory
 
Lecture5
Lecture5Lecture5
Lecture5
tt_aljobory
 
Lecture4
Lecture4Lecture4
Lecture4
tt_aljobory
 
Lecture3
Lecture3Lecture3
Lecture3
tt_aljobory
 
Lecture2
Lecture2Lecture2
Lecture2
tt_aljobory
 
Lecture1
Lecture1Lecture1
Lecture1
tt_aljobory
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
tt_aljobory
 
Good example on ga
Good example on gaGood example on ga
Good example on ga
tt_aljobory
 
Lect3
Lect3Lect3
Lect4
Lect4Lect4
Lect4
Lect4Lect4
Above theclouds
Above thecloudsAbove theclouds
Above theclouds
tt_aljobory
 
Inet prog
Inet progInet prog
Inet prog
tt_aljobory
 
Form
FormForm

More from tt_aljobory (20)

Lecture12
Lecture12Lecture12
Lecture12
 
Lecture11
Lecture11Lecture11
Lecture11
 
Lecture10
Lecture10Lecture10
Lecture10
 
Lecture9
Lecture9Lecture9
Lecture9
 
Lecture7
Lecture7Lecture7
Lecture7
 
Lecture8
Lecture8Lecture8
Lecture8
 
Lecture6
Lecture6Lecture6
Lecture6
 
Lecture5
Lecture5Lecture5
Lecture5
 
Lecture4
Lecture4Lecture4
Lecture4
 
Lecture3
Lecture3Lecture3
Lecture3
 
Lecture2
Lecture2Lecture2
Lecture2
 
Lecture1
Lecture1Lecture1
Lecture1
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Good example on ga
Good example on gaGood example on ga
Good example on ga
 
Lect3
Lect3Lect3
Lect3
 
Lect4
Lect4Lect4
Lect4
 
Lect4
Lect4Lect4
Lect4
 
Above theclouds
Above thecloudsAbove theclouds
Above theclouds
 
Inet prog
Inet progInet prog
Inet prog
 
Form
FormForm
Form
 

Recently uploaded

Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 

Recently uploaded (20)

Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 

8051 experiments1

  • 1. 8051- Microcontroller Experiments Exp No: 17 AIM: To perform 8 bit arithmetic operations using 8051 microcontroller. A) Addition B) Subtraction C) Multiplication D) Division ADDITION MOV R0,#00 MOV A,#DATA1 ADD A, #DATA2 JNC LABEL INC R0 LABEL: MOV DPTR,#4150 MOVX @DPTR,A INC DPTR MOV A,R0 MOVX @DPTR,A HERE: SJMP HERE SUBTRACTION CLR C MOV B,#00 MOV A,#DATA1 SUBB A,#DATA2 JNC LABEL CPL A INC A INC B LABEL: MOV DPTR,#4150 MOVX @DPTR, A INC DPTR MOV A,B MOVX @DPTR,A HERE: SJMP HERE
  • 2. MULTIPLICATION MOV A, #DATA1 MOV B, A MOV A, #DATA2 MUL AB MOV DPTR, #4150 MOVX @DPTR, A INC DPTR MOV A, B MOVX @DPTR, A LOOP: SJMP LOOP DIVISION MOV A, #DATA1 MOV B,A MOV A, #DATA2 DIV AB MOV DPTR, #4150 MOVX @DPTR, A INC DPTR MOV A, B MOV @DPTR, A LOOP SJMP LOOP
  • 3. EXP NO: 18) INTERFACING OF DAC (Digital to Analog Converter)FOR GENERATIG WAVEFORMS 18 A) SQUARE WAVE GENERATION AIM. To generate square wave using DAC. PROGRAM START MOV DPTR,#FFC8 MOV A,#00 MOVX @DPTR,A LCALL DELAY MOV A,#FF MOVX @DPTR,A LCALL DELAY LJMP START DELAY MOV R1, #05 LOOP MOV R2, #FF HERE DJNZ R2, HERE DJNZ R1, LOOP RET . 18 B) Generation of sawtooth wave Aim To create a sawtooth wave using DAC Program MOV DPTR, #FFC8 MOV A,#00 LOOP: MOVX @DPTR,A INC A SJMP LOOP
  • 4. 18 C) Generation of triangular wave AIM To generate triangular waveform using DAC. Program MOV DPTR, #FFC8 START MOV A, #00 LOOP1 MOV @DPTR,A INC A JNZ LOOP1 MOV A, #FF LOOP2 MOVX @DPTR,A DEC A JNZ LOOP2 LJMP START
  • 5. Exp No: 19 ) Stepper Motor Interfacing Aim To interface the stepper motor with 8051 and run it in clockwise and anticlockwise directions. Program Start: MOV DPTR,#4500 MOV R0,#04H JO : MOVX A,@DPTR PUSH DPH PUSH DPL MOV DPTR,#FFC0 MOV R2,#04 MOV R1,#0F DLY1: MOV R3,#0F DLY: DJNZ R3,DLY DJNZ R1,DLY1 DJNZ R2,DLY1 MOVX @DPTR,A POP DPL POP DPH INC DPTR DJNZ R0,JO SJMP START Address For Clockwise For Rotation Anticlockwise Rotation 4500 08 08 4501 01 02 4502 04 04 4503 02 01
  • 6. Clock wise Anticlock wise Step A1 A2 B1 B2 Step A1 A2 B1 B2 1 1 0 0 0 8 1 1 0 0 0 8 2 0 0 0 1 1 2 0 0 1 0 2 3 0 1 0 0 4 3 0 1 0 0 4 4 0 0 1 0 2 4 0 0 0 1 1