Re: Trying to send RS232 with PIC sends incorrect data in TeraTerm
- From: James Beck <jim@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 10 Apr 2007 11:19:57 -0400
In article <1176173137.950740.117780@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
cbarn24050@xxxxxxx says...
They work well enough for his trivial program to function.
Firstly 16 series pics don't work well with C.
If you must use C switch to the 18 series (I think there is a pin compatable one forThe 18 series would not fix his problem here.
your chip) you'll get much better results.
Secondly slow periferalsYou know nothing about the 'C' cross compiler he is using.
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.
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 ifI don't like to throw printf around either, but NOTHING you offered up
at all possible (you only need it if you are sending floating point
numbers).
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
.
- Follow-Ups:
- References:
- Trying to send RS232 with PIC sends incorrect data in TeraTerm
- From: jbitz34
- Re: Trying to send RS232 with PIC sends incorrect data in TeraTerm
- From: cbarn24050
- Trying to send RS232 with PIC sends incorrect data in TeraTerm
- Prev by Date: Re: What a newsgroup!!!
- Next by Date: Re: What a newsgroup!!!
- Previous by thread: Re: Trying to send RS232 with PIC sends incorrect data in TeraTerm
- Next by thread: Re: Trying to send RS232 with PIC sends incorrect data in TeraTerm
- Index(es):