![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hey all, I'm writing this code for PIC. When I select the bank 1 for my 16f877, i use BSF STATUS,RP0 followed by CLRF TRISC BSF TRISC, 2 BSF PIE1, CCP1IE for using input capture. When compiling, the compilers says the operand(in this case TRISC and PIE1) is not in bank 0. Why does it say not in bank 0 when I've changed the status to bank 1? Anyone can help? Thanx | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Allrite.... Thanx nigel....i was trying to figure why for such a long time. :? But why if I write like CLRF TRISC & 7F it has no message? Thank you | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
but why would you use such an instructions what you are doing is clearing the file on adress TRISC(87H) & 7F | ||
| |
| | (permalink) |
| Hey. I'm not sure why the instruction is that way because that's how my fren taught me to clear the message instruction. Guess it doesnt matter now since the messages doesnt play important roles :P | |
| |