SlideShare a Scribd company logo
1 of 1
SQUARE WAVE – WITH TIMER MODES - S/W

ORG 0000H                                  DELAY:MOV TH0,#01H
MOV TMOD,#01H                              MOV TL0,#00H
B1:SETB P2.1                               SETB TR0
ACALL DELAY                                TARGET:JNB TF0,TARGET
CLR P2.1                                   CLR TR0
ACALL DELAY                                CLR TF0
SJMP B1                                    RET
                                           END

SQUARE WAVE – WITH OUT TIMER MODES - S/W

ORG 0000h                                  DELAY:MOV R0,0FFH
B1:SETB P2.1                               STEP:DJNZ R0,STEP
ACALL DELAY                                RET
CLR P2.1                                   END
ACALL DELAY
SJMP B1


SAWTOOTH WAVE – 8051 H/W

MOV DPTR,#E803                             MOV DPTR,#E800
MOV A,#80                                  AGAIN:MOVX @DPTR,A
MOVX @DPTR,A                               INC A
CLR A                                      SJMP AGAIN – 800A


TRIANGULAR WAVE – 8051 H/W

MOV DPTR,#E803                             CLR A
MOV A,#80                                  MOV DPTR,#E800
MOVX @DPTR,A                               S2:MOVX @DPTR,A
START:CLR A                                DEC A
MOV DPTR,#E800                             JNZ S2 - 8012
S1:MOVX @DPTR,A                            SJMP START – 8006
INC A
JNZ S1 – 800A

More Related Content

What's hot

Case Study- Electrical Safety Violation
Case Study- Electrical Safety ViolationCase Study- Electrical Safety Violation
Case Study- Electrical Safety Violation
Aritra Sarkar
 
Angie melisa suarez circuitos ejercicios
Angie melisa suarez circuitos ejerciciosAngie melisa suarez circuitos ejercicios
Angie melisa suarez circuitos ejercicios
Melizitha Zolo Verde
 
2.3 sequantial logic circuit
2.3 sequantial logic circuit2.3 sequantial logic circuit
2.3 sequantial logic circuit
Wan Afirah
 
Ee2 chapter17 monstable_operation
Ee2 chapter17 monstable_operationEe2 chapter17 monstable_operation
Ee2 chapter17 monstable_operation
CK Yang
 

What's hot (20)

Timer
TimerTimer
Timer
 
Case Study- Electrical Safety Violation
Case Study- Electrical Safety ViolationCase Study- Electrical Safety Violation
Case Study- Electrical Safety Violation
 
Angie melisa suarez circuitos ejercicios
Angie melisa suarez circuitos ejerciciosAngie melisa suarez circuitos ejercicios
Angie melisa suarez circuitos ejercicios
 
000682
000682000682
000682
 
K factor >1 does not ensure unconditional stability !
K factor >1 does not ensure unconditional stability !K factor >1 does not ensure unconditional stability !
K factor >1 does not ensure unconditional stability !
 
Script
ScriptScript
Script
 
STAN Tool overview
STAN Tool overviewSTAN Tool overview
STAN Tool overview
 
Switched reluctance motor speed control using microcontroller
Switched reluctance motor speed control using microcontrollerSwitched reluctance motor speed control using microcontroller
Switched reluctance motor speed control using microcontroller
 
8051 experiments1
8051 experiments18051 experiments1
8051 experiments1
 
Layout for Approval-17
Layout for Approval-17Layout for Approval-17
Layout for Approval-17
 
Bolascriollas
BolascriollasBolascriollas
Bolascriollas
 
Control relay
Control relayControl relay
Control relay
 
2.3 sequantial logic circuit
2.3 sequantial logic circuit2.3 sequantial logic circuit
2.3 sequantial logic circuit
 
Transistores
TransistoresTransistores
Transistores
 
Flip flop
Flip flopFlip flop
Flip flop
 
earth mat
earth matearth mat
earth mat
 
Flip flops
Flip flopsFlip flops
Flip flops
 
Ee2 chapter17 monstable_operation
Ee2 chapter17 monstable_operationEe2 chapter17 monstable_operation
Ee2 chapter17 monstable_operation
 
DPLL PRESENTATION
DPLL PRESENTATIONDPLL PRESENTATION
DPLL PRESENTATION
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital Electronics
 

Viewers also liked

L6 planning questions
L6 planning questionsL6 planning questions
L6 planning questions
SHS Geog
 
Родинский муниципальный район Алтайского края
Родинский муниципальный район Алтайского краяРодинский муниципальный район Алтайского края
Родинский муниципальный район Алтайского края
a-dolgih
 
งานนำเสนอ สรุปประเด็น
งานนำเสนอ สรุปประเด็นงานนำเสนอ สรุปประเด็น
งานนำเสนอ สรุปประเด็น
Ann Pawinee
 

Viewers also liked (20)

Why analytics?
Why analytics?Why analytics?
Why analytics?
 
Matrix new 2 odigies
Matrix new 2 odigiesMatrix new 2 odigies
Matrix new 2 odigies
 
2013.04.15 新聞剪報
2013.04.15 新聞剪報2013.04.15 新聞剪報
2013.04.15 新聞剪報
 
L6 planning questions
L6 planning questionsL6 planning questions
L6 planning questions
 
Aparna
AparnaAparna
Aparna
 
Родинский муниципальный район Алтайского края
Родинский муниципальный район Алтайского краяРодинский муниципальный район Алтайского края
Родинский муниципальный район Алтайского края
 
Transactional vs. Relational Business
Transactional vs. Relational BusinessTransactional vs. Relational Business
Transactional vs. Relational Business
 
28th April 2015 - “Workers’ Memorial Day”: International Panel Program
28th April 2015 - “Workers’ Memorial Day”: International Panel Program28th April 2015 - “Workers’ Memorial Day”: International Panel Program
28th April 2015 - “Workers’ Memorial Day”: International Panel Program
 
Version 15 Final WCC Annual ReportV15_HR_p1-28
Version 15 Final WCC Annual ReportV15_HR_p1-28Version 15 Final WCC Annual ReportV15_HR_p1-28
Version 15 Final WCC Annual ReportV15_HR_p1-28
 
งานนำเสนอ สรุปประเด็น
งานนำเสนอ สรุปประเด็นงานนำเสนอ สรุปประเด็น
งานนำเสนอ สรุปประเด็น
 
Kedo Technology
Kedo TechnologyKedo Technology
Kedo Technology
 
Sergio galan. actividad 1
Sergio galan. actividad 1Sergio galan. actividad 1
Sergio galan. actividad 1
 
An alarming increase of turtle strandings at Zakynthos. Touliatou S., Tsaros...
An alarming increase of turtle strandings at Zakynthos.  Touliatou S., Tsaros...An alarming increase of turtle strandings at Zakynthos.  Touliatou S., Tsaros...
An alarming increase of turtle strandings at Zakynthos. Touliatou S., Tsaros...
 
Αξιολόγηση μειοβενθικού τροφικού πλέγματος σε λιβάδια θαλάσσιων φενερόγαμων σ...
Αξιολόγηση μειοβενθικού τροφικού πλέγματος σε λιβάδια θαλάσσιων φενερόγαμων σ...Αξιολόγηση μειοβενθικού τροφικού πλέγματος σε λιβάδια θαλάσσιων φενερόγαμων σ...
Αξιολόγηση μειοβενθικού τροφικού πλέγματος σε λιβάδια θαλάσσιων φενερόγαμων σ...
 
Глобальные технологические тренды (НИУ-ВШЭ)
Глобальные технологические тренды (НИУ-ВШЭ)Глобальные технологические тренды (НИУ-ВШЭ)
Глобальные технологические тренды (НИУ-ВШЭ)
 
Modélisation de la dynamique d’occupation du sol par réseaux de neurones
Modélisation de la dynamique d’occupation du sol par réseaux de neuronesModélisation de la dynamique d’occupation du sol par réseaux de neurones
Modélisation de la dynamique d’occupation du sol par réseaux de neurones
 
Скоринг в микрофинансовой организации
Скоринг в микрофинансовой организацииСкоринг в микрофинансовой организации
Скоринг в микрофинансовой организации
 
Can you explain #fashiontech to me?
Can you explain #fashiontech to me? Can you explain #fashiontech to me?
Can you explain #fashiontech to me?
 
Les implants dentaires
Les implants dentairesLes implants dentaires
Les implants dentaires
 
Pengendalian penyimpangan sosial - SMP
Pengendalian penyimpangan sosial - SMPPengendalian penyimpangan sosial - SMP
Pengendalian penyimpangan sosial - SMP
 

Similar to 3rd

PPI Modes.pptx
PPI Modes.pptxPPI Modes.pptx
PPI Modes.pptx
HebaEng
 
Micro p test
Micro p testMicro p test
Micro p test
nurhelmi
 
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
 
Presentation on dtmf based ROBO car
Presentation on dtmf based ROBO carPresentation on dtmf based ROBO car
Presentation on dtmf based ROBO car
Neeraj Khatri
 
Sereial com. ppt
Sereial com. pptSereial com. ppt
Sereial com. ppt
gaurav5345
 
Alive human detector
Alive human detectorAlive human detector
Alive human detector
Ankush Tayade
 

Similar to 3rd (20)

PPI Modes.pptx
PPI Modes.pptxPPI Modes.pptx
PPI Modes.pptx
 
Micro p test
Micro p testMicro p test
Micro p test
 
Microcontroller 8051 soft
Microcontroller 8051  softMicrocontroller 8051  soft
Microcontroller 8051 soft
 
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
 
presentation on dtmf
presentation on dtmfpresentation on dtmf
presentation on dtmf
 
MICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptx
MICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptxMICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptx
MICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptx
 
Presentation on dtmf based ROBO car
Presentation on dtmf based ROBO carPresentation on dtmf based ROBO car
Presentation on dtmf based ROBO car
 
Sereial com. ppt
Sereial com. pptSereial com. ppt
Sereial com. ppt
 
Alive human detector
Alive human detectorAlive human detector
Alive human detector
 
WA1200-3 CODIGO DE FALLAS.ppt
WA1200-3 CODIGO DE FALLAS.pptWA1200-3 CODIGO DE FALLAS.ppt
WA1200-3 CODIGO DE FALLAS.ppt
 
8051 Instruction Set
8051 Instruction Set8051 Instruction Set
8051 Instruction Set
 
8051 TIMER COUNTER SERIAL COMM. INTERUPT PROGRAMMING.pdf
8051 TIMER COUNTER SERIAL COMM. INTERUPT PROGRAMMING.pdf8051 TIMER COUNTER SERIAL COMM. INTERUPT PROGRAMMING.pdf
8051 TIMER COUNTER SERIAL COMM. INTERUPT PROGRAMMING.pdf
 
Rfconnext Pmtl Ddr Applications
Rfconnext Pmtl Ddr ApplicationsRfconnext Pmtl Ddr Applications
Rfconnext Pmtl Ddr Applications
 
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
 
Sfp(ft 901 b-m-lc02)-datasheet_ver_1.1
Sfp(ft 901 b-m-lc02)-datasheet_ver_1.1Sfp(ft 901 b-m-lc02)-datasheet_ver_1.1
Sfp(ft 901 b-m-lc02)-datasheet_ver_1.1
 
SFP(FT-901B-M-LC02)_DataSheet_ver_1.1
SFP(FT-901B-M-LC02)_DataSheet_ver_1.1SFP(FT-901B-M-LC02)_DataSheet_ver_1.1
SFP(FT-901B-M-LC02)_DataSheet_ver_1.1
 
Sfp(ft 901 b-s-lc20)-datasheet_ver_1.1
Sfp(ft 901 b-s-lc20)-datasheet_ver_1.1Sfp(ft 901 b-s-lc20)-datasheet_ver_1.1
Sfp(ft 901 b-s-lc20)-datasheet_ver_1.1
 
SFP(FT-901B-S-LC20)_DataSheet_ver_1.1
SFP(FT-901B-S-LC20)_DataSheet_ver_1.1SFP(FT-901B-S-LC20)_DataSheet_ver_1.1
SFP(FT-901B-S-LC20)_DataSheet_ver_1.1
 
Serial communication
Serial communicationSerial communication
Serial communication
 
Sfp(ft 901 a-m-lc02)-datasheet_ver_1.1
Sfp(ft 901 a-m-lc02)-datasheet_ver_1.1Sfp(ft 901 a-m-lc02)-datasheet_ver_1.1
Sfp(ft 901 a-m-lc02)-datasheet_ver_1.1
 

3rd

  • 1. SQUARE WAVE – WITH TIMER MODES - S/W ORG 0000H DELAY:MOV TH0,#01H MOV TMOD,#01H MOV TL0,#00H B1:SETB P2.1 SETB TR0 ACALL DELAY TARGET:JNB TF0,TARGET CLR P2.1 CLR TR0 ACALL DELAY CLR TF0 SJMP B1 RET END SQUARE WAVE – WITH OUT TIMER MODES - S/W ORG 0000h DELAY:MOV R0,0FFH B1:SETB P2.1 STEP:DJNZ R0,STEP ACALL DELAY RET CLR P2.1 END ACALL DELAY SJMP B1 SAWTOOTH WAVE – 8051 H/W MOV DPTR,#E803 MOV DPTR,#E800 MOV A,#80 AGAIN:MOVX @DPTR,A MOVX @DPTR,A INC A CLR A SJMP AGAIN – 800A TRIANGULAR WAVE – 8051 H/W MOV DPTR,#E803 CLR A MOV A,#80 MOV DPTR,#E800 MOVX @DPTR,A S2:MOVX @DPTR,A START:CLR A DEC A MOV DPTR,#E800 JNZ S2 - 8012 S1:MOVX @DPTR,A SJMP START – 8006 INC A JNZ S1 – 800A