PIC16C64X & PIC16C66X
10.1
Special Function Registers as
Source/Destination
The PIC16C64X & PIC16C66X鈥檚 orthogonal instruction
set allows read and write of all 铿乴e registers, including
special function registers. There are some special situ-
ations the user should be aware of:
10.1.1
STATUS AS DESTINATION
If an instruction writes to STATUS, the Z, C, and DC bits
may be set or cleared as a result of the instruction and
overwrite the original data bits written. For example,
executing
CLRF STATUS
will clear register STATUS,
and then set the Z bit leaving
0000 0100b
in the reg-
ister.
10.1.2
PCL AS SOURCE OR DESTINATION
Read, write or read-modify-write on PCL may have the
following results:
Read PC:
Write PCL:
Read-Modify-Write:
PCL
鈫?/div>
dest
PCLATH
鈫?/div>
PCH;
8-bit destination value
鈫?/div>
PCL
PCL
鈫?/div>
ALU operand
PCLATH
鈫?/div>
PCH;
8-bit result
鈫?/div>
PCL
Where PCH = program counter high byte (not an
addressable register), PCLATH = Program counter
high holding latch, dest = destination, WREG or f.
10.1.3
BIT MANIPULATION
All bit manipulation instructions are done by 铿乺st read-
ing the entire register, operating on the selected bit and
writing the result back (read-modify-write). The user
should keep this in mind when operating on special
function registers, such as ports.
DS30559A-page 74
漏
1996 Microchip Technology Inc.
prev
next
PIC16C641 PDF文件相关型号
PIC16C642
PIC16C641相关型号PDF文件下载
-
型号
版本
描述
厂商
下载
-
英文版
8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
-
英文版
8-Pin, 8-Bit CMOS Microcontroller with EEPROM Data Memory
MICROCHIP ...
-
英文版
8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEP...
MICROCHIP ...
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
EPROM Memory Programming Specification
MICROCHIP ...
-
英文版
8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
Microcontroller
-
英文版
Microcontroller
-
英文版
Microcontroller
ETC
-
英文版
EPROM-Based 8-Bit CMOS Microcontroller
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
ETC
-
英文版
EPROM Memory Programming Specification
-
英文版
EPROM Memory Programming Specification
MICROCHIP ...
-
英文版
28-Pin Programmable Mixed Signal Controller
-
英文版
EPROM Memory Programming Specification
-
英文版
Microcontroller
ETC
-
英文版
Microcontroller
ETC
-
英文版
EPROM/ROM-Based 8-Bit CMOS Microcontroller Series