PIC16F54T-I/SO Microchip Technology, PIC16F54T-I/SO Datasheet - Page 47
![IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,18PIN,PLASTIC](/photos/6/76/67656/150-18-soic_sml.jpg)
PIC16F54T-I/SO
Manufacturer Part Number
PIC16F54T-I/SO
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,18PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Specifications of PIC16F54T-I/SO
Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
POR, WDT
Number Of I /o
12
Program Memory Size
768B (512 x 12)
Program Memory Type
FLASH
Ram Size
25 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
18-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
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