Author |
Message |
Topic: software RS232 problem! help! |
ADN
Replies: 21
Views: 22133
|
Forum: General CCS C Discussion Posted: Fri Feb 17, 2006 1:54 pm Subject: software RS232 problem! help! |
@ckielstra: the compiler version is 3.236
@Humberto: I have already used fgetc() without kbhit() but it didnt wait for any characters and it has always 0x00 character received without that I have ... |
Topic: software RS232 problem! help! |
ADN
Replies: 21
Views: 22133
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2006 1:41 pm Subject: software RS232 problem! help! |
I am using a 4 Mhz crystal. And it works smoothly. |
Topic: software RS232 problem! help! |
ADN
Replies: 21
Views: 22133
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2006 12:57 pm Subject: software RS232 problem! help! |
sorry Humbrto, you r right!
here are the fuses I am using and the different setup commands:
#FUSES NOWDT //No Watch Dog Timer
//#FUSES WDT128 //Watch ... |
Topic: software RS232 problem! help! |
ADN
Replies: 21
Views: 22133
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2006 12:51 pm Subject: software RS232 problem! help! |
Which compiler version are you using? It might be a compiler bug.
Does your program work when you move the receive PIN_A2 to a pin on another port, for example port B?
I am using the PCWH versio ... |
Topic: software RS232 problem! help! |
ADN
Replies: 21
Views: 22133
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2006 12:33 pm Subject: software RS232 problem! help! |
What does the rest of your RS-232 interface look like? Do you use an interface chip like the MAX-232?
exactly, I am using MAX232 |
Topic: software RS232 problem! help! |
ADN
Replies: 21
Views: 22133
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2006 12:21 pm Subject: software RS232 problem! help! |
PIN_A2 should be high when idle, did you check this ?
Humberto
yes I have checked this and both pins A1 and A2 are high |
Topic: software RS232 problem! help! |
ADN
Replies: 21
Views: 22133
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2006 12:19 pm Subject: software RS232 problem! help! |
Code:
RB_counter=0;
while(1)
{
do
{
// wait here...
}while(!kbhit(commu));
if (kbhit(commu))
{
alps_in_data
but I think this ... |
Topic: software RS232 problem! help! |
ADN
Replies: 21
Views: 22133
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2006 12:03 pm Subject: software RS232 problem! help! |
I have already added this command
setup_adc_ports(NO_ANALOGS|VSS_VDD);
so it is obviously not the cause of the problem
ADN |
Topic: software RS232 problem! help! |
ADN
Replies: 21
Views: 22133
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2006 11:11 am Subject: software RS232 problem! help! |
Hello,
I am using a PIC18F2550 which has a software R232-connection to the PC. I want that the RS232 waits till it gets 8 characters from the PC.
This is my code:
#use rs232(baud=57600, ... |
|