Discussion in "Project Help" started by    dez    Jan 7, 2008.
Mon Jan 07 2008, 09:00 pm
#11
then put this.how to use l293d on proteus
http://rapidshare.com/files/81973769/using_l293d.zip


Tags L293D proteusspice model L293d ProteusL293D simulation model proteus
Mon Jan 07 2008, 09:20 pm
#12
you gave him the code? lol!
Mon Jan 07 2008, 10:43 pm
#13
oho :mad
Mon Jan 07 2008, 11:57 pm
#14
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?
Tue Jan 08 2008, 12:17 am
#15
i dont think that there will be any problem :-)
Tue Jan 08 2008, 07:32 am
#16
no there wont be.. he still has to do the major parts.. hope he come back and see what is going on
Tue Jan 08 2008, 07:37 am
#17
Thanks a lot!


[ Edited Tue Jan 08 2008, 07:38 am ]
Tue Jan 08 2008, 06:02 pm
#18


no there wont be.. he still has to do the major parts.. hope he come back and see what is going on :-)

Ajay


lol
i was talking about placing proteus model on server..
Tue Jan 08 2008, 11:33 pm
#19
is this model a custom made? or what?
Thu Jan 10 2008, 03:48 am
#20
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 )? :S

; cursor function
cursor macro r,c

mov bh,00
mov ah,02
mov dh,r
mov dl,c
int 10h

endm


; display function
display 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

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am