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

DOCX
8051 development board project report
TXT
Rota 2
PDF
Apple 1 manual & warranty 1976
PDF
Steppert Motor Interfacing With Specific Angle Entered Through Keypad
PDF
Dtmf control robot manual
PDF
LG 26.5 inch Square Chassis Monitors
PDF
Guia de configuracao_ms9520
DOC
Fanuc 10
8051 development board project report
Rota 2
Apple 1 manual & warranty 1976
Steppert Motor Interfacing With Specific Angle Entered Through Keypad
Dtmf control robot manual
LG 26.5 inch Square Chassis Monitors
Guia de configuracao_ms9520
Fanuc 10

What's hot (13)

PDF
Access tablerobko01
PPTX
PPTX
Blinds
DOCX
Lampiran 1.programdocx
PDF
4 channel rf remote controller board manual
PDF
Fanuc 10 alarm list
PDF
Código ASM para LCD Microcontrolador PIC
DOCX
Repair lexia 3 pcb to avoid activation relay, connection failure etc
PPTX
Non overlapped melay 1010 sequence detector implemented on xilinx spartan 3e kit
PDF
Efapel 01 2012
PDF
DIAGRAMA ELECTRICO DEL MOTOR
DOCX
74LVC1G175GW-Q100H -NXP Semiconductors/Freescale Semiconductor, Inc. - omoele...
 
PDF
Du mont ra-103-sams-90-3
Access tablerobko01
Blinds
Lampiran 1.programdocx
4 channel rf remote controller board manual
Fanuc 10 alarm list
Código ASM para LCD Microcontrolador PIC
Repair lexia 3 pcb to avoid activation relay, connection failure etc
Non overlapped melay 1010 sequence detector implemented on xilinx spartan 3e kit
Efapel 01 2012
DIAGRAMA ELECTRICO DEL MOTOR
74LVC1G175GW-Q100H -NXP Semiconductors/Freescale Semiconductor, Inc. - omoele...
 
Du mont ra-103-sams-90-3
Ad

Viewers also liked (20)

PPT
Networking
PPT
4) databases
PPTX
8051 programming in c
ODP
Beautiful life-1199875131916997-3
PPT
1.microprocessor
PPT
LED basics by Er. Swapnil V. Kaware
PPT
Instruction set class
PPTX
Uses Of Wifi
PPT
8085 instruction-set new
PPT
Traffic Lights Controller
PPT
1206 Interrupts Of 8085
PPTX
Presentation1.pptx
PPT
Interfacing 8051 with Real World
PDF
1456.base boot
PPT
8051 Microcontroller
PDF
8085 instruction set
KEY
Introduction to Microcontrollers
PPT
Unit 1
PPT
Median filter Implementation using TMS320C6745
KEY
Introduction To Electrical Engineering
Networking
4) databases
8051 programming in c
Beautiful life-1199875131916997-3
1.microprocessor
LED basics by Er. Swapnil V. Kaware
Instruction set class
Uses Of Wifi
8085 instruction-set new
Traffic Lights Controller
1206 Interrupts Of 8085
Presentation1.pptx
Interfacing 8051 with Real World
1456.base boot
8051 Microcontroller
8085 instruction set
Introduction to Microcontrollers
Unit 1
Median filter Implementation using TMS320C6745
Introduction To Electrical Engineering
Ad

Similar to Topviewsimulator (20)

PPTX
Applications of microcontroller(8051)
PDF
DOC
Unit iv microcontrollers final
PPTX
lb instruments by using microcontroller , Rabi Moirangthem
DOCX
Applications of 8051 microcontrollers
PPTX
Microprocessor Week 8: Subroutine
PDF
Mic practicals
PDF
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
PDF
Lecture mp 7(interface)
PPTX
Basic of Firmware & Embedded Software Programming in C
PDF
Microcontroller part 4
PPTX
Embedded systems basics 8051 - project approach
PDF
Stepper motor controller using c
PDF
8449972 embedded-systems-and-model-of-metro-train
PPT
AVR Fundamentals
PPTX
Project ppt
PPT
TheHuman _ andPhysical _ Interfaces .ppt
PDF
Advanced Embedded Automatic Car Parking System
Applications of microcontroller(8051)
Unit iv microcontrollers final
lb instruments by using microcontroller , Rabi Moirangthem
Applications of 8051 microcontrollers
Microprocessor Week 8: Subroutine
Mic practicals
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Lecture mp 7(interface)
Basic of Firmware & Embedded Software Programming in C
Microcontroller part 4
Embedded systems basics 8051 - project approach
Stepper motor controller using c
8449972 embedded-systems-and-model-of-metro-train
AVR Fundamentals
Project ppt
TheHuman _ andPhysical _ Interfaces .ppt
Advanced Embedded Automatic Car Parking System

Recently uploaded (20)

PDF
RMMM.pdf make it easy to upload and study
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Business Ethics Teaching Materials for college
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Pre independence Education in Inndia.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Cell Types and Its function , kingdom of life
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
RMMM.pdf make it easy to upload and study
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Business Ethics Teaching Materials for college
Abdominal Access Techniques with Prof. Dr. R K Mishra
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Microbial diseases, their pathogenesis and prophylaxis
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
FourierSeries-QuestionsWithAnswers(Part-A).pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Renaissance Architecture: A Journey from Faith to Humanism
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Supply Chain Operations Speaking Notes -ICLT Program
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Pre independence Education in Inndia.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Cell Types and Its function , kingdom of life
102 student loan defaulters named and shamed – Is someone you know on the list?

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