By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,959 Members | 1,160 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,959 IT Pros & Developers. It's quick & easy.

interfacing a serial device

P: n/a
dev
hi
i want to know about interfacing or accessing a serial port using
c-program please help me with an example thanks for whom who reply
me soon

Sep 16 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
On 16 Sep 2006 07:55:00 -0700, "dev" <va************@gmail.comwrote
in comp.lang.c:
hi
i want to know about interfacing or accessing a serial port using
c-program please help me with an example thanks for whom who reply
me soon
The C language does not define an interface to any hardware devices at
all, because the language itself is completely platform independent
but hardware devices, and how you access them, are 100% dependent on
both the hardware and the operating system.

You need to ask about this in a newsgroup that supports programming
for your platform, or one specific to your compiler.

Taking a guess from the headers on your post, I would think that
news:comp.os.ms-windows.programmer.win32 is the group that you want.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Sep 16 '06 #2

P: n/a
dev wrote:
hi
i want to know about interfacing or accessing a serial port using
c-program please help me with an example thanks for whom who reply
me soon
Even if it were topical here (what it is not) you do not
say which machine you use, what "serial port" means (RS 232 ???)
which operating system, etc etc.

It is impossible in principle to know what you want.

Sep 16 '06 #3

P: n/a
In article <11*********************@i3g2000cwc.googlegroups.c om>,
dev <va************@gmail.comwrote:
i want to know about interfacing or accessing a serial port using
c-program please help me with an example thanks for whom who reply
me soon
Others have (correctly) pointed you to other newsgroups.

If you are looking for an example, then I suggest reading the C-Kermit
source. The Windows version of Kermit is proprietary but the
unified code for all the other versions is readily downloadable.

--
"law -- it's a commodity"
-- Andrew Ryan (The Globe and Mail, 2005/11/26)
Sep 16 '06 #4

P: n/a

"dev" <va************@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
hi
i want to know about interfacing or accessing a serial port using
c-program please help me with an example thanks for whom who reply
me soon
PC serial port page and code:
http://my.execpc.com/CE/AC/geezer/osd/serial/

Google/Yahoo search should help you find many similar pages. Search for
something like this, replace 16650 with the chip you want:

+"serial port" +uart +code +16650
Rod Pemberton
Sep 18 '06 #5

P: n/a
dev

windows platform and i want to access lpt port for controlling a motion
device ex:car(toy)

Sep 20 '06 #6

P: n/a
dev wrote:
>
windows platform and i want to access lpt port for controlling a
motion device ex:car(toy)
All of this is off-topic here, I guess. You didn't include any quotes
so it's a bit hard to say. As you can't do what you ask in ISO standard
C, you need to find a newsgroup dedicated to your platform.


Brian
Sep 20 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.