Good thinking Martin, Jtag is off but analog I didn't do anything and SPI I= nput has analog function too. are you saying default=A0 analog is on? =A0if yes then this might be the issue. let me try it. thanks AA=A0 On , Andre Abelian wrote: =20 "SPI IN" I was trying to say "to EEPROM SPI IN" so I configure output in or= der to send data to target SPI input =A0=A0 On Wednesday, November 27, 2013 11:12 AM, Martin Klingensmith wrote: =20 On 11/27/2013 11:40 AM, Andre Abelian wrote: >=A0 =A0 =A0 =A0 =A0 TRISBbits.TRISB5 =3D 0;=A0 // "SPI IN" >=A0 =A0 =A0 =A0 =A0 TRISBbits.TRISB4 =3D 1;=A0 // "SPI OUT" I usually specify MOSI and MISO to remove the ambiguity around out for=20 who and in for who. - Martin --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .