PIC16F627A/628A/648A
DS40044G-page 128
2009 Microchip Technology Inc.
RRF
Rotate Right f through Carry
Syntax:
[ label ] RRF f,d
Operands:
0
≤ f ≤ 127
d
∈ [0,1]
Operation:
See description below
Status Affected:
C
Encoding:
00
1100
dfff
ffff
Description:
The contents of register ‘f’ are
rotated one bit to the right
through the Carry Flag. If ‘d’ is
‘0’, the result is placed in the W
register. If ‘d’ is ‘1’, the result is
placed back in register ‘f’.
Words:
1
Cycles:
1
Example
RRF
REG1, 0
Before Instruction
REG1 = 1110 0110
C
=0
After Instruction
REG1 = 1110 0110
W
= 0111 0011
C
=0
SLEEP
Syntax:
[ label ] SLEEP
Operands:
None
Operation:
00h
→ WDT,
0
→ WDT prescaler,
1
→ TO,
0
→ PD
Status Affected:
TO, PD
Encoding:
00
0000
0110
0011
Description:
The power-down Status bit, PD
is cleared. Time out Status bit,
TO is set. Watchdog Timer and
its prescaler are cleared.
The processor is put into Sleep
mode with the oscillator
stopped. See Section 14.8
for more details.
Words:
1
Cycles:
1
Example:
SLEEP
REGISTER F
C
SUBLW
Subtract W from Literal
Syntax:
[ label ]SUBLW k
Operands:
0
≤ k ≤ 255
Operation:
k - (W)
→ (W)
Status
Affected:
C, DC, Z
Encoding:
11
110x
kkkk
Description:
The W register is subtracted (2’s
complement method) from the eight-
bit literal ‘k’. The result is placed in
the W register.
Words:
1
Cycles:
1
Example 1:
SUBLW
0x02
Before Instruction
W= 1
C= ?
After Instruction
W= 1
C= 1; result is positive
Example 2:
Before Instruction
W= 2
C= ?
After Instruction
W= 0
C= 1; result is zero
Example 3:
Before Instruction
W= 3
C= ?
After Instruction
W= 0xFF
C = 0; result is negative
相关PDF资料
PIC18F24K22-I/SO IC PIC MCU 16KB FLASH 28SOIC
PIC18F23K22-I/SP IC PIC MCU 8KB FLASH 28SPDIP
PIC18LF23K22-I/SP IC PIC MCU 8KB FLASH 28SPDIP
PIC24F08KA102-I/SS IC PIC MCU FLASH 8K 28-SSOP
PIC16C58B-20/SO IC MCU OTP 2KX12 18SOIC
PIC12C672-04/SM IC MCU OTP 2KX14 A/D 8-SOIJ
PIC18F25K20-E/SS IC PIC MCU FLASH 16KX16 28-SSOP
PIC18F25J10T-I/SO IC PIC MCU FLASH 16KX16 28SOIC
相关代理商/技术参数
PIC16F628A-I/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT FLASH MCU 16F628 DIP18
PIC16F628A-I/SO 功能描述:8位微控制器 -MCU 3.5KB 224 RAM 16 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F628A-I/SO 制造商:Microchip Technology Inc 功能描述:8BIT FLASH MCU SMD 16F628 SOIC18
PIC16F628A-I/SOG 制造商:Microchip Technology 功能描述:MCU 8-Bit PIC16 PIC RISC 3.5KB Flash 3.3V/5V 18-Pin SOIC W Tube
PIC16F628A-I/SS 功能描述:8位微控制器 -MCU 3.5KB 224 RAM 16 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F628A-I/SS 制造商:Microchip Technology Inc 功能描述:8BIT FLASH MCU SMD 16F628 SSOP20
PIC16F628AT-E/ML 功能描述:8位微控制器 -MCU 28LD 20MHz 2K FLASH RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F628AT-E/SO 功能描述:8位微控制器 -MCU 18LD 20MHz 2K FLASH RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT