Serial comm, especially RS-232 serial, without software or hardware handshaking is going to burn you eventually. Do you plan on implementing XON/XOFF support or hardware line checking on the PIC side? ----- Original Message ----- From: Nick Veys To: Sent: Sunday, September 29, 2002 4:32 PM Subject: [PIC]: Proper Serial I/O > Hi all, planning on doing a little serial i/o and want to get a good > idea before writing code that may end up worthless due to a false > assumption. :) > > I plan on using the 16F876's USART in Asynch mode to talk to a HAM TNC, > 9600 baud 8N1. Looking through the datasheet, I see the TRMT bit is set > once a transmission is complete, is it safe to assume I can being a new > transmission once that bit is set? I've used the SPI ports quite often, > and there is a transmit flag there which I use for the same purpose and > have no problems, but I'm wondering if since these commands might be > coming in too fast to be buffered by the slow TNC on the other end, if a > wait would be warranted after the transmission... > > I'm hoping I can just keep firing away on the port but I'd like some > words of wisdom just in case. > > Thanks > > Nick > > nick@veys.com | www.veys.com > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads