Looking for Basic Pic-to-Pic Serial Example
I've been looking for an example that would allow me to connect two PICs with one wire and send asychronous data between them. Ideally I want to have 4 buttons on one PIC, press a button and have one of 4 corresponding LED's light on another PIC. Either software serial or hardware method would be fine as long as the code is fairly stripped down and commented. I've used serout a few times but haven't got the hang of serin yet (not many simple examples to be found).
I've been wading through search results for about 2 hours and have found only partially useful code. A lot of comments on read the manual haven't helped.
What I mostly find is that someone asks why their code doesn't work (and give a small snippit of uncommented code). At this point suggestions are offered and then they post "thanks I figured it out" with no indication to what actually worked.
Perhaps someone can post some commented sample code (PIC BASIC PRO preferred) that shows what I am looking for, or knows of some already posted code that my not have been readily apparent?
Also, I'd be happy to take my finished program and schematics and place them in the Code Examples forum when done.
Thanks