RS232 Simulation?
Mon Jan 07 2008, 09:00 pm
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
http://rapidshare.com/files/81973769/using_l293d.zip
Mon Jan 07 2008, 11:57 pm
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?
Just wanted to ask. is it ok to host Proteus spice model file on server?
Tue Jan 08 2008, 07:32 am
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, 06:02 pm
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..
Thu Jan 10 2008, 03:48 am
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
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
Powered by e107 Forum System