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.
If you didn't have the ^0x80 then the assembler would give the following warning,
"Message[302] : Register in operand not in bank 0. Ensure that bank bits are correct."
This is because TRISA has the value 0x85 (bank 1) and the largest allowable value if 0x7f. The ^0x80 converts 0x84 into 0x04 - another way to do this is &0x7F.
As long as you set/clr the bank select bits properly you can ignore this message. Another way to get rid of this annoying message is to do "errorlevel -302".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.