PIC16F785-I/P Microchip Technology Inc., PIC16F785-I/P Datasheet - Page 135

no-image

PIC16F785-I/P

Manufacturer Part Number
PIC16F785-I/P
Description
MCU, 8-Bit, 2KW Flash, 128 RAM, 18 I/O, DIP-20
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F785-I/P

A/d Inputs
12-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
17
Memory Type
Flash
Number Of Bits
8
Package Type
20-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
RETLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
RETURN
Syntax:
Operands:
Operation:
Status Affected:
Description:
© 2006 Microchip Technology Inc.
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 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.
Return with Literal in W
[ label ]
0
k
TOS
None
00
11
The W register is loaded with
the eight-bit literal ‘k’. The pro-
gram counter is loaded from the
top of the stack (the return
address). This is a two-cycle
instruction.
k
(W);
GIE
255
PC
PC,
PC
RETURN
RETFIE
RETLW k
0000
01xx
0000
kkkk
1001
kkkk
Preliminary
RLF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
RRF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
PIC16F785/HV785
Rotate Left f through Carry
[ label ]
0
d
See description below
C
The contents of register ‘f’ are
rotated one bit to the left through
the Carry Flag. If ‘d’ is ‘0’, the
result is placed in the W register.
If ‘d’ is ‘1’, the result is stored
back in register ‘f’.
Rotate Right f through Carry
[ label ]
0
d
See description below
C
00
The contents of register ‘f’ are
rotated one bit to the right
through the Carry Flag. If ‘d’ is
‘0’, the result is placed in the W
register. If ‘d’ is ‘1’ the result is
placed back in register ‘f’.
00
Go into Standby mode
[label]
None
00h
0
1
0
TO, PD
00
The power-down Status bit, PD
is cleared. Time out Status bit,
TO is set. Watchdog Timer and
its prescaler are cleared.
The processor is put into Sleep
mode with the oscillator
stopped.
f
[0,1]
f
[0,1]
127
WDT prescaler,
TO,
PD
C
C
127
WDT,
1100
RLF
1101
0000
RRF f,d
SLEEP
REGISTER F
DS41249D-page 133
Register f
f,d
dfff
dfff
0110
ffff
ffff
0011

Related parts for PIC16F785-I/P