DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16C558T-04/SO 데이터 시트보기 (PDF) - Microchip Technology

부품명
상세내역
제조사
PIC16C558T-04/SO
Microchip
Microchip Technology 
PIC16C558T-04/SO Datasheet PDF : 108 Pages
First Prev 61 62 63 64 65 66 67 68 69 70 Next Last
PIC16C55X
DECFSZ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Decrement f, Skip if 0
[ label ] DECFSZ f,d
0 f 127
d [0,1]
(f) - 1 (dest); skip if result = 0
None
00
1011 dfff ffff
The contents of register 'f' are
decremented. 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.
A NOP is executed instead making it a
two-cycle instruction.
1
1(2)
HERE
DECFSZ
GOTO
CONTINUE •
CNT, 1
LOOP
Before Instruction
PC = address HERE
After Instruction
CNT = CNT - 1
if CNT = 0,
PC = address CONTINUE
if CNT 0,
PC = address HERE+1
GOTO
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Unconditional Branch
[ label ] GOTO k
0 k 2047
k PC<10:0>
PCLATH<4:3> PC<12:11>
None
10
1kkk kkkk kkkk
GOTO is an unconditional branch. The
eleven bit immediate value is loaded
into PC bits <10:0>. The upper bits of
PC are loaded from PCLATH<4:3>.
GOTO is a two-cycle instruction.
1
2
GOTO THERE
After Instruction
PC = Address THERE
INCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Increment f
[ label ] INCF f,d
0 f 127
d [0,1]
(f) + 1 (dest)
Z
00
1010 dfff ffff
The contents of register 'f' are
incremented. If 'd' is 0 the result is
placed in the W register. If 'd' is 1 the
result is placed back in register 'f'.
1
1
INCF CNT, 1
Before Instruction
CNT = 0xFF
Z =0
After Instruction
CNT = 0x00
Z =1
2002 Microchip Technology Inc.
Preliminary
DS40143D-page 59

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]