![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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!!
|
|
|
|
|
|
|
(permalink) |
|
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.
|
|
|
|
|
|
|
(permalink) |
|
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." |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|