PIC18C242 MICROCHIP [Microchip Technology], PIC18C242 Datasheet - Page 220

no-image

PIC18C242

Manufacturer Part Number
PIC18C242
Description
High-Performance Microcontrollers with 10-Bit A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18C242-I/SO
Manufacturer:
MICROCHIP
Quantity:
2 000
Part Number:
PIC18C242/JW
Manufacturer:
NS
Quantity:
10
PIC18CXX2
POP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
DS39026B-page 220
Before Instruction
After Instruction
Decode
TOS
Stack (1 level down)= 014332h
TOS
PC
Q1
operation
Pop Top of Return Stack
[ label ]
None
(TOS)
None
The TOS value is pulled off the
return stack and is discarded. The
TOS value then becomes the previ-
ous value that was pushed onto the
return stack.
This instruction is provided to
enable the user to properly manage
the return stack to incorporate a
software stack.
1
1
POP
GOTO
0000
No
Q2
bit bucket
POP
0000
NEW
POP TOS
=
=
=
value
Q3
0031A2h
014332h
NEW
0000
operation
No
Q4
0110
Preliminary
PUSH
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
Before Instruction
After Instruction
Decode
TOS
PC
PC
TOS
Stack (1 level down)= 00345Ah
Q1
PUSH PC+2
onto return
Push Top of Return Stack
[ label ]
None
(PC+2)
None
The PC+2 is pushed onto the top of
the return stack. The previous TOS
value is pushed down on the stack.
This instruction allows to implement
a software stack by modifying TOS,
and then push it onto the return
stack.
1
1
PUSH
stack
0000
Q2
7/99 Microchip Technology Inc.
PUSH
TOS
0000
operation
=
=
=
=
No
Q3
00345Ah
000124h
000126h
000126h
0000
operation
No
Q4
0101

Related parts for PIC18C242