Author |
Message |
Topic: Rx Tx |
jji
Replies: 17
Views: 19932
|
Forum: General CCS C Discussion Posted: Fri Jan 18, 2008 2:41 am Subject: Rx Tx |
Interesting. If I disconnect the external power source for max232 there is no problems reading from PIC, but if it is attached I'll get garbace again. Looks like it has something to do with the proble ... |
Topic: Rx Tx |
jji
Replies: 17
Views: 19932
|
Forum: General CCS C Discussion Posted: Wed Jan 16, 2008 2:06 am Subject: Rx Tx |
Try connecting a led with 180 Ohm series resistor from the Rx input of the PIC to ground.
Unfortunately I don't have resistor/led in hand. I'll buy some first aid- collection of miscallenius elect ... |
Topic: Rx Tx |
jji
Replies: 17
Views: 19932
|
Forum: General CCS C Discussion Posted: Tue Jan 15, 2008 7:39 am Subject: Rx Tx |
You assume the receive buffer is empty on program start but this might not be the case.
Yep, this solved the echoing issue. Thanks!
Double check your hardware, especially the Tx line from PC ... |
Topic: Rx Tx |
jji
Replies: 17
Views: 19932
|
Forum: General CCS C Discussion Posted: Tue Jan 15, 2008 6:27 am Subject: Rx Tx |
Ok, i checked the max232 part and it should be ok. After testing it I get decent replies from PIC but there is some strange behaviour. The code I'm using follows:
char c = '0';
int i = 0b00000001; ... |
Topic: Rx Tx |
jji
Replies: 17
Views: 19932
|
Forum: General CCS C Discussion Posted: Tue Jan 15, 2008 3:33 am Subject: Rx Tx |
I used [url=http://sodoityourself.com/max232-serial-level-converter/]these instructions for the max232. I understood it should work. |
Topic: Rx Tx |
jji
Replies: 17
Views: 19932
|
Forum: General CCS C Discussion Posted: Tue Jan 15, 2008 3:08 am Subject: Rx Tx |
Actually the provided example didn't work for me. Could be hardware problem as there were on the thread. I'll double check that first. |
Topic: Rx Tx |
jji
Replies: 17
Views: 19932
|
Forum: General CCS C Discussion Posted: Tue Jan 15, 2008 1:43 am Subject: Rx Tx |
I'm interested about this too. I'm using 16f690 and have built a serial level converter from max232.
If there is some short tutorial, which would show a simple example how to read/write data from s ... |
|