t.man New Member Nov 10, 2008 #1 hi! just read the first tutorials on assembler. i.e turning LED ON and OFF. my question: is it a must or a tendency to use w register(movlw) to assign values to other registers, like TRISA, PORTA. or is there any way i can assign, say PORTA, a value without first moving it to a w register? Last edited: Nov 10, 2008
hi! just read the first tutorials on assembler. i.e turning LED ON and OFF. my question: is it a must or a tendency to use w register(movlw) to assign values to other registers, like TRISA, PORTA. or is there any way i can assign, say PORTA, a value without first moving it to a w register?
blueroomelectronics Well-Known Member Nov 10, 2008 #2 you can set it one bit at a time with bsf or bcf instructions. Bytewise you must use the working register on the 12 & 14 bit core PICs
you can set it one bit at a time with bsf or bcf instructions. Bytewise you must use the working register on the 12 & 14 bit core PICs