MOV [to OPTION]

NOTE: These items have been discontinued for a long time.
We no longer support these products or offer alternatives.

We retain these pages so that users can see what their existing tools support and to provide download links to the final documentation and software versions. We have a few replacement parts left, but not many. Available items have an 'ADD to CART' or 'Buy Now' button next to them. Otherwise they are not available.

logo has a few items in stock as well.

NOTE:  Since the OPTION register on 'xx devices is readable and writable, it can be accessed as a normal File Register. To maintain upward compatibility with future devices,  these instructions should not be used when coding for 'xx devices.

 

 

MOV        !OPTION,#literal        Move literal into OPTION


Words:        2        Cycles:        2                Affects:        none

 

Operation:        Literal is moved into OPTION via W.

 

Coding:        MOVLW        literal

       OPTION

 

Note:        On 16C5x parts, you must use the explanation mark (!) before the word OPTION; this causes the assembler to assemble an OPTION instruction. On 16Cxx parts, the mark (!) is optional. Microchip added an OPTION register to the newer parts, so a regular MOV is possible, as long as your program is in the proper bank (usually bank 1). Microchip may remove the OPTION instruction in newer PICs, so they recommend against using the ' ! '

 

 

MOV        !OPTION,fr                Move fr into OPTION


Words:        2        Cycles:        2                Affects:        Z

 

Operation:        Fr is moved into OPTION via W. Z will be set to 1 if the value moved was 0, otherwise Z will be cleared to 0.

 

Coding:        MOVF                fr,0

       OPTION

 

Note:        On 16C5x parts, you must use the explanation mark (!) before the word OPTION; this causes the assembler to assemble an OPTION instruction. On 16Cxx parts, the mark (!) is optional. Microchip added an OPTION register to the newer parts, so a regular MOV is possible, as long as your program is in the proper bank (usually bank 1). Microchip may remove the OPTION instruction in newer PICs, so they recommend against using the ' ! '

 

 

MOV        !OPTION,W                Move W into OPTION


Words:        1        Cycles:        1                Affects:        none

 

Operation:        W is moved into OPTION.

 

Coding:        OPTION

 

Note:        On 16C5x parts, you must use the explanation mark (!) before the word OPTION; this causes the assembler to assemble an OPTION instruction. On 16Cxx parts, the mark (!) is optional. Microchip added an OPTION register to the newer parts, so a regular MOV is possible, as long as your program is in the proper bank (usually bank 1). Microchip may remove the OPTION instruction in newer PICs, so they recommend against using the ' ! '