Author |
Message |
Topic: couldnt use int_rda interrupt for rs232 communication |
cmcnr
Replies: 11
Views: 29221
|
Forum: General CCS C Discussion Posted: Sat Mar 19, 2011 3:09 pm Subject: couldnt use int_rda interrupt for rs232 communication |
After i read that i added "getc(c)" code into int_rda interrupt.
That's not the correct syntax. You must read the CCS manual for
any function you use, and you must look at the many examp ... |
Topic: couldnt use int_rda interrupt for rs232 communication |
cmcnr
Replies: 11
Views: 29221
|
Forum: General CCS C Discussion Posted: Sat Mar 19, 2011 10:41 am Subject: couldnt use int_rda interrupt for rs232 communication |
I read the topic http://www.ccsinfo.com/forum/viewtopic.php?t=36800
The 'idle' state for TTL RS232, is with the signal _high_ (5v). A disconnected pin, is probably floating _low_. This is seen as c ... |
Topic: couldnt use int_rda interrupt for rs232 communication |
cmcnr
Replies: 11
Views: 29221
|
Forum: General CCS C Discussion Posted: Sat Mar 19, 2011 5:04 am Subject: couldnt use int_rda interrupt for rs232 communication |
Thank you for this information Ttelmah.I remove the disable and enable codes as you said and still working. But couldnt handle a problem yet.
"the program always go to the int_rda interrupt al ... |
Topic: couldnt use int_rda interrupt for rs232 communication |
cmcnr
Replies: 11
Views: 29221
|
Forum: General CCS C Discussion Posted: Fri Mar 18, 2011 3:48 pm Subject: couldnt use int_rda interrupt for rs232 communication |
I tried it without max232 Ttelmah. It is working as you said. From now,I will also get rid of goto's .
I read in a document that we need to use "disable_interrupts(int_rda)" code in interru ... |
Topic: couldnt use int_rda interrupt for rs232 communication |
cmcnr
Replies: 11
Views: 29221
|
Forum: General CCS C Discussion Posted: Fri Mar 18, 2011 3:25 pm Subject: couldnt use int_rda interrupt for rs232 communication |
If the schematic is of real hardware, then your programs will never work. You must use a MAX232 or equal chip as a level translator between the PICs. This is necessary for the ISR to function correctl ... |
Topic: couldnt use int_rda interrupt for rs232 communication |
cmcnr
Replies: 11
Views: 29221
|
Forum: General CCS C Discussion Posted: Fri Mar 18, 2011 2:49 pm Subject: couldnt use int_rda interrupt for rs232 communication |
I tried to use #int_rda interrupt but I couldn't be successful. I am trying to learn rs232 communication between two pic also pc. Master program works well as I tested with pc. Pc could read the infor ... |
|