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

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
PIC16F785/HV785
FIGURE 15-10:
15.7
If
programmed, the on-chip program memory can be
read out using ICSP
15.8
Four memory locations (2000h-2003h) are designated
as ID locations where the user can store checksum or
other code identification numbers. These locations are
not accessible during normal execution, but are
readable and writable during Program/Verify. Only the
Least Significant 7 bits of the ID locations are used.
15.9
The PIC16F785/HV785 microcontrollers can be seri-
ally programmed while in the end application circuit.
This is simply done with five lines:
• Clock
• Data
• Power
• Ground
• Programming voltage
DS41249E-page 124
INSTRUCTION FLOW
(INTCON<1>)
(INTCON<7>)
Note
Note:
CLKOUT
Instruction
Instruction
the
Executed
Fetched
INTF flag
INT pin
GIE bit
OSC1
1:
2:
3:
4:
Code Protection
ID Locations
In-Circuit Serial Programming™
(ICSP™)
code
PC
(4)
If the code protection is turned off, the
entire data EEPROM and Flash program
memory will be erased by performing a
bulk
“PIC16F785/HV785 Memory Program-
ming Specification” (DS41237) for more
information.
XT, HS or LP Oscillator mode assumed.
T
(see Section 3.6 “Two-Speed Clock Start-up Mode”).
GIE = 1 assumed. In this case after wake-up, the processor jumps to 0004h.
If GIE = 0, execution will continue in-line.
CLKOUT is not available in XT, HS, LP or EC Oscillator modes, but shown here for timing reference.
OST
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1
Inst(PC) = Sleep
protection
Inst(PC - 1)
= 1024T
erase
PC
WAKE-UP FROM SLEEP THROUGH INTERRUPT
for verification purposes.
OSC
(drawing not to scale). This delay does not apply to EC, RC and INTOSC Oscillator modes or Two-Speed Start-up
command.
bit(s)
Inst(PC + 1)
Sleep
PC + 1
have
See
Processor
not
in Sleep
PC + 2
been
the
T
OST (2)
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
Interrupt Latency
Inst(PC + 2)
Inst(PC + 1)
This allows customers to manufacture boards with
unprogrammed devices and then program the micro-
controller just before shipping the product. This also
allows the most recent firmware, or a custom firmware,
to be programmed.
The device is placed into a Program/Verify mode by
holding the RA0 and RA1 pins low, while raising the
MCLR (V
HV785
(DS41237) for more information. RA0 becomes the
programming data and RA1 becomes the programming
clock. Both RA0 and RA1 are Schmitt Trigger inputs in
this mode.
After Reset, to place the device into Program/Verify
mode, the Program Counter (PC) is at location 00h. A
6-bit command is then supplied to the device.
Depending on the command, 14 bits of program data
are then supplied to or from the device, depending on
whether the command was a load or a read. For
complete details of serial programming, please refer to
the “PIC16F785/HV785 Memory Programming Speci-
fication” (DS41237).
A typical In-Circuit Serial Programming connection is
shown in Figure 15-11.
PC + 2
PP
Memory
(3)
Dummy cycle
) pin from V
PC + 2
(1)
IL
Programming
© 2008 Microchip Technology Inc.
to V
Inst(0004h)
Dummy cycle
0004h
IHH
. See the “PIC16F785/
Inst(0005h)
Inst(0004h)
Specification”
0005h

Related parts for PIC16F785-I/SO