serial.h
An application used to vote, for example in the school, where a teacher have a
lot of student and want to know their respons to a question. The teacher using
a PC can see the answer of all student on his PC. every student have one of
this box and they are connected through RS422 and the PC using a rs232/rs422
converter make a polling for each one of this box and can see the key pressed.
(by Gianni Franchi).
// Bit delay for 9600 baud 1/9600 = 104 ms
// change it for different baud rate
#define BIT_DELAY 100 // 9600
#define NO_CHAR 0x1234
// variabile that increment ever 10.6 ms
unsigned long MS_TIMER;
// Function definition for serial communication
void TxChar (char ch);
int RxChar ();
void Init_Serial ();
http://www.sourceboost.com/home.html
Copyright © 2002-2006 SourceBoost Technologies