On Tue, Jan 22, 2002 at 12:12:56AM +0100, x wrote: > Hello Fellows! > > My project halts because I got the following problem: > > Serial (rs232) communication between pic and pc is no problem > Serial Communication (max=2kbaud) between two pics.... Doesn't work > > Does anybody know some good routines to do the job (the timing must be 100% I think), the project is running on a 4MHz Pic16F84. > > Any suggestion are really welcome! A few suggestions: 1) You're probably not running your line to the PC a 2kbps. Try testing at the same speed you tested to the PC. 2) Since the PC has hardware for doing serial, it probably has no problems with characters being sent back to back with no delay. However your PIC routine may have some issues in terms of storing/processing and then getting back in time for the next character. Try adding some delay between characters for your transmitter. 3) And the one you probably don't want to hear. It's very likely that you are using an obsolete part. As most list members that have been around for a while well know, I am the herald for the successor to the 16F84, the 16F62X family. It would be perfect for this application because it has a built in hardware USART that will handle all of these issues for you. In addition Fr. Thomas McGahee has compiled an excellent annotated program for managing the USART that describes all the pitfalls in a prefectly working application. It's called PICUART and you can find it here: http://mcgahee.freeservers.com In brutal honesty the 16F84 often makes you as the designer work much harder that you really need to. The only two advantages are that usually you have 16F84's on hand (heck I still have a few 16C84's floating around my junk box!) and there's a lot of tutorials and code specifically designed for the 16F84. In 1997 it was the best part for a lot of small jobs. But in 2002 the 16F628 and brethren can be used as a drop in replacement for a 16F84. It's really worth the effort to check out. Hope this helps, BAJ -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu