Can I take a look at your serial routine? Done a LOT of PIC serial comm stuff, never had a problem before... Did you READ the RXREG first a coupla times before starting? That sweeps out startup cobwebs... --Bob Kyrre Aalerud wrote: > I know the delay is too short. I am fixing that. > But it seems the detection of a received byte fails to start with, hanging > the app ? > > Kyrre > > > ----- Original Message ----- > From: "Bob Axtell" > To: > Sent: Monday, June 28, 2004 11:13 PM > Subject: Re: [PIC:] PIC16F88 USART misbehaving ? > > > >>Kyrre Aalerud wrote: >> >> >>>Hi again people... I found a curious problem with my PIC16F88. >>>I have configured USART to asynch mode and it receives and transmits > > data as > >>>it should. >>>I wait for the RCIF on register PIR1 to become 1 before reading a byte > > from > >>>the RCREG. >> >>>However, upon init I am waiting for a single character, when having RCIF > > = 0 > >>>to start with. >>>It appears I need to transmit 3 bytes before the buffer is full and I >>>actually read a byte? >> >>Why should the transmitter have anything to do with the receiver? >> >> >>>This isn't supposed to happen? Anyone else experienced the RCIF to not > > be > >>>updated after receiving the first byte? >> >> >>BTW, the 8mS allowance to have a response is NOT long enough for >>Windows, which sometimes is too busy to post the serial character. Needs >>to be 1/2sec. >> >>--Bob >> >> >> >>> >>>Kyrre >>> >>>-- >>>http://www.piclist.com#nomail Going offline? Don't AutoReply us! >>>email listserv@mitvma.mit.edu with SET PICList DIGEST in the body >>> >>> >> >>-- >> >>Replier: Most attachments rejected >> -------------- >> Bob Axtell >>PIC Hardware & Firmware Dev >> http://beam.to/baxtell >> 1-520-219-2363 >> >>-- >>http://www.piclist.com#nomail Going offline? Don't AutoReply us! >>email listserv@mitvma.mit.edu with SET PICList DIGEST in the body >> > > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > -- Replier: Most attachments rejected -------------- Bob Axtell PIC Hardware & Firmware Dev http://beam.to/baxtell 1-520-219-2363 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu