PIC16C558-20/SS Microchip Technology, PIC16C558-20/SS Datasheet - Page 60
![IC MCU OTP 2KX14 20SSOP](/photos/6/58/65895/150-20-ssop_sml.jpg)
PIC16C558-20/SS
Manufacturer Part Number
PIC16C558-20/SS
Description
IC MCU OTP 2KX14 20SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Specifications of PIC16C558-20/SS
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
POR, WDT
Number Of I /o
13
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
Other names
Q575787
PIC16C55X
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
DS40143D-page 58
CLRW
CLRWDT
[ label ] CLRW
None
00h → (W)
1 → Z
Z
W register is cleared. Zero bit (Z) is
set.
1
1
Before Instruction
After Instruction
[ label ] CLRWDT
None
00h → WDT
0 → WDT prescaler,
1 → TO
1 → PD
TO, PD
CLRWDT instruction resets the
Watchdog Timer. It also resets the
prescaler of the WDT. Status bits TO
and PD are set.
1
1
Before Instruction
After Instruction
Clear W
00
CLRW
Clear Watchdog Timer
00
CLRWDT
W
W
Z
WDT counter
WDT counter
WDT prescaler = 0
TO
PD
=
=
=
0001
0000
0x5A
0x00
1
0000
0110
= ?
= 0x00
= 1
= 1
0011
0100
Preliminary
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
COMF
DECF
[ label ] COMF
0 ≤ f ≤ 127
d ∈ [0,1]
(f) → (dest)
Z
The contents of register 'f' are
complemented. If 'd' is 0 the result is
stored in W. If 'd' is 1 the result is
stored back in register 'f'.
1
1
Before Instruction
After Instruction
[ label ] DECF f,d
0 ≤ f ≤ 127
d ∈ [0,1]
(f) - 1 → (dest)
Z
Decrement register 'f'. If 'd' is 0 the
result is stored in the W register. If 'd'
is 1 the result is stored back in register
'f'.
1
1
Before Instruction
After Instruction
Complement f
00
COMF
Decrement f
00
DECF
2002 Microchip Technology Inc.
REG1
REG1
W
CNT
Z
CNT
Z
1001
REG1,0
0011
CNT,
= 0x01
= 0
= 0x00
= 1
=
=
=
f,d
dfff
dfff
1
0xEC
0x13
0x13
ffff
ffff