Well Dont bother anyways.... I figured out myself after three intense days of PIC-coding I cracked the nut:) Variables were overwriting each others, The timer int was enabled... the list goes on and on:) Soren Knudsen > -----Original Message----- > From: Soren Knudsen [mailto:Soren_Knudsen@softhome.net] > Sent: Thursday, March 23, 2000 3:42 PM > To: PICLIST > Subject: Rs232 Rcv to PIC16F84 > > > Hi All! > > I'm Having major problems here:( Whatever I do I cant Receive > Data from the RS232 port of my computer! > > Single bytes work fine. But when I try to make a routine that > incree FSR each time a start bit occurs, reads the 8 bit and stop > bit and returns to wait for another Start bit things go mad some > of the bytes are delayed and some of the bytes bits are delayed > too. It looks like random delays to me. > > The PIC gets clocked from a 10 Mhz crystal which means that it > has 2500.000 cycles per second - correct me if I'm wrong. This > means that at 115.200 Baud rate (RS232) there are 21,7 cycles in > the PIC per RS232 Clock and that every byte is 217 PIC cycles > long right (including Start/Stop-Bits? > > The only Posible thing left causing the troubles as far as I can see is: > > A) Strange RS232-Port at pc > > B) Strange Buffer at PC-Port > > C) Strange Program Sending out the data (the Program used is a > Terminal prog called "Hyperterminal" that followed with Win98 SE). > > All help appreciated > Soren Knudsen