Board index » Visual Studio » SPI on PCs parallel port

SPI on PCs parallel port

Visual Studio78
SPI on PCs parallel port

Hi I have Visual C++ 6.0, but have only wrote some simple code

examples from a beginner's book.

I would like to read an SPI device but using my PCs Parallel port.

I just need to send out an 8-bit word and simultaneously read back in

an 8-bit word.

I can simply repeat for multiple words.



It can be as simple as a window that I can enter the hex or binary (or

decimal) number to be sent out and another window for the returned

data.

Then just a button to start the transfer.



Does anyone have something like this?

Or do they know of anything similar?



I have searched the web and the closest that I could find was very

complex and difficult for a beginner to modify.


-
 

Re:SPI on PCs parallel port

bob wrote:

Quote
SPI on PCs parallel port

Hi I have Visual C++ 6.0, but have only wrote some simple code

examples from a beginner's book.

I would like to read an SPI device but using my PCs Parallel port.

I just need to send out an 8-bit word and simultaneously read back in

an 8-bit word.

I can simply repeat for multiple words.



It can be as simple as a window that I can enter the hex or binary (or

decimal) number to be sent out and another window for the returned

data.

Then just a button to start the transfer.



Does anyone have something like this?

Or do they know of anything similar?



I have searched the web and the closest that I could find was very

complex and difficult for a beginner to modify.



A Windows application program is not permitted to directly program the

parallel port. It can only work through calls to a parallel port device

driver. The standard Microsoft device driver does not even come close

to doing what you want. So you are stuck, because a custom device

driver is way way beyond the ability of a beginner (and even many

experts) to modify.



You might find help, and/or free device drivers that you could use, by

cruising over to www.lvr.com. This site is a resource for folks who

want to do these kinds of "nonstandard" I/O with the serial or parallel

ports. Good luck.



--

Scott McPhillips [VC++ MVP]



-