> Are you saying default analog is on? I would say that for *any* pin on *any* PIC that I have seen, that has mixed analog/digital modes, analog mode has always been the reset default. This is becuse you do not want a digital pin to be driven from an analog source due to the risk of high input currents. Jan-Erik. Andre Abelian wrote 2013-11-27 22:00: > Good thinking Martin, Jtag is off but analog I didn't do anything and > SPI Input has analog function too. are you saying default analog is on? > if yes then this might be the issue. let me try it. > > thanks > > AA > > > > On , Andre Abelian wrote: > > "SPI IN" I was trying to say "to EEPROM SPI IN" so I configure output in > order to send data to target SPI input > > > > > > On Wednesday, November 27, 2013 11:12 AM, Martin Klingensmith > wrote: > > On 11/27/2013 11:40 AM, Andre Abelian wrote: >> TRISBbits.TRISB5 =3D 0; // "SPI IN" TRISBbits.TRISB4 =3D 1; // "SPI >> OUT" > > I usually specify MOSI and MISO to remove the ambiguity around out for > 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 .