You are only setting Bit 0 of PortB to input... Try this...
Code:TRISB=%11111111 TRISC=%00000000 Option_Reg.7=0 Mybyte var Byte Loop: MyByte=PortB PortC=Mybyte Pause 100 Goto Loop End
You are only setting Bit 0 of PortB to input... Try this...
Code:TRISB=%11111111 TRISC=%00000000 Option_Reg.7=0 Mybyte var Byte Loop: MyByte=PortB PortC=Mybyte Pause 100 Goto Loop End
Bookmarks