hello frinds,
last night i am using C prog to get output at my
parallel port the following source code is
#include<dos.h>
#include<conio. h>
#include<proces s.h>
void main()
{
outportb( 0x378,00ff);
delay(1000);
outportb(0x378, 0000);
delay(1000);
}
i have conected a bulb between LED PIN 2 & PIN 25 .the LED is not
glowing. what r the reasons Plz tell me .Can we get output in serial
port using int17 if yes plz tell me the code for it.Can this code is
working properly for my pc (configuration r AMD 3200+ processor and
ASUS motherboard) .
waiting for ur response 3 7262
In article <11************ *********@g10g2 000cwb.googlegr oups.com>,
nik <am*******@gmai l.com> wrote: last night i am using C prog to get output at my parallel port the following source code is
#include<dos.h > #include<conio .h>
Sorry, that is DOS/Windows specific: you will need to ask in
a DOS/Windows newsgroup.
--
"law -- it's a commodity"
-- Andrew Ryan (The Globe and Mail, 2005/11/26)
"nik" <am*******@gmai l.com> wrote in message
news:11******** *************@g 10g2000cwb.goog legroups.com... hello frinds, last night i am using C prog to get output at my parallel port the following source code is
You have standard C coding errors:
#include<dos.h> #include<conio. h> #include<proces s.h>
#include<stdlib .h> /* missing */
void main()
int main(void) /* corrected */
{ outportb( 0x378,00ff);
/* this could be a problem */
/* you're compiler may be using the 00 from 00ff */
/* as the byte which is being output to port 0x378 */
outportb(0x378, 0xff); /* you want a byte in hex */
delay(1000); outportb(0x378, 0000);
outportb(0x378, 0x00); /* not needed, but I like it in hex */
delay(1000);
return(EXIT_SUC CESS); /* missing */ }
i have conected a bulb between LED PIN 2 & PIN 25 .the LED is not glowing. what r the reasons Plz tell me .Can we get output in serial port using int17 if yes plz tell me the code for it.Can this code is working properly for my pc (configuration r AMD 3200+ processor and ASUS motherboard) . waiting for ur response
I don't know anything about that stuff...
Rod Pemberton
nik wrote: hello frinds, last night i am using C prog to get output at my parallel port the following source code is #include<dos.h> #include<conio. h> #include<proces s.h> void main() { outportb( 0x378,00ff); delay(1000); outportb(0x378, 0000); delay(1000); } i have conected a bulb between LED PIN 2 & PIN 25 .the LED is not glowing. what r the reasons Plz tell me .Can we get output in serial port using int17 if yes plz tell me the code for it.Can this code is working properly for my pc (configuration r AMD 3200+ processor and ASUS motherboard) . waiting for ur response
If your C runs under DOS and you are using DOS then it should work.
However, if you are using Windoze you can't because it prevents you
from getting access to any of the silicon. There are workarounds
(software interfaces) available that let you avail yourself of the
machine's resources, but I don't know current versions. I suggest
you Google for "Parallel port access under Windoze xxx" (your version
here).
--
Julian V. Noble
Professor Emeritus of Physics
University of Virginia This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Yuancai \(Charlie\) Ye |
last post by:
Hi, All:
I am happy to annouce that we have formally released our latest SocketPro
version 4 at www.udaparts.com, an advanced remoting framework written from
batching/queue, asynchrony and parallel computation.
Key Benefits of SocketPro:
Super performance and scalability
It is a guarantee that SocketPro based client-server applications
|
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,...
|
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...
|
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
|
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...
| |
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...
|
by: rajat varshney |
last post by:
I am doing a project on controlling a stepper motor through computer parallel port over a network. I have also done parallel port programming in C but I need some help on how to send output on parallel port pins in java.
|
by: abhi |
last post by:
Hello,
I want to create a small project which will display scrolling text on
LED that will be attached to Parallel port. I want to create this
project in C language(possibly in Mingw) on Windows XP. I want to know
how can i access(read and write data) on parallel port in XP.
I have a program that do the same thing but in its documentation it
says that it will not work on Windows XP.
|
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...
|
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...
|
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,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |