PA3040
Advanced Member level 3
- Joined
- Aug 1, 2011
- Messages
- 883
- Helped
- 43
- Reputation
- 88
- Reaction score
- 43
- Trophy points
- 1,308
- Activity points
- 6,936
Dear All,
This is related to 16F877a MCU
As we all aware banksel directive can use to change from bank to bank
Ex
As per above, in front of bansele we must write name of SFR which we belong to the bank.
Now in bank1
Let's we assume now I need to transfer to the bank which PORTB belong
Ex
As we all ware PORTB register exists on two bank ( bank 0 and bank 2).
How can we confirm that above directive belongs to which bank.
Please advice
Thanks in advance
This is related to 16F877a MCU
As we all aware banksel directive can use to change from bank to bank
Ex
Code:
banksel TRISB
As per above, in front of bansele we must write name of SFR which we belong to the bank.
Now in bank1
Let's we assume now I need to transfer to the bank which PORTB belong
Ex
Code:
banksel PORTB
As we all ware PORTB register exists on two bank ( bank 0 and bank 2).
How can we confirm that above directive belongs to which bank.
Please advice
Thanks in advance