473,395 Members | 1,497 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.

help me in port programming

how do we programme other ports outthere than THe printer port and how
do we know the CONTROL PINS READING PINS AND OUTPUT PINS and also I
there a way to programme the USB PORTS

Nov 14 '05 #1
8 1293
Good question!

Nov 14 '05 #2
Good question!

Nov 14 '05 #3
On Tue, 07 Jun 2005 04:03:02 -0700, CdiVer wrote:
how do we programme other ports outthere than THe printer port and how
do we know the CONTROL PINS READING PINS AND OUTPUT PINS and also I
there a way to programme the USB PORTS


This is highly system specific. On most systems this is handled by the
operating system and you would access devices through system calls
provided. So you'll need to ask on a newsgroup relating to the particular
OS you are interested in, you have to go beyond standard C to do this.

Lawrence

Nov 14 '05 #4


CdiVer wrote:
how do we programme other ports outthere than THe printer port and how
do we know the CONTROL PINS READING PINS AND OUTPUT PINS and also I
there a way to programme the USB PORTS


You go and find a newsgroup where this is on topic. Not
even close to comp.lang.c. That you think the above is a good
question here shows a real lack of clue -- even if we discussed
such in this group, not mentioning the hardware means you seem
to think that such things are done the same way on all platforms.

I'd guess comp.os.ms-windows.programmer.win32 is the right place
for your question. Unless you are using a mac or linux or unix or
....

-David

Nov 14 '05 #5
ThanX Lawrence
i would like to know how to get all the REGISITRY ADD. the one's we use
in functions like int86(.......)
all the interrupts like for mouse ITS is 0x33 and for Video its 0x10
and the Variables to be passed in the REGS
if u could help me out
like how to enable the "modem" usin C????

Nov 14 '05 #6
mmquan wrote:

Good question!


Bad answer.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
Nov 14 '05 #7
In article <11*********************@g44g2000cwa.googlegroups. com>,
CdiVer <hk*****@yahoo.com> wrote:
:i would like to know how to get all the REGISITRY ADD. the one's we use
:in functions like int86(.......)

Standard C does not know anything about registries.

:all the interrupts like for mouse ITS is 0x33 and for Video its 0x10

Standard C does not know anything about interrupts, only about
"signals", and the only signals that Standard C knows about are
ones that would normally interrupt or terminate your program
(e.g., because you attempted to access an address that did not exist.)

Standard C does not know anything about mice or video.

:and the Variables to be passed in the REGS

The closest that standard C has to "REGS" is that there is a storage-
class qualifier "register", which is mostly an optimization hint and
does not give *any* control over which internal register is used.

:if u could help me out
:like how to enable the "modem" usin C????

Standard C does not know anything about modems.

If you were working in Unix and you wanted to enable a modem, you
would just open its device file (specifying that you do not want
to wait for carrier) and then you would use termios functions
or POSIX tcgetattr() and tcsetattr() to set the line to the proper
state, and then you would [often] write commands out the port to tell
the modem to initialize itself. But in many cases in Unix, it is easier
to leave all of the work up to uugetty as that is well parameterized
to be able to deal with different kinds of modems.

If you are working in Windows (as suggested by "REGISTRY") then
I would suggest that you grab the source for any of the many open-source
terminal programs, as they have already dealt with all the issues.
--
The rule of thumb for speed is:

1. If it doesn't work then speed doesn't matter. -- Christian Bau
Nov 14 '05 #8


CdiVer wrote:
ThanX Lawrence
i would like to know how to get all the REGISITRY ADD. the one's we use
in functions like int86(.......)
all the interrupts like for mouse ITS is 0x33 and for Video its 0x10
and the Variables to be passed in the REGS
if u could help me out
like how to enable the "modem" usin C????


You are so lost it is not funny.
Int86 and the int33 int ect are DOS. the registry is windows.
You talk to the Modem by opening its comm port and sending AT commands.
USB requires you learn several Libraries. You can write the code in C.
But you questions have to do with the not standard C libraries. You have
asked some very complicated questions and seem to expect very simple
answers.
Nov 14 '05 #9

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

Similar topics

2
by: Tomislav Lepusic | last post by:
Hello, I don't know if this is the right group (I'm more in Perl, know nothing about Python), so if you can help me thanks, if not, sorry to bother you. I'm working on my student project and...
3
by: rusttree | last post by:
Many moons ago, I took a class in embedded control at school. The course focused on a micro-controller mounted on a small electric car that was programmed using simple C code. The...
3
by: Marcia Hon | last post by:
Hi, I am trying to use the select() socket programming command to select between stdin and a connection. Currently, I have a listening stream and stdin that I insert into the fd_set. The problem...
3
by: collinm | last post by:
hi i send a command to a led display, the led display is suppose to return me some character i write a string on a serial port void ledDisplayExist() { char msg={'\0', '\0', '\0', '\0',...
2
by: Serdar C. | last post by:
im trying to write a really simple program that communicates with udp packets between server and client apps... but i cant receive (or send?) any data from any of the applications.. what am i doin...
1
by: pei_world | last post by:
Hi there, I have search the web for serial port programming for age. I found some example codes. but I don't know how to test then. I don't have any idea how such program what undernearth. Can...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
5
by: ranishobha21 | last post by:
Dear all, i want to send some unix commands to remote unix machine in france through php.i am using socket communication in php, i have written a socket communication program so that it...
1
by: fazad | last post by:
Hello I need help in preparing a code on Visul C++ involving a parallel port. I'm basically try to count the number of pulses recieved by my device via the parallel port and display it on the screen....
6
by: jabslim | last post by:
excuse me, im a newbie programmer and i need a code on how to to be able to send files from a mobile phone to a pc through bluetooth in vb.net can anyone post a code here on how to detect a...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.