j.tang wrote: > > Hello guys: > I am now dealing a project that need two pics to communicate by using hand > shaking . Can somebody warmhearted give me some program or tips to do this. > I use porta bit 1 and 2 as hand shaking line. > thank you Hi there, Depending on what type of pic you are using (with or without uart) you can just send serial back and forward. If you dont have a uart the other chip depending what else it is doing may be too busy to get back in time to see the start of a serial bit. In these cases you can get sneaky and use the rx line comming from the other chip as a request for attention, eg pull it low and leave it low until you receive data comming from the other chip. while it is low you will have to keep a close watch on incomming data. regards, -- Lee McLaren lmclaren@trumpet.com.au Comstra pty. ltd. lmclaren@comstra.com.au 2 Kirksway place phone 03 62244488 Hobart Tasmania fax 03 62244601 Australia 7000 mobil 018 138682 'It was five hours of Boggs's "channelling". After three hours I asked him to summon up the soul of Jimi Hendrix and requested All Along the Watchtower. You know, the guy's been dead twenty years but he still hasn't lost his edge' Mulder