PIC17C42 Microchip Technology, PIC17C42 Datasheet - Page 131

no-image

PIC17C42

Manufacturer Part Number
PIC17C42
Description
High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C42-16/JW
Manufacturer:
AD
Quantity:
12
Part Number:
PIC17C42A-16/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC17C42A-16/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-25/P
Manufacturer:
MICROCLOCK
Quantity:
20 000
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
1996 Microchip Technology Inc.
After Interrupt
Forced NOP
Decode
PC
GLINTD =
Q1
=
Return from Interrupt
[ label ]
None
TOS
0
PCLATH is unchanged.
Return from Interrupt. Stack is POP’ed
and Top of Stack (TOS) is loaded in the
PC. Interrupts are enabled by clearing
the GLINTD bit. GLINTD is the global
interrupt disable bit (CPUSTA<4>).
1
2
RETFIE
GLINTD
register
T0STA
Read
NOP
0000
Q2
TOS
0
GLINTD;
(PC);
RETFIE
0000
Execute
Execute
Q3
0000
NOP
NOP
Q4
0101
RETLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
Before Instruction
After Instruction
Forced NOP
Decode
WREG
WREG
Q1
=
=
Return Literal to WREG
[ label ]
0
k
PCLATH is unchanged
None
WREG is loaded with the eight bit literal
'k'. The program counter is loaded from
the top of the stack (the return address).
The high address latch (PCLATH)
remains unchanged.
1
2
TABLE
literal 'k'
Read
NOP
1011
Q2
CALL TABLE ; WREG contains table
:
ADDWF PC
RETLW k0
RETLW k1
:
:
RETLW kn
0x07
value of k7
k
(WREG); TOS
255
PIC17C4X
RETLW k
0110
Execute
Execute
;
;
;
; WREG = offset
; Begin table
;
; End of table
Q3
DS30412C-page 131
offset value
WREG now has
table value
kkkk
(PC);
Write to
WREG
NOP
Q4
kkkk

Related parts for PIC17C42