Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

just learning assembler

Status
Not open for further replies.

t.man

New Member
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:
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
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top