PHXSYS wrote: > Hi everyone > > I hace a project where a stamp BS2 and a Pic16F84 are talking back and forth > on the same board (about an inch apart). The code utilizes 9600 baud. I have a > couple of questions. > > 1) For 9600 baud and bit timing should be 104us. The best I have been able to > do in my 16F84 program is 116us between bits, due to the way I have > implemented the code. This is consistent for both the serout and serin > routines. Can I communicate effectively with the BS2 with the slight offset in > timing? The BS2 will utilize its standard serin/out commands. > > 2) What kind of limitations do I have for baud rate in this application? Can I > run at 19,200 or even higher? Start off with a crystal that will give you zero error. They are available closeto most 'popular' frequencies. 1.8432MHz, 3.6864MHz, and 11.0592MHz spring to mind. You can get all the standard baud rates with these crystals. I can't remember the other frequencies, but I'm sure someone would add to this message. -- Friendly Regards Tjaart van der Walt mailto:tjaart@wasp.co.za |--------------------------------------------------| | WASP International | |R&D Engineer : GSM peripheral services development| |--------------------------------------------------| |SMS mailto: 0832123443@wasp.co.za (160 chars max)| | http://www.wasp.co.za/~tjaart/index.html | |Voice: +27-(0)11-622-8686 Fax: +27-(0)11-622-8973| | WGS-84 : 26¡10.52'S 28¡06.19'E | |--------------------------------------------------|