Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

logic circuit FOr DC motors control & strobe

Status
Not open for further replies.

tannazii

Newbie level 4
Joined
May 9, 2008
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,304
I wanna to Design an interface by using LPT port for on/off DC motors & give status of them by strobe signal.
 

If you're searching some way to change the pin state of a port on PC you can also use the DTR signal over the serial port and RTS as input one. This task is easy to do also by using Visual Basic using the well know MSComm object.

Code:
With MSComm1
 .CommPort = 1                               
 .Settings = "9600,N,8,1"                    
 .InBufferSize = 1024
 .Handshaking = comNone
 .RThreshold = 1
 .SThreshold = 0
 .InputLen = 1
 .InputMode = comInputModeText
 .PortOpen = True
 .DTREnable = False
End With

then drive the line high or low with these command (take also in mind that low level was -12 V and high +12 V)

Code:
MSComm1.DTREnable = True    ' To switch on
MSComm1.DTREnable = False   ' To switch off

Using printer port especially trough latest Win32 environment like Win2k, WinXP, Vista require more effor due to the kernel restriction, you need to use specialized library able to work on Ring 0.
If you like to use the parallel port look at this thread, there is some useful information for your task:


Hope it help
Powermos
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top