Re: Trying to send RS232 with PIC sends incorrect data in TeraTerm



In article <1176173137.950740.117780@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
cbarn24050@xxxxxxx says...

Firstly 16 series pics don't work well with C.
They work well enough for his trivial program to function.

If you must use C switch to the 18 series (I think there is a pin compatable one for
your chip) you'll get much better results.
The 18 series would not fix his problem here.

Secondly slow periferals
like UARTS should use their interrups with a buffer. Your program just
writes to the buffer and the ISR sends out the data, you do a similar
thing with the reciever.
You know nothing about the 'C' cross compiler he is using.
CCS does NOT use any buffers or ISRs to send out data when using the
built in functions. It just uses polled IO.

Thirdly printf is a monster, to be avoided if
at all possible (you only need it if you are sending floating point
numbers).
I don't like to throw printf around either, but NOTHING you offered up
will do anything to help this guy.
WE ALL GET IT. You don't like PIC MCU's. Great.
Now, just for fun, see if you can give him some info that just might
help him along.

Jim

.