SlideShare a Scribd company logo
SIMULATION A simulation is a representation of a situation with a similar but simpler model that can easily be manipulated to determine experimental results. Using a simulator can show the eventual real effects of a given situation.  Top view Simulator  Top view Simulator gives an excellent simulation environment for the Industry's most popular 8 bit microcontroller family, MCS 51.  Device Selection
Main Window Once you select the microcontroller, the dialog box disappears leaving behind a blank screen with the Tool Bar and a Menu Bar. MENU BAR
Clear View Window Structure  This is an optimized arrangement where windows are strategically placed in the display. Total display area of the monitor is divided into 5 windows. Windows meant for Program, Register, Internal Data Memory, External Data Memory and SFR Bit Status are placed in the Clear View.
Two LED’s in common anode configuration. LEDf for showing forward direction {P0.0} LEDb for showing reverse direction {P0.1} One 2lineX16 character LCD module. Data lines {P1} EN {P3.3} RW {P3.4} RS {P3.5} Stepper motor {P2}. Buzzer {P0.2}. INTERFACING
INTERFACING A SINGLE LED AT P1.0 AND FLASH IT AFTER A CERTAIN TIME  DELAY
 
$MOD 51  LED EQU P1.0 ORG 0000H BACK:  CLR LED ACALL DELAY  SETB LED ACALL DELAY SETB LED ACALL DELAY SJMP  BACK DELAY:  MOV R1, #100 L3: MOV R2, #100 L2: MOV R3, #57 L1: DJNZ R2, L2 DJNZ R1, L3 RET END PROGRAM :::::::
 
INTERFACING A 2 line X 16 characters LCD 1 2 3 4 5 6 7 8 VSS VCC VEE RS RW EN D0 D1 9 10 11 12 13 14 15 16 D2 D3 D4 D5 D6 D7 LED+ LED-
Block diagram Micro Controller Data RAM Code RAM ROM Data Register Command Register BF CONT  GND  +VCC  BK LED  EN  RS  R/W  D7-D0 RS=0 {COMMAND REG} RS=1 {DATA REG} RW=0 {WRITE} RW=1 {READ} EN=450 ns wide
COMMAND REGISTER PROGRAM FOR WRITING DATA $MOD51 LCD EQU P1 RS EQU P2.0 RW EQU P2.1 EN EQU P2.2 ORG 0000H MOV A, #38H ACALL COMMAND MOV A, #01H ACALL COMMAND MOV A, #80H ACALL COMMAND MOV A, #0EH ACALL COMMAND MOV A, #06H ACALL COMMAND MOV DPTR, #250H LOOP1: CLR A MOVC A, @A+DPTR ACALL DISPLAY ACALL DELAY INC DPTR SJMP LOOP1 COMMAND: MOV LCD, A CLR RS CLR RW SETB EN ACALL DELAY CLR EN RET DISPLAY: MOV LCD, A SETB RS CLR RW SETB EN ACALL DELAY CLR EN RET DELAY: MOV R0, #100 Q0: MOV R1, #100 Q1: MOV R2, #50 Q2: DJNZ R2, Q2 DJNZ R1, Q1 DJNZ R0, Q0 RET ORG 250H MYDATA: DB‘WELCOME TO ALL‘ ,0 END  Command Code 01H 02H 04H 06H 05H 07H 08H 0AH OCH 0EH 0FH 10H 14H 18H 1CH 80H C0H 38H Description Clear display screen Return Home Decrement Cursor(shift cursor to left) Increment Cursor(shift cursor to right) Shift display right Shift display left Display off, cursor off Display off, cursor on Display on, cursor off Display on, cursor not blinking Display on, cursor blinking Shift cursor position to left Shift cursor position to right Shift the entire display to the left Shift the entire display to the right Force cursor to the beginning of 1 st  line Force cursor to the beginning of 2 nd  line 2 lines and 5*7 matrix
INTERFACING OF STEPPER MOTOR Stepper motor allow to control any motion with high precision by counting the number of steps applied to the motor. These are mainly of three types: Unipolar stepper motor Bipolar stepper motor Variable reluctance stepper motor
UNIPOLAR STEPPER MOTOR Unipolar stepper motors are characterized by their center-tapped windings . Speed=  ………………………60……………………… No. STEPS/8*12/Fosc*0xFFFF*[0xFF-TH0] There are three ways of driving the motor. Full Step Mode Half Step Mode Half Step Sequence
Full Step Mode : Only one phase is kept on during the working of stepper PROGRAM FOR REVOLVING A Stepper Motor CONTINUOUSLY $MOD 51 ORG 0000H MOV A, #88H BACK: MOV P2, A RR A ACALL DELAY SJMP BACK DELAY: MOV R0,#255 MOV R1,#200 Q2: DJNZ R1, Q2 Q1: DJNZ R0, Q1 RET END
STEPPER MOTOR DRIVER {ULN2003} ■  Seven darlingtons per package ■  Output current 500 mA per driver  (600 mA peak) ■  Output voltage 50 V this is done to drive the stepper motor by a proper amount of current.
INTERFACING 7-SEGMENT DISPLAY
 
PROGRAM TO DISPLAY 0-9:::: $MOD51 ORG 0000H B1: MOV P1, #0C0H ACALL DELAY MOV P1, #0F9H ACALL DELAY MOV P1, #0A4H ACALL DELAY MOV P1, #0B0H ACALL DELAY MOV P1, #99H ACALL DELAY MOV P1, #92H ACALL DELAY MOV P1, #82H ACALL DELAY MOV P1, #0F8H ACALL DELAY MOV P1, #80H ACALL DELAY MOV P1, #90H ACALL DELAY LJMP B1 DELAY: MOV R0, #100 L1: MOV R1, #100 L2: MOV R2, #57 L3: DJNZ R2, L3 DJNZ R1, L2 DJNZ R0, L1 RET A B C D E F H G COMMON ANODE 0 1 2 3 4 5 6 7 8 9 H  G  F  E  D  C  B  A  HEX VALUE 1  1  0  0  0  0  0  0  0C0 1  1  1  1  1  0  0  1  0F9 1  0  1  0  0  1  0  0  0A4  1  0  1  1  0  0  0  0  99 1  0  0  1  1  0  0  1  0B0 1  0  0  1  0  0  1  0  92 1  0  0  0  0  0  1  0  82  1  1  1  1  1  0  0  0  0F8 1  0  0  0  0  0  0  0  80 1  0  0  1  0  0  0  0  90
PROJECT

More Related Content

What's hot (13)

PDF
Access tablerobko01
Orlin Dimitrov
 
PPTX
77
Ekta Karol
 
PPTX
Blinds
Henry Zhao
 
DOCX
Lampiran 1.programdocx
Lugik kristiyanto
 
PDF
4 channel rf remote controller board manual
Total Project Solutions
 
PDF
Fanuc 10 alarm list
Soekarno Revolusi
 
PDF
Código ASM para LCD Microcontrolador PIC
SENA
 
DOCX
Repair lexia 3 pcb to avoid activation relay, connection failure etc
spobd2
 
PPTX
Non overlapped melay 1010 sequence detector implemented on xilinx spartan 3e kit
Jatin Koshiya
 
PDF
Efapel 01 2012
Estrunfina_azul
 
PDF
DIAGRAMA ELECTRICO DEL MOTOR
Wilmer Ledesma Autotronica
 
DOCX
74LVC1G175GW-Q100H -NXP Semiconductors/Freescale Semiconductor, Inc. - omoele...
OMO
 
PDF
Du mont ra-103-sams-90-3
Témoin De Jah Boanerges
 
Access tablerobko01
Orlin Dimitrov
 
Blinds
Henry Zhao
 
Lampiran 1.programdocx
Lugik kristiyanto
 
4 channel rf remote controller board manual
Total Project Solutions
 
Fanuc 10 alarm list
Soekarno Revolusi
 
Código ASM para LCD Microcontrolador PIC
SENA
 
Repair lexia 3 pcb to avoid activation relay, connection failure etc
spobd2
 
Non overlapped melay 1010 sequence detector implemented on xilinx spartan 3e kit
Jatin Koshiya
 
Efapel 01 2012
Estrunfina_azul
 
DIAGRAMA ELECTRICO DEL MOTOR
Wilmer Ledesma Autotronica
 
74LVC1G175GW-Q100H -NXP Semiconductors/Freescale Semiconductor, Inc. - omoele...
OMO
 
