PIC16F57 Microchip Technology Inc., PIC16F57 Datasheet - Page 47

no-image

PIC16F57

Manufacturer Part Number
PIC16F57
Description
Flash-based, 8-bit Cmos Microcontroller Series
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F57-I/P
Manufacturer:
Microchip Technology
Quantity:
26 657
Part Number:
PIC16F57-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F57-I/P
0
Part Number:
PIC16F57-I/SO
Manufacturer:
PANASONIC
Quantity:
12 933
Part Number:
PIC16F57-I/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC16F57-I/SO
0
Part Number:
PIC16F57-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
CALL
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
CLRF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
© 2007 Microchip Technology Inc.
Before Instruction
After Instruction
Before Instruction
After Instruction
FLAG_REG =
FLAG_REG =
Z
PC
PC
TOS =
=
=
Subroutine Call
[ label ] CALL k
0 ≤ k ≤ 255
(PC) + 1→ TOS;
k → PC<7:0>;
(Status<6:5>) → PC<10:9>;
0 → PC<8>
Subroutine call. First, return
address (PC + 1) is pushed onto
the stack. The eight-bit immediate
address is loaded into PC bits
<7:0>. The upper bits PC<10:9>
are loaded from STATUS<6:5>,
PC<8> is cleared. CALL is a
two-cycle instruction.
1
2
HERE
Clear f
[ label ] CLRF
0 ≤ f ≤ 31
00h → (f);
1 → Z
The contents of register ‘f’ are
cleared and the Z bit is set.
1
1
CLRF
1001
0000
address (HERE)
address (THERE)
address (HERE + 1)
=
CALL
FLAG_REG
0x5A
0x00
1
kkkk
011f
f
THERE
kkkk
ffff
CLRW
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
CLRWDT
Syntax:
Operands:
Operation:
Status Affected: TO, PD
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
Before Instruction
After Instruction
WDT counter
WDT counter
WDT prescaler =
TO
PD
W
W
Z
=
=
=
Clear W
[ label ] CLRW
None
00h → (W);
1 → Z
The W register is cleared. Zero bit
(Z) is set.
1
1
CLRW
Clear Watchdog Timer
[ label ] CLRWDT
None
00h → WDT;
0 → WDT prescaler (if assigned);
1 → TO;
1 → PD
The CLRWDT instruction resets the
WDT. It also resets the prescaler if
the prescaler is assigned to the
WDT and not Timer0. Status bits
TO and PD are set.
1
1
CLRWDT
0000
0000
0x5A
0x00
1
=
=
=
=
0100
0000
PIC16F5X
0x00
0
1
1
?
DS41213D-page 45
0000
0100

Related parts for PIC16F57