PIC12F635-E/MD MICROCHIP [Microchip Technology], PIC12F635-E/MD Datasheet - Page 157
PIC12F635-E/MD
Manufacturer Part Number
PIC12F635-E/MD
Description
8/14-Pin, Flash-Based 8-Bit CMOS Microcontrollers with nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC12F635-EMD.pdf
(234 pages)
- Current page: 157 of 234
- Download datasheet (5Mb)
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
Description:
Words:
Cycles:
Example:
© 2007 Microchip Technology Inc.
Return from Interrupt
[ label ]
None
TOS
1
None
Return from Interrupt. Stack is
POPed and Top-of-Stack (TOS) is
loaded in the PC. Interrupts are
enabled by setting Global
Interrupt Enable bit, GIE
(INTCON<7>). This is a two-cycle
instruction.
1
2
After Interrupt
RETFIE
GIE
PC,
PC =
GIE =
RETFIE
TOS
1
PIC12F635/PIC16F636/639
RETLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Words:
Cycles:
Example:
TABLE
RETURN
Syntax:
Operands:
Operation:
Status Affected:
Description:
Return from Subroutine
[ label ]
None
TOS
None
Return from subroutine. The stack
is POPed and the top of the stack
(TOS) is loaded into the program
counter. This is a two-cycle
instruction.
Return with literal in W
[ label ]
0
k
TOS
None
The W register is loaded with the
eight-bit literal ‘k’. The program
counter is loaded from the top of
the stack (the return address).
This is a two-cycle instruction.
1
2
Before Instruction
After Instruction
CALL TABLE;W contains
table
•
•
•
ADDWF PC ;W = offset
RETLW k1 ;Begin table
RETLW k2 ;
•
•
•
RETLW kn ; End of table
k
(W);
;offset value
;W now has table value
255
PC
PC
W
W
RETURN
RETLW k
=
=
DS41232D-page 155
0x07
value of k8
Related parts for PIC12F635-E/MD
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
IC MCU FLASH 1KX14 8SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU FLASH 1KX14 8DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC PIC MCU FLASH 1KX14 8DFN
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU FLASH 1KX14 8DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU FLASH 1KX14 8DFN
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU FLASH 1KX14 8DFN
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,8PIN,PLASTIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
(PIC12F635 / PIC12F636 / PIC12F639) 8/14-PIN FLASH-BASED / 8-BIT CMOS MICROCONTROLLERS WITH NANOWATT TECHNOLOGY
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 PDI
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core, Nano
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 DFN
Manufacturer:
Microchip Technology
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 SOI
Manufacturer:
Microchip Technology
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core, Nano
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core, Nano
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core, Nano
Manufacturer:
Microchip Technology
Datasheet: