Clarifying PIC SPI communication and settings

Thread Starter

camerart

Joined Feb 25, 2013
3,730
Hi,
I'm trying to understand how the MSG1 CODE works.
1/LEN
------------------------------------------------------------------------------------------
The Len() Function returns the numeric value representing the number of characters in A String variable Or constant, that is the only argument of the Function, And stores it in A Byte Or Word variable:
Dim i As Word
i = Len("abcde")
i variable i will contain the number 5.
------------------------------------------------------------------------------------------
In the MSG1 section of the program, there are 2x parts: msg1 and msg2.
If I change the length of msg1 'say' AAAAAV instead of AAAAA, but leave msg2, what needs to change (in both PICs)? I notice that msg1 is used for both msg1 and msg2.
C.
 

Thread Starter

camerart

Joined Feb 25, 2013
3,730
hi,
This is Slave Code that was written to communicate withe Master Code that I posted a couple of posts earlier, it may help you checking thru codes.
E
Merry Christmas E,
Thanks for that.
As you know, I had both PICs talking to each other a couple of days ago, but then they stopped.
I'm checking through what could be stopping it, and noted a few questions in you program. Will you be good enough to have a look at the attachment, where the ?????? are, please?
Cheers, C.
 

Attachments

Top