473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

SPI on PCs parallel port

bob
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.

Jul 23 '05 #1
3 3033
bob wrote:
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.


Controlling hardware (reading the parallel port is included) is not
defined in C++ language. You need to post your question to a newsgroup
for your OS or your compiler, since that functionality is OS-specific
and libraries are probably compiler-specific as well.

V
Jul 23 '05 #2
bob
os = windows 98 or xp
compiles = Microsoft Visual C++ 6.0
I looked for a better newsgroop but domt see a spacific one.
Do you have a group recomendation?

On Tue, 01 Mar 2005 10:14:11 -0500, Victor Bazarov
<v.********@comAcast.net> wrote:
bob wrote:
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.


Controlling hardware (reading the parallel port is included) is not
defined in C++ language. You need to post your question to a newsgroup
for your OS or your compiler, since that functionality is OS-specific
and libraries are probably compiler-specific as well.

V


Jul 23 '05 #3
bob wrote:
os = windows 98 or xp
compiles = Microsoft Visual C++ 6.0
I looked for a better newsgroop but domt see a spacific one.
Do you have a group recomendation?
I have several recommendations, of which the first one is not to top-post.

There are several newsgroups I consider relevant. Let's begin with
microsoft.public.vc.language, that's for the compiler-specific stuff.
Next, comp.os.ms-windows.programmer.win32, that's for OS-specific. Also,
take a look at http://www.parashift.com/c++-faq-lite/, which is the
de-facto FAQ for this newsgroup, it should help you find your answers
without posting (and waiting associated with it).

If your newsserver does not carry microsoft.public.* hierarchy, connect
to 'msnews.microsoft.com', it's free, and look around there.

V

On Tue, 01 Mar 2005 10:14:11 -0500, Victor Bazarov
<v.********@comAcast.net> wrote:

bob wrote:
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.


Controlling hardware (reading the parallel port is included) is not
defined in C++ language. You need to post your question to a newsgroup
for your OS or your compiler, since that functionality is OS-specific
and libraries are probably compiler-specific as well.

V

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Novice Experl | last post by:
I'd like to write a simple application that interfaces with the parallel port, and changes the data on it according to keyboard input. I hope I can get it to run under windows xp and / or windows...
9
by: MNQ | last post by:
Hi All I want to use my parallel port of my PC to control some external devices. I am writing a program in ANSI C using the PacificC compiler. What I need to know is how to access the parallel...
11
by: karan | last post by:
I would like to know how one can use the parallel port through c/c++.Also, how does one determine what port is installed(EPP/ECP/SSP/PS2)? What is the differnece between these? What are the...
3
by: Danijel Babic | last post by:
Hi! Is there any way to control parallel port from VB.NET. I want to be able to send or read data from parallel port on Windows XP. Some ActiveX or dll, API or anything. Thx!
11
by: Isaac T Alston | last post by:
Basically, I'm thinking about building a robot which can be controlled by programs which I write, I'm going to interface to the robot through the parallel port (like in this tutorial here:...
12
by: david.brown.0 | last post by:
I'm trying to make a Java program access a parallel port. Java's comm API does not provide me with the control I need. I need to be able to write to the data and control pins and read the status...
11
by: Timothy Smith | last post by:
hello people. i've been trying to send an 8 byte string to my parallel port under freebsd. the purpose is it to control a relay board. the board simply responds to the output byte coming from...
2
by: hari | last post by:
Hi all, I need to automate printer command testing, prinetr supports parallel/ serial/USB.How can i send the commands from python to printer. I have got pyparallel, as am new to python, no...
4
by: Soren | last post by:
Hi, I want to control some motors using the parallel port.. however, my laptop does not have any parallel ports (very few do). What I do have is a USB->Parallel converter... I thought about...
1
by: ssndk123 | last post by:
Hi, Using the UserPort program that changes permissions in XP so that I am able to write directly to the parallel port using assembler.. I'm trying to send out square wave pulses for x number...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.