Serielle Schnittstelle und C
-
Hallo,
wollte fragen ob jemand gute tutoriasl zu seriellen schnittstelle kennt??forensuche und google haben bei mir nichts ausgespuckt...
-
Naja ich bin mal davon ausgegangen das du c/c++ programmierst
#include <windows.h> //Deklaration VOR der main-Funktion void WINAPI PortOut(short int Port, char Data); void WINAPI PortWordOut(short int Port, short int Data); // etc... int main() { if (LoadIODLL()==1) { return -1; //Fehler } PortOut(0x0378,0xff); //Ausgabe von 0xff am Parallelport SetPortBit(0x0378,0x80); //Höchstwertiges Bit am Port setzen ClrPortBit(0x0378,0x80); //Höchstwertiges Bit am Port löschen NotPortBit(0x0378,0x80); //Höchstwertiges Bit am Port negieren UnloadIODLL(); return 0; }
Ausserdem solltest du mal hier schauen -> [gg]site:msdn.microsoft.com
-
Welches Betriebssystem? Schau dir mal die FAQs an.