Quote Originally Posted by Sam
Thanks for the help so far,
I can send from pc to pic and rx from pic using the code below with the settings I first posted and the pic does reply "got it" when I enter an "f".

CODE:

loop:
SerOut tx_pin,N9600,["waiting for f ",10,13]
SerIn rx_pin,N9600,["f"]
SerOut tx_pin,N9600,["got it",13,10]
GoTo loop


This works most of the time. But yes, I will change to a external osc and I don't have to use a 12F675, I have some 16F628A's and some F84's.

I really need to have an example,any example of the correct syntax to recognize and reply to a defined string of char's.

Thanks again,I'm trying to get my brain around working with serial.

Sam

If you're using the internal oscillator and it's messing up some of the time, switch to a lower baud rate. That might cure most of the problem. Also, try adjusting your OSC_CAL value. If you don't want to do that, use SEROUT2 instead of SEROUT. With that command, you can 'fine adjust' your baud to compensate for your oscillator being a bit out of whack.
I forget which-is-which, but I think if you get overrun errors, you're clock might be running fast, framing errors mean the clock is a bit slow (on the PIC that is).

JDG