<?xml version="1.0" encoding="utf-8" ?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
				<channel rdf:about="http://www.8051projects.net/">
				<title>8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes : Forum / topic</title>
				<link>http://www.8051projects.net/</link>
				<description>Learn to make simple microcontroller projects, pic, 8051, avr and arm projects. download 8051 projects, tutorials, libraries, sample codes. join the microcontroller discussion forum and ask doubts regarding electronics. the best source for 8051 over internet.</description>
				<dc:language>en-gb</dc:language>
				<dc:date>2009-01-07T22:27:33-08:00</dc:date>
				<dc:creator>contact@nospam.com</dc:creator>
				<admin:generatorAgent rdf:resource="http://e107.org" />
				<admin:errorReportsTo rdf:resource="mailto:contact@nospam.com" />
				<sy:updatePeriod>hourly</sy:updatePeriod>
				<sy:updateFrequency>1</sy:updateFrequency>
				<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
				<items>
				<rdf:Seq>
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4572.html" />
				</rdf:Seq>
				</items>
				</channel>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator></dc:creator>
						<dc:subject></dc:subject>
						<description>Hello,I have to finish and make a report about the project below in a week.My problem is: I dont have hardware part now and i m wondering how to simulate my assembly program in any sofware. I m used to simuate in  Proteus Isis. But i dont know how to build the circuit with RS232 in ISIS. Can anybody help me?Thanks in advance! an Assembly Language Program to control a DC Motor interfaced to a PC through the parallel port. The project contains the following modules:1.      Motor Driving Module (Output Module):·         The motor will rotate clockwise if f (forward) key is pressed and will rotate anticlockwise if r (reverse) key is pressed.·         The speed of the motor will be changed by introducing different PWM signals with changing duty cycles.2.      Speed Display Module (Output Module):·         The speed of rotating motor will be indicated by displaying a single digit 7-segment display. There will be speeds from 0 to 9. The speed which is displayed on the 7-segment display will also be displayed on the monitor with its direction (clockwise or anticlockwise).·         The positive speeds will be shown as they are (from 0 to 8) and the negative speeds will be displayed in two’s complement form.3.      Up and Down Push Buttons (Input Module):·         The speed of the motor will be controlled by the two external push buttons (Up and Down) connected to the PC through the parallel port. The speed will be incremented or decremented one by one by pushing to Up or Down buttons respectively.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>abbas1707</dc:creator>
						<dc:subject></dc:subject>
						<description>u can use  virtual terminal in instruments section or COMPIM (in devices) to simulate serial port.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>Yeah I know this. Thanks.But i couldnt do it properly. Can you give me a link? or maybe a tutorial working properly.I m not sure with my problem. It may be because of ports</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>abbas1707</dc:creator>
						<dc:subject></dc:subject>
						<description>i dont have any tutorial or link    .  but if u tell what problem you are facing     we can solve it</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>If it is possible, can you make a little circuit working properly, that includes rs232 is connected to 1 led and i can  test it by using "out #,data" command.You may send to my emai: mpguybrush@yahoo.com or upload anywhere and everybody can see it in the future.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>There is no need of using COMPIM. Just make circuit on proteus.. with DC motor connected.. and make use of virtual terminal provided in the proteus.For driving a DC motor.. you need a H-Bridge circuit commonly available as L293D IC. But simulation of this IC is not available so make use of transistor based H-bridge.. you can take a look at the sample circuit from the DC Motor tutorial.. BJT based H-Bridge demo is given...Just make the simulation circuit... and it will work perfectly. if you feel any problem i am here..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>abbas1707</dc:creator>
						<dc:subject></dc:subject>
						<description>and tell me if u want to simulate L293D    i have its simulation model</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>wow... mail me..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>abbas1707</dc:creator>
						<dc:subject></dc:subject>
						<description>try if it works in this wayL293D Spice model The content of the post is hidden!Please Login to see the hidden post.If you are new to the website Please Signup!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>I want to put it in the download section.. so asking you if its working or not..can you give me a screenshot of it? i am not on my PC hence no softwares..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>abbas1707</dc:creator>
						<dc:subject></dc:subject>
						<description>then put this.how to use l293d on proteushttp://rapidshare.com/files/81973769/using_l293d.zip</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>you gave him the code?   lol!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>no problem.. do not remove it now..   just let him take it as a reference.. ok! anyways thank you for the model..Just wanted to ask. is it ok to host Proteus spice model file on server?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>abbas1707</dc:creator>
						<dc:subject></dc:subject>
						<description>oho</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>abbas1707</dc:creator>
						<dc:subject></dc:subject>
						<description>i dont think that there will be any problem</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>Thanks a lot!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>no there wont be.. he still has to do the major parts.. hope he come back and see what is going on</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>is this model a custom made? or what?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>abbas1707</dc:creator>
						<dc:subject></dc:subject>
						<description>Ajay wrote ...no there wont be.. he still has to do the major parts.. hope he come back and see what is going on  lol    i was talking about placing proteus model on server..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>Hi, I came back again  Thanks for explaining me how to simulate the circuit but i have to write the program. I wish i could write in C, unfortunately i have to write it in asm, even in tasm. So i dont have much time and i cant find sources. You helped me a lot but please if you can show me how to finish this, i will be very grateful.I dont know how to write those functions for key_pressed situation.And another question, should i use a pic to get the data from parallel port and from push buttons and then control the 7seg and dc motor? or should the data from parallel port control the dc motor and the 7seg ( but then how can i include push buttons )?  ; cursor functioncursor	macro	r,c					mov	bh,00			mov ah,02			mov	dh,r			mov dl,c			int 10h				endm; display functiondisplay macro	str			mov ah,09h			mov dx,offset str			int 21h		endm.stack 64.data	l1			db	'						Welcome									','$'	l2			db  '			Press f to rotate clockwise							','$'	l3			db  '		Press r to rotate counter-clockwise						','$'	l4			db  '	You may adjust the speed by speed adjust buttons			','$'	l5			db  '	  You can see the motor speed on the 7-seg					','$'	l6			db  '			Press q to quit the program							','$'		delayer		dw	33147	hu			dw	0	ku			dw	0		7segport	db	?	motorport1	db	?	motorport2	db	?	btnUpPort	db	?	btnDownPort	db	?		.code	main:		mov	ax,@data		mov	ds,ax			clr			cursor 2,6		display l1		cursor 4,6		display l2		cursor 6,6		display l3		cursor 8,6		display l4		cursor 10,6		display l5		cursor 12,6		display l6			cursor 16,6		key_check:		mov ah,07		int	21h				cmp al,'r'		je	r_pressed		cmp al,'f'		je f_pressed		cmp al,'u'		je up_pressed		cmp al,'d'		je down_pressed		cmp al,'q'		je	quit		jmp key_check			r_pressed:		jmp	key_check		f_pressed:		jmp	key_check		down_pressed:		jmp	key_check		up_pressed:		jmp	key_check		q_pressed:		jmp	key_check			quit:		mov ah,4ch		int 21h		end	main</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>I think you should give me all the explanation of what peripherals you are going to use in your project.. and possibly send a circuit diagram because without that you cannot program.for now just send me list of peripherals like motor, 7-seg etc whatever u are going to use.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>the project is as i explained in my first message.It doesnt matter what microcontroller i use but i have to show the program coded in tasm.This program should work in Dos and it should control a dc motor and a 7seg control via rs232. And it should include 2 push buttons for speed adjustion.It is really important because i m dealing with my other exams in these days.Thanks for your attention.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>so you have two push buttons, one 7-segment and one DC-Motor. Use of buttons is to change speed.. is it? and rs232 also do the same?Please explain the use of switch and rs232.. are you going to use then together or u want to use them differently like two different programs. I hope you have already gone through the PWM code.. and code you posted before is a good start..Just make a flowchart how you want your peripherals to work only then you will be able to program. decide how your final thing will work.. and make flowchart on that.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>what do you suggest for peripherals?i will not use buttons to change speed. Everything must be controlled by keyboard and the asm program.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>actually i m mixed up.should i use microcontroller? or can everything be controlled from rs232?i dont know enough information to finish this thing.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>well.. use anything you want.. will be simple to do if you use RS232.. just receive and then and do work..   if you use RS232 then there will be no need of button.just receive a character from serial port and act upon the command..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>hmm..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>you already have the code for starting and stopping a motor.. all you need is to control speed now   i am sure its not difficult for you as you already have the PWM code.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>the problem is i m not familer with tasm and there is no more sources or i couldnt find any.i can do anything in C, at least i can search but in asm and electronics i m limited.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>hmm.. so why dont you do it in C? everything is same in C as you do in asm.. just small differences.. ok write start and stop of motor in C PWM i will explain..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>CODE:<br />;delay function<br /><br />delay&nbsp; &nbsp;macro&nbsp; &nbsp;duration<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local waitf<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov cx,duration<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loop waitf<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end m<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><br />; cursor function<br />cursor&nbsp; macro&nbsp; &nbsp;r,c<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov&nbsp; &nbsp; &nbsp;bh,00<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov ah,02<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov&nbsp; &nbsp; &nbsp;dh,r<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dl,c<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int 10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endm<br /><br /><br />; display function<br />display macro&nbsp; &nbsp;str<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov ah,09h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,offset str<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int 21h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endm<br /><br />.stack 64<br />.data<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ;Seven Segment Table<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; zero&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 3fh;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; |&nbsp; &nbsp; -&nbsp; &nbsp; &nbsp; -&nbsp; &nbsp; &nbsp; &nbsp;| |&nbsp; &nbsp; &nbsp;|-&nbsp; &nbsp; &nbsp; |-&nbsp; &nbsp; &nbsp; -|&nbsp; &nbsp; &nbsp; |-|&nbsp; &nbsp; &nbsp;|-|<br />&nbsp; &nbsp; &nbsp; &nbsp; one&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 6;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| |&nbsp; | &nbsp; &nbsp;_|&nbsp;_| &nbsp; - &nbsp;|- &nbsp;|_&nbsp; -|&nbsp; &nbsp; &nbsp; &nbsp;-&nbsp; &nbsp; &nbsp; &nbsp;-<br />&nbsp; &nbsp; &nbsp; &nbsp; two&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 5bh;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; |_&nbsp; _|&nbsp; &nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; _| |_|&nbsp; |&nbsp; &nbsp; &nbsp; |_|&nbsp; &nbsp; &nbsp; _|<br />&nbsp; &nbsp; &nbsp; &nbsp; three&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 4fh<br />&nbsp; &nbsp; &nbsp; &nbsp; four&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 66h<br />&nbsp; &nbsp; &nbsp; &nbsp; five&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 6dh<br />&nbsp; &nbsp; &nbsp; &nbsp; six&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 7dh<br />&nbsp; &nbsp; &nbsp; &nbsp; seven&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 7<br />&nbsp; &nbsp; &nbsp; &nbsp; eight&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 7fh<br />&nbsp; &nbsp; &nbsp; &nbsp; nine&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 6fh<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; speedCtr&nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; ?<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; l1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; '&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Welcome&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp; l2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db &nbsp;'&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Press f to rotate clockwise&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp; l3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db &nbsp;'&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Press r to rotate counter-clockwise&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp; l4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db &nbsp;'&nbsp; &nbsp;You may adjust the speed by 'u' for up and 'd'for down&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp; l5&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db &nbsp;'&nbsp; &nbsp; &nbsp;You can see the motor speed on the 7-seg&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp; l6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db &nbsp;'&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Press q to quit the program&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />.code<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;parallel port initialization<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00h&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;for writing data<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; D7 is for forward D6 is for backward D5 is for enabling of dc motor with L293d<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; main:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov&nbsp; &nbsp; &nbsp;ax,@data<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov&nbsp; &nbsp; &nbsp;ds,ax<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; clr<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 2,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 4,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 6,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l3<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 8,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l4<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 10,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l5<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 12,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l6<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 16,6<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov&nbsp; &nbsp; &nbsp;&#91;speedCtr&#93;,0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; key_check:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov ah,07<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int&nbsp; &nbsp; &nbsp;21h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp al,'r'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je&nbsp; &nbsp; &nbsp; r_pressed<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp al,'f'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je f_pressed<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp al,'u'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je up_pressed<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp al,'d'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je down_pressed<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp al,'q'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je&nbsp; &nbsp; &nbsp; quit<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp key_check<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; r_pressed:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delay 2;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wait for 2 seconds and then start rotating in reverse direction<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,01000000b;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 01100000B for reverse direction<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp&nbsp; &nbsp; &nbsp;key_check<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; f_pressed:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delay 2;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wait for 2 minutes and then start rotation forward direction<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,10000000b;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10000000B for forward direction<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp&nbsp; &nbsp; &nbsp;key_check<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; down_pressed:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add&nbsp; &nbsp; &nbsp;&#91;speedCtr&#93;,-1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp&nbsp; &nbsp; &nbsp;key_check<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; up_pressed:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add &#91;speedCtr&#93;,1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp&nbsp; &nbsp; &nbsp;key_check<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; quit:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov ah,4ch<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int 21h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end&nbsp; &nbsp; &nbsp;main</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>dez please show me what you have done till now.. I will add things which are needed..!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>first i need to define a speedcontrol macro that will increase or decrease the speed when user push 'u' or 'd'.secondly i need a 7seg function that will send the speed to 7segment which is stored in speedCtrand thats all.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>are you using x86 processor?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>yes i m trying to write just a program in dos to control the peripherals. There is no microcontroller</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>hmm... but i don't know much about x86 processors..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>i cant believe there are many step motor examples around the netbut there is no bloody dc motor by pwm example.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>actually speed of DC motor changes when you change the voltage of motor... and in digital world this is done with the help of Pulse width modulation.So i think you should see this for learning about PWM.I have no idea whether x86 processors have timers or not.. if not then it will be difficult to generate PWM, or you have to make use of some external thing to generate PWM.Please go through this to read about PWM.www.8051projects.net/forum-t1720-post.html</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>can you write psuedo code?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>i can help you with 8051... if you can translate that..then will be possible i guess..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>yes please</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>please just write the pseudo code,what should i do to increase speed?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>dez</dc:creator>
						<dc:subject></dc:subject>
						<description>Ofcourse they have, In asm there is a subroutine named waitf and all my problem was that. In order to arrange pwms,  we should use it. But i didnt know how to use it, anywayi submit my last work as written below...It may have problems:S CODE:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />; cursor function<br />cursor&nbsp; macro&nbsp; &nbsp;r,c<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov&nbsp; &nbsp; &nbsp;bh,00<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov ah,02<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov&nbsp; &nbsp; &nbsp;dh,r<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dl,c<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int 10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endm<br /><br /><br />; display function<br />display macro&nbsp; &nbsp;str<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov ah,09h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,offset str<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int 21h<br />endm<br /><br />waitf &nbsp; macro &nbsp; ; al times<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local waitloops<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shl al,2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitloops:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dec al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;jnz waitloops<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endm<br /><br />.model small<br />.stack 64<br />.data<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ;Seven Segment Table<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; zero&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 01011011b;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; |&nbsp; &nbsp; -&nbsp; &nbsp; &nbsp; -&nbsp; &nbsp; &nbsp; &nbsp;| |&nbsp; &nbsp; &nbsp;|-&nbsp; &nbsp; &nbsp; |-&nbsp; &nbsp; &nbsp; -|&nbsp; &nbsp; &nbsp; |-|&nbsp; &nbsp; &nbsp;|-|<br />&nbsp; &nbsp; &nbsp; &nbsp; one&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 00000110b;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| |&nbsp; | &nbsp; &nbsp;_|&nbsp;_| &nbsp; - &nbsp;|- &nbsp;|_&nbsp; -|&nbsp; &nbsp; &nbsp; &nbsp;-&nbsp; &nbsp; &nbsp; &nbsp;-<br />&nbsp; &nbsp; &nbsp; &nbsp; two&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 01011011b;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; |_&nbsp; _|&nbsp; &nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; _| |_|&nbsp; |&nbsp; &nbsp; &nbsp; |_|&nbsp; &nbsp; &nbsp; _|<br />&nbsp; &nbsp; &nbsp; &nbsp; three&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 01001111b;<br />&nbsp; &nbsp; &nbsp; &nbsp; four&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 01100110b<br />&nbsp; &nbsp; &nbsp; &nbsp; five&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 01101101b<br />&nbsp; &nbsp; &nbsp; &nbsp; six&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 01111101b<br />&nbsp; &nbsp; &nbsp; &nbsp; seven&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 00000111b<br />&nbsp; &nbsp; &nbsp; &nbsp; eight&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 01111111b<br />&nbsp; &nbsp; &nbsp; &nbsp; nine&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; 01101111b<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; direction &nbsp; db &nbsp;'n'<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; speedCtr&nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; ?<br />&nbsp; &nbsp; &nbsp; &nbsp; delayCtr &nbsp; &nbsp;db &nbsp;?<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; l1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db&nbsp; &nbsp; &nbsp; '&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Welcome&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp; l2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db &nbsp;'&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Press f to rotate clockwise&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp; l3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db &nbsp;'&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Press r to rotate counter-clockwise&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp; l4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db &nbsp;'&nbsp; &nbsp;You may adjust the speed by 'u' for up and 'd'for down&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp; l5&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db &nbsp;'&nbsp; &nbsp; &nbsp;You can see the motor speed on the 7-seg&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp; l6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db &nbsp;'&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Press q to quit the program&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ','$'<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />.code<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;parallel port initialization<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00h&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;for writing data<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; D7 is for forward D6 is for backward D5 is for enabling of dc motor with L293d<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; main:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov&nbsp; &nbsp; &nbsp;ax,@data<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov&nbsp; &nbsp; &nbsp;ds,ax<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;clr<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 2,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 4,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 6,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l3<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 8,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l4<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 10,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l5<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 12,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display l6<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor 16,6<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov&nbsp; &nbsp; &nbsp;speedCtr,0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov delayCtr,10<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; key_check:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov ah,01<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int 16h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov ah,00<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int 16h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp al,'r'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je&nbsp; &nbsp; &nbsp; r_pressed<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp al,'f'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je f_pressed<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp al,'u'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je up_pressed<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp al,'d'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je down_pressed<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp al,'q'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je&nbsp; &nbsp; &nbsp; quit<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp key_check<br /><br />&nbsp; &nbsp; here: &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dl,speedCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je zerow<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je onew<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je twow<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,3<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je threew<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,4<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je fourw<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,5<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je fivew<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je sixw<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,7<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je sevenw<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,8<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je eightw<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,9<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je ninew &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp endt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zerow:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp endt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onew:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00010000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp endt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; twow:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00100000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp endt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; threew:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00110000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp endt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fourw:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,01000000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp endt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fivew:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,01010000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp endt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sixw:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,01100000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp endt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sevenw:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,01110000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp endt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eightw:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,10000000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp endt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ninew:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endt:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp key_check<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; r_pressed:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp direction,'n'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jne check_r<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov direction,'r'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;delay 2;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wait for 2 seconds and then start rotating in reverse direction<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;reverse e 1 gonderme fonksiyonu<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rgoes:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,127<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitf<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000001b;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 00000001B for reverse direction<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp here<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp&nbsp; &nbsp; &nbsp;key_check<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; f_pressed:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp direction,'n'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jne check_r<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov direction,'f'<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fgoes:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,100<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitf<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000010b;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 00000010B for forward direction<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp here<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp&nbsp; &nbsp; &nbsp;key_check<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; check_f:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp direction,'f'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je fgoes<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitf 1000;to delay when changing direction<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jne rgoes<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;check_r:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp direction,'r'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je rgoes<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jne fgoes&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; stop:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,100<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp here<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp key_check<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; down_pressed:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dec speedCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inc delayCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je stop<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp direction,'f'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je goingforward<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp direction,'r'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dec speedCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inc delayCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je goingbackward<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; goingforward: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000010b;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,0378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,speedCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitf<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000000b;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,delayCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitf<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp key_check<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp goingforward<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;pwm signallerini azaltan fonksiyon<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;7segment e speedCtr bastiran fonksiyon<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp here<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp&nbsp; &nbsp; &nbsp;key_check<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; goingbackward:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000001b ;PIN NUMARASI<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,0378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,speedCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitf<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000000b;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,delayCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitf<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp key_check<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp goingbackward<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;pwm signallerini azaltan fonksiyon<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;7segment e speedCtr bastiran fonksiyon<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp here<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp&nbsp; &nbsp; &nbsp;key_check<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; up_pressed:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp direction,'f'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je increase_forward<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp direction,'b'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je increase_backward<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp key_check<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; increase_forward:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inc speedCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,9<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je key_check<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dec delayCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000010b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,0378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,speedCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitf<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,delayCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitf<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;jmp here<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;jmp key_check<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; increase_backward:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inc speedCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmp speedCtr,9<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; je key_check<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dec delayCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000001b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov dx,0378h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,speedCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitf<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,00000000b<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out dx,al<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov al,delayCtr<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; waitf<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp here<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jmp&nbsp; &nbsp; &nbsp;key_check<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; quit:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov ah,4ch<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int 21h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end&nbsp; &nbsp; &nbsp;main<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp;</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>Actually in PWM, timers should use interrupts.. wait routine will not work..i hope you have read the concept of PWM. So all we need to do is change the width of high level. if width is 255 then speed will be full and if width is 0 then speed will be low/motor stops.in the PWM code i gave you.. it works like this..R7 contains the value of high level and ranges from 0 to 255 as i explained.for pwm, i used a flag to indicate if high part of the square wave is done or not, coz the values loaded in the timer are different for both high and low level of square wave but the total value of high and low is 255.So lets say if high is 50, i.e. R7 is loaded with 50 and low will be 255-50 = 205.you can see in the code too.. during one part of PWM i am loading Timers with R7 and in other part of square wave i am loading 255-R7 in timer.so total 255 will remain constant only i am changing the value of R7 to control the width. you can possibly make your program to work as i explained.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>HiGiNS</dc:creator>
						<dc:subject></dc:subject>
						<description>I want to convert L293D component to library and model file in proteus. But I cant make proper MDF file. Simulation part is starting but motors are not working.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4572.html">
						<title>Re: RS232 Simulation?</title>
						<link>http://www.8051projects.net/forum-t4572.html</link>
						<dc:date>2009-01-07T22:27:33-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>to create models you need VSM SDK. All you need to do is use APIs provided... i never tried making one.. but now you have encouraged me to try it out..</description>
						</item>
				</rdf:RDF>