Pic16f690 Serial Communication C Code Operators
C# Serial Communication
I have done serial port RS-232 connection in C++ using 16-bit compiler (I was using Turbo C++ IDE). It included header file bios.h
which contain all the required functions for reading values from the port. Now I want to read value from serial port using C++ 32-bit Mingw compiler. I am using Dev CPP as my IDE. Here I could not find bios.h
. Are there any special header files available for this purpose in Mingw? I am using 32-bit compiler now because in my college project I got to use Exception handling which I guess is not supported in Turbo C. Please help me out.
Hi-Tech C I2C Master Example Code. Here is some example code for a Microchip 12F1822 microcontroller which is setup as an I2C Master to communicate with one of our Servo.Pro chips (which is an I2C slave). Both read and write functions are used and it is written using the free Hi-Tech C compiler. PIC16F690 EUSART. PIC 16F690 contains a built -in serial communication unit. In serial communication, it is necessary that the transmitter. C language has two shift operators shift right and shift left operator does not exist.
Communication Channels
iammurtazaiammurtaza1 Answer

Please take a look here:
- RS-232 for Linux and Windows1)
- Windows Serial Port Programming2)
- Using the Serial Ports in Visual C++3)
1)You can use this with Windows (incl. MinGW) as well as Linux. Alternative you can only use the code as an example.
2)Step-by-step tutorial how to use serial ports on windows
3)You can use this literally on MinGW
Here's some very, very simple code (without any error handling or settings):
Now you can use WriteFile()
/ ReadFile()
to write / read bytes.Don't forget to close your connection: