PIC16F785-E/SS Microchip Technology, PIC16F785-E/SS Datasheet - Page 126

20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,

PIC16F785-E/SS

Manufacturer Part Number
PIC16F785-E/SS
Description
20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F785-E/SS

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
17
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
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 ~ 125°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT20SS1-1 - SOCKET TRANSITION 20DIP 20SSOPAC162060 - HEADER INTRFC MPLAB ICD2 20PIN
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
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-E/SS