PIC16F627-20/SS Microchip Technology, PIC16F627-20/SS Datasheet - Page 120

IC MCU FLASH 1KX14 COMP 20SSOP

PIC16F627-20/SS

Manufacturer Part Number
PIC16F627-20/SS
Description
IC MCU FLASH 1KX14 COMP 20SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheet

Specifications of PIC16F627-20/SS

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
16
Program Memory Size
1.75KB (1K x 14)
Program Memory Type
FLASH
Eeprom Size
128 x 8
Ram Size
224 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
20-SSOP
For Use With
XLT20SS-1 - SOCKET TRANSITION 18DIP 20SSOPAC164307 - MODULE SKT FOR PM3 28SSOPAC164018 - MODULE SKT PROMATEII 20SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
PIC16F62X
DS40300C-page 118
RRF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example:
Rotate Right f through Carry
[ label ]
0 ≤ f ≤ 127
d ∈ [0,1]
See description below
C
00
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'.
1
1
RRF
Before Instruction
After Instruction
[ label ] SLEEP
None
00h → WDT,
0 → WDT prescaler,
1 → TO,
0 → PD
TO, PD
00
The power-down STATUS bit,
PD is cleared. Timeout
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.9 for more details.
1
1
SLEEP
REG1 = 1110 0110
C
REG1 = 1110 0110
W
C
C
1100
REG1, 0
0000
RRF f,d
= 0
= 0111 0011
= 0
REGISTER F
dfff
0110
0011
ffff
Preliminary
SUBLW
Syntax:
Operands:
Operation:
Status
Affected:
Encoding:
Description:
Words:
Cycles:
Example 1:
Example 2:
Example 3:
Subtract W from Literal
[ label ]
0 ≤ k ≤ 255
k - (W) → (W)
C, DC, Z
11
The W register is subtracted (2’s
complement method) from the eight
bit literal 'k'. The result is placed in
the W register.
1
1
SUBLW
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
 2003 Microchip Technology Inc.
W = 1
C = ?
W = 1
C = 1; result is positive
W = 3
C = ?
W = 0xFF
C = 0; result is negative
W = 2
C = ?
W = 0
C = 1; result is zero
SUBLW k
110x
0x02
kkkk
kkkk

Related parts for PIC16F627-20/SS