PIC16HV540-20/SO Microchip Technology, PIC16HV540-20/SO Datasheet - Page 48

IC MCU OTP 512X12 18SOIC

PIC16HV540-20/SO

Manufacturer Part Number
PIC16HV540-20/SO
Description
IC MCU OTP 512X12 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16HV540-20/SO

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
12
Program Memory Size
768B (512 x 12)
Program Memory Type
OTP
Ram Size
25 x 8
Voltage - Supply (vcc/vdd)
3.5 V ~ 15 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
18-SOIC (7.5mm Width)
Processor Series
PIC16H
Core
PIC
Data Bus Width
8 bit
Data Ram Size
25 B
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
12
Number Of Timers
8
Operating Supply Voltage
3.5 V to 15 V
Maximum Operating Temperature
+ 70 C
Mounting Style
SMD/SMT
Minimum Operating Temperature
0 C
For Use With
309-1075 - ADAPTER 18-SOIC TO 18-SOICAC164002 - MODULE SKT PROMATEII 18/28SOIC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
 Details
PIC16HV540
COMF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
DECF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
DS40197B-page 48
Before Instruction
After Instruction
Before Instruction
After Instruction
REG1
REG1
W
CNT
Z
CNT
Z
Complement f
[ label ] COMF
0
d
(f)
0010
The contents of register ’f’ are comple-
mented. 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
COMF
=
=
=
Decrement f
[ label ] DECF f,d
0
d
(f) – 1
0000
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
DECF
=
=
=
=
f
f
[0,1]
[0,1]
0x13
0x13
0xEC
0x01
0
0x00
1
(dest)
31
31
01df
REG1,0
11df
(dest)
CNT,
ffff
ffff
1
f,d
Preliminary
DECFSZ
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
GOTO
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
After Instruction
PC
CNT
if CNT
PC
if CNT
PC
PC =
Decrement f, Skip if 0
[ label ] DECFSZ f,d
0
d
(f) – 1
0010
The contents of register ’f’ are decre-
mented. If ’d’ is 0 the result is placed in
the W register. If ’d’ is 1 the result is
placed back in register ’f’.
If the result is 0, the next instruction,
which is already fetched, is discarded
and an NOP is executed instead mak-
ing it a two cycle instruction.
1
1(2)
HERE
CONTINUE •
=
=
=
=
=
Unconditional Branch
[ label ]
0
k
STATUS<6:5>
101k
GOTO is an unconditional branch. The
9-bit immediate value is loaded into PC
bits <8:0>. The upper bits of PC are
loaded from STATUS<6:5>. GOTO is a
two cycle instruction.
1
2
GOTO THERE
address (THERE)
f
k
[0,1]
address (HERE)
CNT - 1;
0,
address (CONTINUE);
0,
address (HERE+1)
PC<8:0>;
31
511
2000 Microchip Technology Inc.
11df
kkkk
d;
GOTO k
DECFSZ
GOTO
skip if result = 0
PC<10:9>
ffff
kkkk
CNT, 1
LOOP

Related parts for PIC16HV540-20/SO