PIC16C715-04/P Microchip Technology Inc., PIC16C715-04/P Datasheet - Page 75

no-image

PIC16C715-04/P

Manufacturer Part Number
PIC16C715-04/P
Description
18 PIN, 3.5 KB OTP, 128 RAM, 13 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16C715-04/P

A/d Inputs
4-Channel, 8-Bit
Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Input Output
13
Memory Type
OTP
Number Of Bits
8
Package Type
18-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
4 MHz
Timers
1-8-bit
Voltage, Range
2.5-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
COMF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
DECF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
1997 Microchip Technology Inc.
Complement f
[ label ] COMF
0
d
(f)
Z
The contents of register 'f' are comple-
mented. 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
Decrement f
[ label ] DECF f,d
0
d
(f) - 1
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
.
Decode
COMF
Decode
DECF
Q1
Q1
00
00
f
f
[0,1]
[0,1]
(dest)
127
127
(dest)
REG1
REG1
W
CNT
Z
CNT
Z
register
register
1001
0011
CNT, 1
Read
Read
Q2
Q2
'f'
'f'
REG1,0
=
=
=
=
=
=
=
f,d
Process
Process
dfff
dfff
data
data
Q3
Q3
0x13
0x13
0xEC
0x01
0
0x00
1
Write to
Write to
ffff
ffff
dest
dest
Q4
Q4
DECFSZ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
If Skip:
Decrement f, Skip if 0
[ label ] DECFSZ f,d
0
d
(f) - 1
None
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 1, the next instruction, is
executed. If the result is 0, then a NOP is
executed instead making it a 2T
instruction.
1
1(2)
Before Instruction
After Instruction
(2nd Cycle)
HERE
CONTINUE •
Decode
NOP
Q1
Q1
00
f
PC
CNT
if CNT =
PC
if CNT
PC
[0,1]
PIC16C71X
127
(dest);
=
=
=
=
register
1011
Read
NOP
Q2
Q2
DECFSZ
GOTO
'f'
address
CNT - 1
0,
address CONTINUE
0,
address HERE+1
DS30272A-page 75
skip if result = 0
dfff
Process
NOP
data
Q3
Q3
HERE
CNT, 1
LOOP
CY
Write to
ffff
NOP
dest
Q4
Q4

Related parts for PIC16C715-04/P