Rob, I have something in CCS C, that I'll offer if it's of interest. It's pretty simple drop-in subject to some restriction or understanding of what it does and your runtime environment. Per the discussion below, it enables for every byte transmitted. This was reasonable by my spec reading. It disables when the buffer is empty. It buffers in and out, but your application may require some changes. I have a blocking routine that blocks when the buffer is full and one that drops. Greg Coleman > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Rob Hamerling > Sent: Thursday, August 01, 2002 12:35 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: ISO 9141, UARTS, and Maximum baud rate > > > Hello David, > > David Duffy wrote: > > > > I haven't followed this thread but I always send the first byte > > manually, then enable the transmitter interrupt to send the rest > > of the packet in the interrupt routine as each byte is done. > > I then disable the transmitter interrupt when I know I'm sending > > the last byte in that packet. That has always worked for me. > > Seems pretty similar to my solution! > Being rather new to PICs (me!) it costed me some time to find out about > having to enable/disable TX interrupts with each packet. At least it is > quite different from similar software I wrote for the PC.... > The only interrupt driven RS232 PIC software I could find was Tony > Kubeks example in ASM, but this doesn't have all the features I want. > Do you (or anybody else) know about a published example? > > Regards, Rob. > > -- > Rob Hamerling, Vianen, NL phone +31-347-322822 > homepage: http://www.robh.nl/ > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.