Du mont ra-103-sams-90-3
Témoin De Jah Boanerges
 

Viewers also liked (20)

PPT
Networking
Rashmi
 
PPT
4) databases
techbed
 
PPTX
8051 programming in c
Dr. Ritula Thakur
 
ODP
Beautiful life-1199875131916997-3
Parvesh Gautam
 
PPT
1.microprocessor
raja p
 
PPT
LED basics by Er. Swapnil V. Kaware
Prof. Swapnil V. Kaware
 
PPT
Instruction set class
shiji v r
 
PPTX
Uses Of Wifi
techbed
 
PPT
8085 instruction-set new
Diptarka Bhattacharya
 
PPT
Traffic Lights Controller
Rashmi
 
PPT
1206 Interrupts Of 8085
techbed
 
PPTX
Presentation1.pptx
Ankur Mahajan
 
PPT
Interfacing 8051 with Real World
Dr. Ritula Thakur
 
PDF
1456.base boot
techbed
 
PPT
8051 Microcontroller
Dr. Ritula Thakur
 
PDF
8085 instruction set
Vijay Kumar
 
KEY
Introduction to Microcontrollers
mike parks
 
PPT
Unit 1
techbed
 
PPT
Median filter Implementation using TMS320C6745
Pantech ProLabs India Pvt Ltd
 
KEY
Introduction To Electrical Engineering
mike parks
 
Networking
Rashmi
 
4) databases
techbed
 
8051 programming in c
Dr. Ritula Thakur
 
Beautiful life-1199875131916997-3
Parvesh Gautam
 
1.microprocessor
raja p
 
LED basics by Er. Swapnil V. Kaware
Prof. Swapnil V. Kaware
 
Instruction set class
shiji v r
 
Uses Of Wifi
techbed
 
8085 instruction-set new
Diptarka Bhattacharya
 
Traffic Lights Controller
Rashmi
 
1206 Interrupts Of 8085
techbed
 
Presentation1.pptx
Ankur Mahajan
 
Interfacing 8051 with Real World
Dr. Ritula Thakur
 
1456.base boot
techbed
 
8051 Microcontroller
Dr. Ritula Thakur
 
8085 instruction set
Vijay Kumar
 
Introduction to Microcontrollers
mike parks
 
Unit 1
techbed
 
Median filter Implementation using TMS320C6745
Pantech ProLabs India Pvt Ltd
 
Introduction To Electrical Engineering
mike parks
 
Ad

Similar to Topviewsimulator (20)

PPTX
Applications of microcontroller(8051)
vijaydeepakg
 
PPTX
Lcd interfaing using 8051 and assambly language programming
Vikas Dongre
 
PDF
8051.pdf
MadhuriAnaparthy
 
PPTX
Microcontroller 8051
Patruni Chidananda Sastry
 
PPTX
ee2004Assignment_four_SemB24-25kk25.pptx
chuigary70866
 
PDF
Real Time Embedded System
Vrushali Lanjewar
 
PPT
Microcontroller 8051- soft.ppt
steffydean
 
PDF
Altivar 28 users_manual
Wilder Samo Castillo
 
PDF
Altivar 28 users_manual
Wilder Samo Castillo
 
PPTX
Lcd interfacing with microprocessor 8051
Hasnain Yaseen
 
PPT
Lcd interfacing1
Monica Gunjal
 
PPTX
LCD interfacing
Kshitij Wagle
 
DOCX
Rapport
yahya ayari
 
PDF
Diljit.pdf
diljitnayak1
 
PDF
3.81 inch Amoled(1080x1200) VR Datasheet
Panox Display
 
PPTX
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
Subash Sambath Kumar
 
PPT
Buy Embedded Systems Projects Online,Buy B tech Projects Online
Technogroovy
 
PPT
Emb day2 8051
shivamarya55
 
PDF
Solutionmanual8051microcontrollerbymazidi 131215070701-phpapp02
SURYA DEEPAK
 
Applications of microcontroller(8051)
vijaydeepakg
 
Lcd interfaing using 8051 and assambly language programming
Vikas Dongre
 
Microcontroller 8051
Patruni Chidananda Sastry
 
ee2004Assignment_four_SemB24-25kk25.pptx
chuigary70866
 
Real Time Embedded System
Vrushali Lanjewar
 
Microcontroller 8051- soft.ppt
steffydean
 
Altivar 28 users_manual
Wilder Samo Castillo
 
Altivar 28 users_manual
Wilder Samo Castillo
 
Lcd interfacing with microprocessor 8051
Hasnain Yaseen
 
Lcd interfacing1
Monica Gunjal
 
LCD interfacing
Kshitij Wagle
 
Rapport
yahya ayari
 
Diljit.pdf
diljitnayak1
 
3.81 inch Amoled(1080x1200) VR Datasheet
Panox Display
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
Subash Sambath Kumar
 
Buy Embedded Systems Projects Online,Buy B tech Projects Online
Technogroovy
 
Emb day2 8051
shivamarya55
 
Solutionmanual8051microcontrollerbymazidi 131215070701-phpapp02
SURYA DEEPAK
 
Ad

Recently uploaded (20)

PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPTX
Digital Professionalism and Interpersonal Competence
rutvikgediya1
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PPTX
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
PPTX
Cybersecurity: How to Protect your Digital World from Hackers
vaidikpanda4
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PDF
EXCRETION-STRUCTURE OF NEPHRON,URINE FORMATION
raviralanaresh2
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PPTX
Unlock the Power of Cursor AI: MuleSoft Integrations
Veera Pallapu
 
PPTX
ENGLISH 8 WEEK 3 Q1 - Analyzing the linguistic, historical, andor biographica...
OliverOllet
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
Digital Professionalism and Interpersonal Competence
rutvikgediya1
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
Cybersecurity: How to Protect your Digital World from Hackers
vaidikpanda4
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
Virus sequence retrieval from NCBI database
yamunaK13
 
EXCRETION-STRUCTURE OF NEPHRON,URINE FORMATION
raviralanaresh2
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
Unlock the Power of Cursor AI: MuleSoft Integrations
Veera Pallapu
 
ENGLISH 8 WEEK 3 Q1 - Analyzing the linguistic, historical, andor biographica...
OliverOllet
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 

Topviewsimulator

  • 1. SIMULATION A simulation is a representation of a situation with a similar but simpler model that can easily be manipulated to determine experimental results. Using a simulator can show the eventual real effects of a given situation.  Top view Simulator Top view Simulator gives an excellent simulation environment for the Industry's most popular 8 bit microcontroller family, MCS 51. Device Selection
  • 2. Main Window Once you select the microcontroller, the dialog box disappears leaving behind a blank screen with the Tool Bar and a Menu Bar. MENU BAR
  • 3. Clear View Window Structure This is an optimized arrangement where windows are strategically placed in the display. Total display area of the monitor is divided into 5 windows. Windows meant for Program, Register, Internal Data Memory, External Data Memory and SFR Bit Status are placed in the Clear View.
  • 4. Two LED’s in common anode configuration. LEDf for showing forward direction {P0.0} LEDb for showing reverse direction {P0.1} One 2lineX16 character LCD module. Data lines {P1} EN {P3.3} RW {P3.4} RS {P3.5} Stepper motor {P2}. Buzzer {P0.2}. INTERFACING
  • 5. INTERFACING A SINGLE LED AT P1.0 AND FLASH IT AFTER A CERTAIN TIME DELAY
  • 6.  
  • 7. $MOD 51 LED EQU P1.0 ORG 0000H BACK: CLR LED ACALL DELAY SETB LED ACALL DELAY SETB LED ACALL DELAY SJMP BACK DELAY: MOV R1, #100 L3: MOV R2, #100 L2: MOV R3, #57 L1: DJNZ R2, L2 DJNZ R1, L3 RET END PROGRAM :::::::
  • 8.  
  • 9. INTERFACING A 2 line X 16 characters LCD 1 2 3 4 5 6 7 8 VSS VCC VEE RS RW EN D0 D1 9 10 11 12 13 14 15 16 D2 D3 D4 D5 D6 D7 LED+ LED-
  • 10. Block diagram Micro Controller Data RAM Code RAM ROM Data Register Command Register BF CONT GND +VCC BK LED EN RS R/W D7-D0 RS=0 {COMMAND REG} RS=1 {DATA REG} RW=0 {WRITE} RW=1 {READ} EN=450 ns wide
  • 11. COMMAND REGISTER PROGRAM FOR WRITING DATA $MOD51 LCD EQU P1 RS EQU P2.0 RW EQU P2.1 EN EQU P2.2 ORG 0000H MOV A, #38H ACALL COMMAND MOV A, #01H ACALL COMMAND MOV A, #80H ACALL COMMAND MOV A, #0EH ACALL COMMAND MOV A, #06H ACALL COMMAND MOV DPTR, #250H LOOP1: CLR A MOVC A, @A+DPTR ACALL DISPLAY ACALL DELAY INC DPTR SJMP LOOP1 COMMAND: MOV LCD, A CLR RS CLR RW SETB EN ACALL DELAY CLR EN RET DISPLAY: MOV LCD, A SETB RS CLR RW SETB EN ACALL DELAY CLR EN RET DELAY: MOV R0, #100 Q0: MOV R1, #100 Q1: MOV R2, #50 Q2: DJNZ R2, Q2 DJNZ R1, Q1 DJNZ R0, Q0 RET ORG 250H MYDATA: DB‘WELCOME TO ALL‘ ,0 END Command Code 01H 02H 04H 06H 05H 07H 08H 0AH OCH 0EH 0FH 10H 14H 18H 1CH 80H C0H 38H Description Clear display screen Return Home Decrement Cursor(shift cursor to left) Increment Cursor(shift cursor to right) Shift display right Shift display left Display off, cursor off Display off, cursor on Display on, cursor off Display on, cursor not blinking Display on, cursor blinking Shift cursor position to left Shift cursor position to right Shift the entire display to the left Shift the entire display to the right Force cursor to the beginning of 1 st line Force cursor to the beginning of 2 nd line 2 lines and 5*7 matrix
  • 12. INTERFACING OF STEPPER MOTOR Stepper motor allow to control any motion with high precision by counting the number of steps applied to the motor. These are mainly of three types: Unipolar stepper motor Bipolar stepper motor Variable reluctance stepper motor
  • 13. UNIPOLAR STEPPER MOTOR Unipolar stepper motors are characterized by their center-tapped windings . Speed= ………………………60……………………… No. STEPS/8*12/Fosc*0xFFFF*[0xFF-TH0] There are three ways of driving the motor. Full Step Mode Half Step Mode Half Step Sequence
  • 14. Full Step Mode : Only one phase is kept on during the working of stepper PROGRAM FOR REVOLVING A Stepper Motor CONTINUOUSLY $MOD 51 ORG 0000H MOV A, #88H BACK: MOV P2, A RR A ACALL DELAY SJMP BACK DELAY: MOV R0,#255 MOV R1,#200 Q2: DJNZ R1, Q2 Q1: DJNZ R0, Q1 RET END
  • 15. STEPPER MOTOR DRIVER {ULN2003} ■ Seven darlingtons per package ■ Output current 500 mA per driver (600 mA peak) ■ Output voltage 50 V this is done to drive the stepper motor by a proper amount of current.
  • 17.  
  • 18. PROGRAM TO DISPLAY 0-9:::: $MOD51 ORG 0000H B1: MOV P1, #0C0H ACALL DELAY MOV P1, #0F9H ACALL DELAY MOV P1, #0A4H ACALL DELAY MOV P1, #0B0H ACALL DELAY MOV P1, #99H ACALL DELAY MOV P1, #92H ACALL DELAY MOV P1, #82H ACALL DELAY MOV P1, #0F8H ACALL DELAY MOV P1, #80H ACALL DELAY MOV P1, #90H ACALL DELAY LJMP B1 DELAY: MOV R0, #100 L1: MOV R1, #100 L2: MOV R2, #57 L3: DJNZ R2, L3 DJNZ R1, L2 DJNZ R0, L1 RET A B C D E F H G COMMON ANODE 0 1 2 3 4 5 6 7 8 9 H G F E D C B A HEX VALUE 1 1 0 0 0 0 0 0 0C0 1 1 1 1 1 0 0 1 0F9 1 0 1 0 0 1 0 0 0A4 1 0 1 1 0 0 0 0 99 1 0 0 1 1 0 0 1 0B0 1 0 0 1 0 0 1 0 92 1 0 0 0 0 0 1 0 82 1 1 1 1 1 0 0 0 0F8 1 0 0 0 0 0 0 0 80 1 0 0 1 0 0 0 0 90