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

PIC18F010T-I/SN 데이터 시트보기 (PDF) - Microchip Technology

부품명
상세내역
제조사
PIC18F010T-I/SN
Microchip
Microchip Technology 
PIC18F010T-I/SN Datasheet PDF : 176 Pages
First Prev 111 112 113 114 115 116 117 118 119 120 Next Last
PIC18F010/020
BZ
Branch if Zero
Syntax:
[ label ] BZ n
Operands:
-128 n 127
Operation:
if Zero bit is 1
(PC) + 2 + 2n PC
Status Affected: None
Encoding:
1110 0000 nnnn nnnn
Description:
If the Zero bit is 1, then the pro-
gram will branch.
The 2s complement number 2nis
added to the PC. Since the PC will
have incremented to fetch the next
instruction, the new address will be
PC+2+2n. This instruction is then
a two-cycle instruction.
Words:
1
Cycles:
1(2)
Q Cycle Activity:
If Jump:
Q1
Q2
Decode
Read literal
n
No
operation
No
operation
If No Jump:
Q1
Q2
Decode
Read literal
n
Q3
Process
Data
No
operation
Q3
Process
Data
Q4
Write to PC
No
operation
Q4
No
operation
Example:
HERE
Before Instruction
PC
=
After Instruction
If Zero
=
PC
=
If Zero
=
PC
=
BZ Jump
address (HERE)
1;
address (Jump)
0;
address (HERE+2)
CALL
Subroutine Call
Syntax:
[ label ] CALL k [,s]
Operands:
0 k 1048575
s [0,1]
Operation:
(PC) + 4 TOS,
k PC<20:1>,
if s = 1
(WREG) WS,
(STATUS) STATUSS,
(BSR) BSRS
Status Affected: None
Encoding:
1st word (k<7:0>) 1110
2nd word(k<19:8>) 1111
110s k7kkk
k19kkk kkkk
kkkk0
kkkk8
Description:
Subroutine call of entire 2M byte
memory range. First, return
address (PC+ 4) is pushed onto the
return stack. If s= 1, the WREG,
STATUS and BSR registers are
also pushed into their respective
shadow registers, WS, STATUSS
and BSRS. If 's' = 0, no update
occurs (default). Then the 20-bit
value kis loaded into PC<20:1>.
CALL is a two-cycle instruction.
Words:
2
Cycles:
2
Q Cycle Activity:
Q1
Q2
Decode
Read literal
k<7:0>,
No
operation
No
operation
Q3
Push PC to
stack
No
operation
Q4
Read literal
k<19:8>,
Write to PC
No
operation
Example:
HERE
CALL THERE, FAST
Before Instruction
PC
= Address(HERE)
After Instruction
PC
=
TOS =
WS
=
BSRS =
STATUSS =
Address(THERE)
Address (HERE + 4)
WREGREG
BSR
STATUS
DS41142A-page 110
Preliminary
2001 Microchip Technology Inc.

Share Link: 

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