Hi James - I am pleased you have a working solution . It would be good to r= eally understand what happened in the first versions though. Stephen -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of= James Wages Sent: Friday, 1 September 2017 6:20 PM To: piclist@mit.edu Subject: RE: [PIC] PIC16F18854 PORTB Read problem Stephen, I resolved it in the Microchip forum here: http://www.microchip.com/forums/m/tm.aspx?m=3D1011143 James Wages > On Aug 31, 2017, at 1:00 AM, piclist-request@mit.edu wrote: >=20 > Hi James - >=20 > When you say it is misread, do you mean that it is always HI or always LO= ? > Also, are you sure about your individual tests? It seems you are reversin= g the bit order- RB0 =3D> RAMa,7 etc... Hence RB5 will be in RAMa,2, not RA= Ma,5 as might be expected. >=20 > Stephen >=20 > ----- -- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/chang= e your membership options at http://mailman.mit.edu/mailman/listinfo/piclis= t --=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 .