please dont rip this site

SX Embedded Controller Instruction

BANK fr

Description: Transfer fr .7:fr .5 into FSR .7:FSR .5
Operation: FSR = &( fr ) & 0xE0
Flags affected: none
Registers affected: FSR
Sources referenced: -
Cycles: 1
Opcode:
Details: SX Users Manual page # 74
Microchip PIC syntax:
Notes:

The three literal bits of “n” are loaded into the bank-select bits (the high three bits) in the FSR register. See: SX18/20/28AC and SX18/20/28AC75 Addressing Modes and FSR Register

In PIC16C54 compatible mode, only one bank is enabled and the three high bits in FSR are always set. (INCFSZ FSR still skips when FSR is initially 0FFh even though the result is 0E0h.)

On the SX 48/52, the BANK instruction only selects one of 8 banks in either the lower 8 or upper 8 banks. FSR.7 selects the lower or upper group of 8 banks. To select a bank, use MOV FSR, #literal or add an SETB FSR.7 instruction after the BANK instruction." See: SX48/52BD Addressing Modes and FSR Register

Note: the first engineering releases of the SX48/52 chips behaved differently: BANK affected bits 5,6 and 7 and bit 4 had to be set manually.

PAGE and BANK cause an unusual operation when preceded by a skip instruction such as BTFSS and INCFSZ. Both the PAGE or BANK instruction and the following instruction are skipped, and the operation takes 3 cycles. This is designed to handle the case of reference to registers in other banks which must be coded as a bank then a register reference. The skip will skip both the bank and the register reference instuctions. See Skip for more details. If the following instruction happens to be another PAGE or BANK then it is also skipped along with the next instruction, and the operation takes 4 cycles. Any number of PAGE and BANK instructions can be skipped in this manner. Interrupts don't interfere with this operation.


file: /Techref/scenix/inst/bank.htm, 3KB, , updated: 2005/4/22 11:55, local time: 2024/11/26 23:46,
TOP NEW HELP FIND: 
3.12.73.149:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/Techref/scenix/inst/bank.htm"> SX Embedded Controller Instruction - BANK fr</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .