PIC16C65A Microchip Technology, PIC16C65A Datasheet - Page 149

no-image

PIC16C65A

Manufacturer Part Number
PIC16C65A
Description
8-Bit CMOS Microcontrollers
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C65A-04/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C65A-04/L
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C65A-04/P
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C65A-04/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C65A-04/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C65A-04E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C65A-04E/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C65A-10/L
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C65A-10/P
Quantity:
6
Part Number:
PIC16C65A-10/P
Quantity:
17
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]
(destination)
127
127
(destination)
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
destination
destination
ffff
ffff
Write to
Write to
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
skip if result = 0
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
tion.
1
1(2)
Before Instruction
After Instruction
(2nd Cycle)
Operation
HERE
CONTINUE •
Decode
Q1
Q1
00
No-
f
PC
CNT
if CNT =
PC
if CNT
PC
[0,1]
127
PIC16C6X
(destination);
Operation
=
=
=
=
register 'f'
1011
Read
DECFSZ
GOTO
Q2
Q2
No-
address
CNT - 1
0,
address CONTINUE
0,
address HERE+1
DS30234D-page 149
Operation
dfff
Process
data
Q3
Q3
No-
HERE
CNT, 1
LOOP
CY
destination
Operation
instruc-
ffff
Write to
Q4
Q4
No-

Related parts for PIC16C65A