PIC16F785-I/SO Microchip Technology, PIC16F785-I/SO Datasheet - Page 133

IC PIC MCU FLASH 2KX14 20SOIC

PIC16F785-I/SO

Manufacturer Part Number
PIC16F785-I/SO
Description
IC PIC MCU FLASH 2KX14 20SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F785-I/SO

Program Memory Type
FLASH
Program Memory Size
3.5KB (2K x 14)
Package / Case
20-SOIC (7.5mm Width)
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
17
Eeprom Size
256 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 14x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
128 B
Interface Type
RS- 232/USB
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
17
Number Of Timers
3
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DV164120, DM163029
Minimum Operating Temperature
- 40 C
On-chip Adc
14-ch x 10-bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT20SO1-1 - SOCKET TRANS ICE 20DIP TO 20SOICXLT18SO-1 - SOCKET TRANSITION 18SOIC 300MILAC162060 - HEADER INTRFC MPLAB ICD2 20PINAC164039 - MODULE SKT PROMATE II 20DIP/SOIC
Connectivity
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F785-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
 2004 Microchip Technology Inc.
SUBWF
Syntax:
Operands:
Operation:
Status
Affected:
Encoding:
Description:
Words:
Cycles:
Example 1:
Example 2:
Example 3:
Subtract W from f
[ label ]
0
d
(f) - (W)
C, DC, Z
00
Subtract (2’s complement method)
W register from register ‘f’. If ‘d’ is 0
the result is stored in the W register.
If ‘d’ is 1 the result is stored back in
register ‘f’.
1
1
SUBWF
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
f
[0,1]
REG1 = 3
W
C
REG1 = 1
W
C
Z
DC
REG1 = 2
W
C
REG1 = 0
W
C
Z
REG1 = 1
W
C
REG1 = 0xFF
W
C
Z
127
SUBWF f,d
0010
REG1, 1
= 2
= ?
= 2
= 1; result is positive
= 0
= 1
= 2
= ?
= 2
= 1; result is zero
= DC = 1
= 2
= ?
= 2
= 0; result is negative
= DC = 0
dest)
dfff
ffff
Preliminary
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
SWAPF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
TRIS
Load TRIS Register
[ label ] TRIS
5
(W)
None
00
The instruction is supported for
code compatibility with the
PIC16C5X products. Since TRIS
registers are readable and writ-
able, the user can directly
address them.
1
1
To maintain upward compatibil-
ity with future PICmicro
products, do not use this
instruction.
Swap Nibbles in f
[ label ]
0
d
(f<3:0>)
(f<7:4>)
None
00
The upper and lower nibbles of
register ‘f’ are exchanged. If ‘d’ is
0 the result is placed in W regis-
ter. If ‘d’ is 1 the result is placed in
register ‘f’.
1
1
SWAPF
Before Instruction
After Instruction
f
f
[0,1]
PIC16F785
6
REG1 = 0xA5
REG1 = 0xA5
W
TRIS register f;
127
0000
SWAPF f,d
1110
REG1, 0
(dest<7:4>),
(dest<3:0>)
= 0x5A
DS41249A-page 131
f
0110
dfff
®
0fff
ffff

Related parts for PIC16F785-I/SO