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