> >I compensate for this by reading the firmware version from the > >PIC every time the software on the computer starts. The PIC or > >RS232 returns "garbage" (which I dont display) and after that > >the system works fine. I have a problem when the master unit > >is switched on when the software is already running. > > Do you clean out the rxbuf and txbuf registers during the initialisation? > These will contain garbage characters at power up, which may be what you are > seeing. Get a copy of Fr. Macghee's uart.zip and have a look at the comments > in that for all the "gotcha's" relating to using the uart. I found the problem. I dont use the uart for this application. The Data Tx Pin to the RS232 was low when the PIC starts. The data receive routine corrected the pin to active high. So all the following data was correct. Thanks -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu