PIC16C505-04I/P Microchip Technology Inc., PIC16C505-04I/P Datasheet - Page 43
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC16C505-04I/P
Manufacturer Part Number
PIC16C505-04I/P
Description
14 PIN, 1.5 KB OTP, 72 RAM, 12 I/O
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16C505-04IP.pdf
(85 pages)
Specifications of PIC16C505-04I/P
Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Input Output
11
Memory Type
OTP
Number Of Bits
8
Package Type
14-pin PDIP
Programmable Memory
1.5K Bytes
Ram Size
72 Bytes
Speed
4 MHz
Timers
1- 8-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16C505-04I/P
Manufacturer:
BOURNS
Quantity:
1 001
Part Number:
PIC16C505-04I/P
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:
1999 Microchip Technology Inc.
Before Instruction
After Instruction
Before Instruction
After Instruction
PC =
PC =
TOS =
FLAG_REG
FLAG_REG
Z
Subroutine Call
[ label ] CALL k
0
(PC) + 1
k
(STATUS<6:5>)
0
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
address (HERE)
address (THERE)
address (HERE + 1)
Clear f
[ label ] CLRF
0
00h
1
The contents of register ’f’ are
cleared and the Z bit is set.
1
1
CLRF
1001
0000
k
f
=
=
=
PC<7:0>;
PC<8>
Z
31
255
(f);
CALL
FLAG_REG
0x5A
0x00
1
kkkk
011f
Top of Stack;
f
THERE
PC<10:9>;
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
W
W
Z
WDT counter =
WDT counter =
WDT prescale =
TO
PD
=
=
=
Clear W
[ label ] CLRW
The W register is cleared. Zero bit
[ label ] CLRWDT
None
00h
1
(Z) is set.
1
1
CLRW
0x5A
0x00
1
Clear Watchdog Timer
None
00h
0
1
1
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
=
=
Z
WDT prescaler (if assigned);
TO;
PD
(W);
WDT;
PIC16C505
?
0x00
0
1
1
0100
0000
DS40192C-page 43
0000
0100