> Hi, > > It you use a bitbang software UART you can measure the start bit > duration and use it as a reference for other bit's position. That way > you can compensate for variations on the clock caused by temperature > changes. The temperature changes are usually not too fast. With the > hardware uart you better use a resonator... You can only measure the length of the startbit if you know that the first bit (D0) in the transmitted data is a one, which has the opposite level of the startbit. Sending the value 0 with 8 databits, no parity would give you a single pulse that is 9 bits long. Ruben ============================== Ruben Jvnsson AB Liros Electronic Box 9124, 200 39 Malmv, Sweden TEL INT +46 40142078 FAX INT +46 40947388 ruben@pp.sbbs.se ============================== -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body