>> // Give the output bits some nice names (which I >> noticed you did, and then >> commented out) >> >> #define CS RA0 // Chip Select output >> #define SCLK RA1 // Serial Clock >> output >> #define SDI RA2 // Serial Data In output >> >> // Make CS high: >> CS = 1; >> >> // Make SCLK low >> SCLK = 0; > >Hehe, weird. I had exactly that code, totally >identical, it first, but I seemed too simple :). >Now, I found this in some code of Mike Pearce: perhaps I missed something in the early posts, but there is something strange about all this. You are bit-banging an SPI interface, why not use the SPI hardware interface that is in the chip? The other thing I wonder is how the chip is connected. Are you connecting the serial data out line from the PIC to the SDI line of the other chip, and the SDI line of the PIC to the SDO line of the other chip? -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body