Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 22nd May 2006, 10:49 PM   (permalink)
Default visual basic program for parallel port interface

I need ur help guys. I have an electronic project that needs an output from the parallel port. I already have a software for controlling the parallel port output but what i need is an exact source code using visual basic. i am just a beginner in visual basic. can anybody give me the exact source code or program that i could use to control the output of the parallel port? i just need a basic source code where i could start with. i hope you could help me in this one.. thanx!!
group_x3m is offline   Reply With Quote
Old 23rd May 2006, 08:19 AM   (permalink)
Default

If you check my PIC programmer software, there's a driver you download which allows port access under 32 bit Windows (NT etc.). The driver includes example software for Visual BASIC and C.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 23rd May 2006, 09:00 AM   (permalink)
akg
Default

u could get the source if u browse codeproject/codeguru sites
__________________
Gods own Country
Incredible !ndia

www.flickr.com/photos/_akg/

"Give a man a fish, and he will eat for a day. Teach that man to fish, and he will eat for a lifetime."
akg is offline   Reply With Quote
Old 24th May 2006, 06:36 PM   (permalink)
Default

thnx for ur help guys!!! i really appreciate it! just in case u have other sites that u could suggest or maybe u have the exact VB code that u could paste here, it would help me a lot. i just need a simple code that would send a binary 1 and 0 signal to the parallel port. thank you so much!!

Last edited by group_x3m; 24th May 2006 at 06:41 PM.
group_x3m is offline   Reply With Quote
Old 25th May 2006, 01:29 PM   (permalink)
Default

Simplest code would be to OUTPUT a byte of data to port address 0x378
The data appears on the parallel port pins 2 though 9, these correspond to D0 - D7.

You may need additional libraries to be able to do this under WinXP/2K/NT
see.. http://www.aaroncake.net/electronics/vblpt.htm

Note that the parallel port can only source about 6mA of current so you should buffer the signals.. but you might be able to drive a transistor directly for simple applications.
StopGo is offline   Reply With Quote
Old 26th May 2006, 01:48 AM   (permalink)
Default

http://www.epanorama.net/circuits/parallel_output.html

http://www.southwest.com.au/~jfuller/vb/vbout.htm

Last edited by panic mode; 29th May 2006 at 02:08 AM.
panic mode is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 05:01 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.