Rajiv Thakur wrote: > > The Port B(0-7) of 16F84 is configured as INPUT. > > The question is : > 1. Is there a single command that can read all the pins of Port B(0-7) at > one go and transfer the hexadecimal value to the accumulator. > > My thought process is that as Movwf Port B, transfers the value of > accumulator to Port B (useable by external hardware) there should be single > command for reading the Input as well at one go rather than reading it > bitwise. > > Thanks > > Rajiv Thakur movf PORTB,W ; read PORTB into W -- Best regards Tony mICros http://www.bubblesoftonline.com mailto:sales@bubblesoftonline.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics