At first, hi everyone I'm just arriving here and I would like your help =)
I have:
- a PC with Windows XP SP2,
- Turbo C++,
- DB9 serial connections,
- MAX232 transceiver and
- ADS7824 A/D converter.
I know that there is a function from some library that allows parallel communication (I think outportb, inportb,...) but, how can I communicate in a serial RS232 interface?
The thing I want to do is: take an analog signal (range 0V to 5V) and convert it serially to digital with ADS7824, then use its output through a MAX232 to inject this into the COM port of the PC. Ok, my problem is, how can I read in C this data arriving at the COM port, and how can I interpret it (just for example: 8 bits arrived -> 1 byte -> 1 character ASCII -> print it on screen)?
Anyone can help me with some code lines/libraries? Thanks,
Everton