interrupt based serial communication in microc
hi
npf
H/W configuration
connect Rx mc1 to Tx mc2
connect Tx mc1 to Rx mc2
No need of any level shifting unless it is at far distance.
S/W protocol.
Enable serial interrupt on display side microcintroller.
keep checking a flag indicating that serial buffer is full.
On every serial interrupt,
receive byte and check is it a start byte,
if yes then store it, and enable flag saying that check foe end byte now.
now on every serial interrupt store that byte, till u get end byte,
After receiving end byte set flag serial buffer is full.
since u r in checking process of Serial buffer full, u will get out of it and process that data received in serial buffer,
mean while set serial buffer empty, to enable next serial buffer,
Selection of BAUD RATE.
Select baud such that u have ample time for processing,
Example:9600 baud will take 1mSec to get one byte. with uC we can do a lot in 1mSec.