New DV3400

Auto Memory Compression for Maximum Sampling

SALES:
972-272-9392
FAX:
972-494-5814
EMAIL:
»Sales
»Support
»IT Department

TechTools products also available at:
United States Canada Japan
MOV [to OPTION]

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 ‘ ! ’