Quote Originally Posted by CuriousOne View Post
Does not works anyway....
In the original program there is this line

TRISA.5 = 0 ' Set CS to output

I do not see the equivalent line in your program.

Which would be

TRISB.3 = 0 ' Set CS to output