Re: Trying to send RS232 with PIC sends incorrect data in TeraTerm
- From: cbarn24050@xxxxxxx
- Date: 11 Apr 2007 09:51:33 -0700
On Apr 10, 4:19�pm, James Beck <j...@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
In article <1176173137.950740.117...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
cbarn24...@xxxxxxx says...
Firstly 16 series pics don't work well with C.
They work well enough for his trivial program to function.
True but so what, I expect he wants to do something practical
sometime.
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.
See previous answer.
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.
I do know nothing of the CCS compiler. You have missed the point of
the statement. Read it slower and see if you can spot the point I'm
trying to make.
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.
It might if he reads better than you.
�
WE ALL GET IT. You don't like PIC MCU's.
Wrong again, I've been using PICS since the 80's, I like them.
�Great.
Now, just for fun, see if you can give him some info that just might
help him along.
Jim
I have some routines, if he emails me he can have them. Their not
written for the PIC and they rely on an understanding of how
interrupts work so he may not yet be ready for them just yet.
.
- Follow-Ups:
- Re: Trying to send RS232 with PIC sends incorrect data in TeraTerm
- From: James Beck
- Re: Trying to send RS232 with PIC sends incorrect data in TeraTerm
- 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
- Re: Trying to send RS232 with PIC sends incorrect data in TeraTerm
- From: James Beck
- Trying to send RS232 with PIC sends incorrect data in TeraTerm
- Prev by Date: Re: Time Domain Reflectometry
- Next by Date: Re: Future: 0603 versus 0402 parts
- 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):
Relevant Pages
|