473,804 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3050
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.********@com Acast.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.publi c.vc.language, that's for the compiler-specific stuff.
Next, comp.os.ms-windows.program mer.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.publi c.* hierarchy, connect
to 'msnews.microso ft.com', it's free, and look around there.

V

On Tue, 01 Mar 2005 10:14:11 -0500, Victor Bazarov
<v.********@com Acast.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
7248
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 2000. How can I do this? What do I need to know? It doesn't look like the standard library (the one under my pillow) has that feature. In addition, I've heard that with newer versions of windows don't let you communicate with the port directly,...
9
8445
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 port ie to send data and to read the state of the parallel port including the control lines. Can anyone help/point me in the correct direction? I have tried the help files and the internet but am unable to find anything relevant. Thanks in...
11
3330
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 current sinking/drawing capacities of these ports? If possible, please give examples in C/C++. Thanks I would be grateful if any ebooks/tutorials could be provided at karanmalhotra85@yahoo.com
3
9392
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
3863
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: linuxfocus.org/English/May2001/article205.shtml). However, I know that this will probably need to be done in low level C. Now, although I can code in C, I don't particularly want to :-) , instead I'd like to use Python. I'm wondering, is there any way I...
12
8636
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 pins. Any Java people know a good solution? I'm trying to use JNI and create my own library, but building the library gives me these errors: ld: warning: cannot find entry symbol _start; defaulting to 0000000008048094 ParallelPort.o: In...
11
5290
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 the port. eg. 00000001 will set pin 1 high and flick the relay open. todate i've attempted this with merely open() on /dev/ppi0 and numpy for the byte array, but i just can't seem to get it working. i know the parallel port works and i know the...
2
4462
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 idea how to work on it. Please give some tips,The comamnd to be sent to the printer is hex data "1B 40".please give a example,it will be grateful.
4
15365
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 using PyParallel, but the USB->Parallel converter doesn't actually map to the LPT port .. and PyParallel only looks for LPT ports? Has anyone tried doing this? What are my options for controlling parallel connections on a laptop with no parallel...
1
2898
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 of seconds. I'm able to write and read from the parallel port, but after a few reads and writes it crashes... how many reads and writes before it crashes is not always the same.. sometimes it crashes at the first write or read.. other times it...
0
9712
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10341
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9171
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5530
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.