sarah wrote:
hI,
I have a project. I need to realise serial communication between PC
and Altera FPGA in c or c++. The function of FPGA is working well. it
can send data to uart.
Does anybody know how to realise it in c or c++?
Thanks
sarah
As others have stated, serial ports are a platform specific issue.
I highly suggest you ask in a Windows or MSDOS newsgroup. They
will have better knowledge about how to program _their_ serial
port.
Some platforms require a program to use operating specific
functions. Others can access the port directly. Of those,
some platforms map the port as an address others require
special I/O port instructions. I've worked on both kinds
of platforms and I prefer the memory mapped devices.
Also, serial ports are very common. Somebody, somewhere, has
already written code for the serial port. If you don't get
any responses from the Windows or MSDOS newsgroups, try
searching the web for serial port libraries.
Read the documents below. At least one has a list of
newsgroups that would benefit you.
--
Thomas Matthews
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html