Hi sam I use an ActiveX control to do serial comm on VC++6. This control is called CommX and is from GreenLeaf Software. It basically does the hardware handling on the PC and gives You methods, properties and events instead. For a free alternative check out http://codeproject.com/system/cserialport.asp which is a MFC class to wrap access to the Win32 APIs dealing with serial ports. I havn't tried this myself, though. I have also been told that in the free software section at www.taltech.com there should be a C/C++ code example of a terminal program. Have not checked this myself either. Regards Ruben Date sent: Tue, 10 Jul 2001 13:55:40 +0100 Send reply to: pic microcontroller discussion list From: sam woolf Subject: [OT]:serial port communication To: PICLIST@MITVMA.MIT.EDU > I'm having a bit of a nightmare doing serial port communication > between a computer and a 16f84. The pic is sending data at 19200 baud > to the computer. I have been using a c program based on craig > peacock's at www.beyondlogic.org/serial/termpoll.c . But unfortunately > I am losing significant amounts of data. I think this is because the > code needs to be interrupt driven but I can't get the interrupt driven > version (www.beyondlogic.org/serial/buff1024.c )to work... My compiler > does not like the weird pointer-to-function or whatever it is stuff > going on with the interrupt function and I cant get my head around > what its supposed to be doing either... I'm using microsoft visual c++ > 5.0 and have already had to make several adjustments such as changing > all the inportb()s to _inp()s... does anyone know what I need to do to > make this work, or does anyone have any simple to understand and > working microsoft visual c++ 5.0 code for doing interrupt driven > serial comms?? I know this is slightly off topic but I am at my wits > end!! SW > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > ============================== Ruben Jvnsson AB Liros Elektronik Box 9124, 200 39 Malmv, Sweden TEL INT +46 40142078 FAX INT +46 40947388 ruben@pp.sbbs.se ============================== -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads