Ruben J=F6nsson wrote: > Hi, > > I have used the multimedia timer to get better resolution than 55 > ms. My case > was transmitting on a half duplex RS485 line and I did the > turnaround with the > DTR signal. Calculating the time it would take to transmitt and set > the > multimedia timer to this time, when fired switched to receiving with > the DTR. Ok! I remember the use of APIs, for example this: Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Sleep (1) This will work on XP as well. > > Still, I had to set a delay for about 60ms before the receiving > microprocessor > could safely reply with it's packet. This was needed to work on W98, > 100MHz 486 > computers. I've thought exactly the same! > Another option would be to make a hardware switch. Set to TX when > the PC speaks > and back to RX when it has been silent some time (9 bits if TXing > 0x00 (or is > it 0xff?)). I like this one. Regarding what Alan said, I wont rely on Wplatforms. Anyway I have to cosider the reed switch velocity: Operate Time 0.5msec Max. Release Time 0.1msec Max. Thanks Dennis Crawley www.geocities.com/proyectosenpic -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist