View previous topic :: View next topic |
Author |
Message |
arunjerard
Joined: 28 Feb 2012 Posts: 1
|
pic16f877a serial communication |
Posted: Tue Feb 28, 2012 8:52 am |
|
|
Hey ppl,
I'm working on a project in which I've to send a number from one pic16f877a to another one of the same kind, so that the data could be processed there. No matter what I do, its not working :( ... The data is sent, but is not received correctly.
Could somebody please help me with at least the smallest example of pic to pic serial communication that works perfectly. I tried googling, but I couldn't find anything.
I'm kinda desperate here. Please do help.
Thanks. |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1934 Location: Norman, OK
|
|
Posted: Tue Feb 28, 2012 9:10 am |
|
|
OK, look at the top of the .lst file in your compiler directory and give us your
compiler version ( 3.xxx or 4.xxx) and then show us what code you have so far. _________________ Google and Forum Search are some of your best tools!!!! |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9245 Location: Greensville,Ontario
|
|
Posted: Tue Feb 28, 2012 10:57 am |
|
|
Have you even looked at the examples CCS kindly supplies in the EXAMPLES folder ?? What about opening the HELP files and looking in the FAQ section where they show and tell how to do serial communications?
It's the same FAQ they had back in 1999, the example worked then for me. it has to work for you today!!
Also HOW do you know it's the receiving PICs problem? You haven't shown us either program..... AND what hardware are you using ??? |
|
|
gpsmikey
Joined: 16 Nov 2010 Posts: 588 Location: Kirkland, WA
|
|
Posted: Tue Feb 28, 2012 7:27 pm |
|
|
Another key piece of information missing is the baud rate you are trying to run at and are you using the internal uart or bit-banging ?
mikey _________________ mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3 |
|
|
|