Hi, Beginner mode :) Could someone explain the use for the TRIS (TRISTATE) register in a C54? In particular: MOVLW 0x0F ; load the working register 'W' with the control code for ; the data direction register, in this case the HEX ; number 0F to set the port as inputs TRIS 5 ; set the data control register for register 5 which is ; port A by moving the data in W to the data control ; register for the port In the PIC16C54 datasheet I find the TRIS operand means: Description: TRIS register 'f' (f=5,6 or 7) is loaded with the contents of the W register. is the TRIS register PORT A? i understand moving the data (MOVLW 0x0F) if it set the data control register for register 6, would that be PORT B? i think its just the wording of the comment that is confusing me. thanks in advance, bernard -- Bernard Tyers*Dept. of Physical Sciences*Dublin City University*P:01.7005273*L:N117*W:frank.physics.dcu.ie/~bty -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu