PIC16HV785-I/SO Microchip Technology, PIC16HV785-I/SO Datasheet

IC PIC MCU FLASH 2KX14 20SOIC

PIC16HV785-I/SO

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

Specifications of PIC16HV785-I/SO

Core Size
8-Bit
Program Memory Size
3.5KB (2K x 14)
Oscillator Type
Internal
Core Processor
PIC
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
17
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
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SOIC (7.5mm Width)
Controller Family/series
PIC16HV
No. Of I/o's
18
Eeprom Memory Size
256Byte
Ram Memory Size
128Byte
Cpu Speed
20MHz
Processor Series
PIC16H
Core
PIC
Data Bus Width
8 bit
Data Ram Size
128 B
Interface Type
RS- 232, USB
Maximum Clock Frequency
32 MHz
Number Of Programmable I/os
18
Number Of Timers
3
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
10 bit, 14 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT20SO1-1 - SOCKET TRANS ICE 20DIP TO 20SOICAC162060 - HEADER INTRFC MPLAB ICD2 20PINAC164039 - MODULE SKT PROMATE II 20DIP/SOIC
Connectivity
-
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16HV785-I/SO
Manufacturer:
MICROCHIP
Quantity:
12 000
This document includes the
programming specifications for the
following devices:
• PIC16F785
• PIC16HV785
• PIC16F785-ICD
1.0
The PIC16F785/HV785 is programmed using a serial
method. The Serial mode will allow the device to be
programmed while in the user’s system. This allows for
increased design flexibility.
This
PIC16F785/HV785 devices in all packages.
TABLE 1-1:
 2009 Microchip Technology Inc.
RA0
RA1
RA3/MCLR
V
V
Legend: I = Input, I/O = Input/Output, P = Power
Note 1:
DD
SS
Pin Name
programming
PIC16F785/HV785
PROGRAMMING THE
PIC16F785/HV785
In the PIC16F785/HV785, the programming high voltage is internally generated. To activate the Program/
Verify mode, high voltage needs to be applied to MCLR input. Since the MCLR is used for a level source,
MCLR does not draw significant current.
PIN DESCRIPTIONS IN PROGRAM/VERIFY MODE: PIC16F785/HV785
Program/Verify mode
specification
ICSPCLK
Function
ICSPDAT
V
V
DD
SS
applies
PIC16F785/HV785
Memory Programming Specification
to
Pin Type
the
P
I/O
P
P
(1)
I
During Programming
1.1
The PIC16F785 requires one power supply for V
(5.0V) and one for V
The PIC16HV785 requires one power supply for V
(4.5V) and one for V
PIC16HV785 to avoid possible contention between the
shunt regulator and an unrestricted supply current.
1.2
The Program/Verify mode for the PIC16F785/HV785
allows programming of user program memory, data
memory, user ID locations and the Configuration Word
register.
Data Input/Output – Schmitt Trigger input
Clock Input – Schmitt Trigger input
Program Mode Select
Power Supply
Ground
Hardware Requirements
Program/Verify Mode
Pin Description
PP
PP
(12V).
(12V). V
DD
DS41237D-page 1
is lower for the
DD
DD

Related parts for PIC16HV785-I/SO

PIC16HV785-I/SO Summary of contents

Page 1

... Memory Programming Specification 1.1 Hardware Requirements The PIC16F785 requires one power supply for V (5.0V) and one for V The PIC16HV785 requires one power supply for V (4.5V) and one for V PIC16HV785 to avoid possible contention between the shunt regulator and an unrestricted supply current. 1.2 ...

Page 2

... DIAGRAM FOR PIC16F785/HV785 QFN RA3/MCLR/V PP RC5/CCP1 RC4/C2OUT/PH2 RC3/AN7/C12IN3-/OP1 RC6/AN8/OP1- DS41237D-page RA0/AN0/C1IN+/ICSPDAT 3 18 RA1/AN1/C12IN0-/ RA2/AN2/T0CKI/INT/C1OUT RC0/AN4/C2IN RC1/AN5/C12IN1-/PH1 7 14 RC2/AN6/C12IN2-/OP2 8 13 RB4/AN10/OP2 RB5/AN11/OP2 RB6 RA1/AN1/C12IN0-/ RA2/AN2/T0CKI/INT/C1OUT 14 PIC16F785/HV785 RC0/AN4/C2IN RC1/AN5/C12IN1-/PH1 RC2/AN6/C12IN2-/OP2 /ICSPCLK REF /ICSPCLK REF  2009 Microchip Technology Inc. ...

Page 3

... SHNTREG 1 28 ICDCLK ICDMCLR ICDDATA Vss DD RA5 4 25 RA0 RA4 RA1 5 24 RA3 RA2 6 23 RC5 7 22 RC0 RC4 8 21 RC1 RC3 9 20 RC2 RC6 RB4 10 19 RC7 11 18 RB5 RB7 RB6 12 17 ICD  2009 Microchip Technology Inc. PIC16F785/HV785 DS41237D-page 3 ...

Page 4

... The device should not be used if the verification of the Calibration Word values fail after the device is programmed. The 0x3FFF value is a special case valid calibration value but also the erased state of the register. IDE.  2009 Microchip Technology Inc. ...

Page 5

... User ID Location 2004 Reserved Reserved 2005 Device ID 2006 Configuration Word 2007 Calibration Word 2008 2009 Calibration Word 2009-203F Reserved  2009 Microchip Technology Inc. PIC16F785/HV785 2 K Implemented 07FF Program Memory Maps to 0-7FF 1FFF 2000 Implemented 2040 Configuration Memory Unimplemented 3FFF ...

Page 6

... INTOSC and internal MCLR are selected. FIGURE 3- ICSPDAT ICSPCLK Note: This method must be used if INTOSC and internal MCLR are selected. V -FIRST PROGRAM/ PP VERIFY MODE ENTRY PPDP HLD V -FIRST PROGRAM/ DD VERIFY MODE ENTRY HLD PPDP V -LAST PROGRAM/ PP VERIFY MODE EXIT T 0 HLD  2009 Microchip Technology Inc. ...

Page 7

... Issue an Increment Address command. 9. Repeat steps 1 through 8 as required to write program memory. See Figure 3-17 for more information.  2009 Microchip Technology Inc. PIC16F785/HV785 3.1.2 ONE-WORD PROGRAMMING The program memory may also be written one-word at a time to allow compatibility with other 8-pin and 14-pin ® ...

Page 8

... The commands that are available are described in Table 3-1. Mapping (MSb … LSb ( ( ( ( specified between consecutive except for the End Programming . DIS Data 0, ones data (14 data (14 data (8), zero (6 data (14 data (8), zero (6  2009 Microchip Technology Inc. ...

Page 9

... T 1 SET T 1 HLD  2009 Microchip Technology Inc. PIC16F785/HV785 After the 6-bit command is input, ICSPCLK pin is cycled an additional 16 times for the Start bit, 14 bits of data and a Stop bit (see Figure 3-4). After the configuration memory is entered, the only way to get back to the program memory is to exit the ...

Page 10

... FIGURE 3-7: READ DATA FROM PROGRAM MEMORY COMMAND ICSPCLK ICSPDAT SET input DS41237D-page DLY strt_bit LSb T 1 DLY T 2 DLY strt_bit LSb T 1 DLY T 1 HLD stp_bit MSb on 9th falling edge DLY MSb stp_bit output input  2009 Microchip Technology Inc. ...

Page 11

... A timing diagram of this command is shown in Figure 3- not possible to decrement the address counter. To reset this counter, the user should exit and re-enter Program/Verify mode. FIGURE 3-9: INCREMENT ADDRESS COMMAND (PROGRAM/VERIFY ICSPCLK ICSPDAT 0  2009 Microchip Technology Inc. PIC16F785/HV785 T 2 DLY DLY ...

Page 12

... The addressed location is not erased before programming. FIGURE 3-11: BEGIN PROGRAMMING (EXTERNALLY TIMED ICSPCLK ICSPDAT 0 0 DS41237D-page 12 of the memory SET T 1 HLD of the requires T PROG SET T 1 HLD T 1 PROG Next Command End Programming command 1 2  2009 Microchip Technology Inc. ...

Page 13

... Algorithms” sequences. Note: All Bulk Erase operations must take place between 4.5V and 5.5V PIC16F785, 2.0V to 5.5V V PIC16F785-ICD and 4.5V to 4.9V for PIC16HV785. FIGURE 3-13: BULK ERASE PROGRAM MEMORY COMMAND 1 ICSPCLK 1 ICSPDAT  2009 Microchip Technology Inc. PIC16F785/HV785 . DIS ...

Page 14

... If CPD = 0, a Bulk Erase program memory must be used. Note: All Bulk Erase operations must take place between 4.5V and 5.5V PIC16F785, 2.0V to 5.5V V PIC16F785-ICD and 4.5V to 4.9V for PIC16HV785. FIGURE 3-14: BULK ERASE DATA MEMORY COMMAND 1 ICSPCLK ICSPDAT 1 DS41237D-page 14 Configuration Memory Space Configuration ...

Page 15

... ERA Note: All row erase operations must take place between 4.5V and 5.5V PIC16F785, 2.0V to 5.5V V PIC16F785-ICD and 4.5V to 4.9V for PIC16HV785. FIGURE 3-15: ROW ERASE PROGRAM MEMORY COMMAND 1 ICSPCLK ICSPDAT 1  2009 Microchip Technology Inc. PIC16F785/HV785 V for ...

Page 16

... Failure Wait T PROG Note 1: This step is optional if device has already been erased or has not been previously programmed. Program Cycle Load Data For Program Memory Begin Programming Command (externally timed) 1 Wait T 2 PROG End Programming Wait T DIS  2009 Microchip Technology Inc. ...

Page 17

... Program User ID/Config. bits (Figure 3-18) Read and Verify Calibration Memory Values (Figure 3-21) Done Note 1: This step is optional if device is erased or not previously programmed.  2009 Microchip Technology Inc. PIC16F785/HV785 (1) Yes Begin Programming Command (internally timed) Wait T Program Cycle ...

Page 18

... Program Cycle Load Data For Program Memory Begin Programming Command (externally timed) 1 Wait T 2 PROG End Programming Wait T DIS Ensure that a device Bulk Erase has been performed or that the device is blank prior to programming the configuration memory.  2009 Microchip Technology Inc. ...

Page 19

... Start Program Cycle Read Data From Program Memory Command Data Correct? Yes Increment No All Locations Address Done? Command Yes Done  2009 Microchip Technology Inc. PIC16F785/HV785 Begin Programming Command (internally timed) Wait T PROG (Data Memory) Report No 5-6 ms Programming Failure Program Cycle ...

Page 20

... FIGURE 3-20: PROGRAM FLOWCHART – ERASE FLASH DEVICE DS41237D-page 20 Start Read and Store Calibration Memory Values (Figure 3-21) Load Configuration Bulk Erase Program Memory Bulk Erase Data Memory Read and Verify Calibration Memory Values (Figure 3-21) Done  2009 Microchip Technology Inc. ...

Page 21

... Note 1: This step is not required for the Read and Store Calibration Memory Values procedure. 2: The device should not be used if verification of the Calibration Word locations fails. This information should be reported to the user through the user interface of the device programmer.  2009 Microchip Technology Inc. PIC16F785/HV785 Start ...

Page 22

... WDT disabled and can be enabled by SWDTEN bit (WDTCON<0>) DS41237D-page 22 R/P-1 R/P-1 (5) (1) IESO BOREN1 R/P-1 R/P-1 (5) WDTE FOSC2 U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared (5) (1) (2,3) (4) DD (5) R/P-1 R/P-1 (1) (2,3) BOREN0 CPD bit 7 R/P-1 R/P-1 FOSC1 FOSC0 bit Bit is unknown  2009 Microchip Technology Inc. ...

Page 23

... Device ID Word The device ID word for the PIC16F785/HV785 is located at 2006h. This location cannot be erased. TABLE 4-1: DEVICE ID VALUES Device ID Values Device Dev PIC16HV785 01 0010 001 PIC16F785 01 0010 000  2009 Microchip Technology Inc. PIC16F785/HV785 Rev x xxxx x xxxx (5) ...

Page 24

... Specifically for the PIC16F785/HV785, the data memory should also be embedded in the hex file (see Section 5.3.2 “Embedding Data Memory Contents in Hex File”). Microchip Technology Incorporated feels strongly that this feature is important for the benefit of the end customer. DS41237D-page 24 5.3 Checksum Computation 5 ...

Page 25

... The 256 data memory locations are logically mapped starting at address 0x2100. The format for data memory storage is one data byte per address location, LSb aligned.  2009 Microchip Technology Inc. PIC16F785/HV785 Checksum* SUM[0x0000:0x7FF] + CFGW & 0FFF CFGW & 0x0FFF + SUM_ID ...

Page 26

... A 5.5V DD Units Conditions/Comments V PIC16F785/PIC16F785-ICD V PS200 V PIC16F785-ICD V PIC16F785 V PIC16HV785 V s   s  Program memory Data memory 10°C  T  +40° Program memory s  2009 Microchip Technology Inc. ...

Page 27

... REAL ICE, rfLAB, Select Mode, Total Endurance, TSHARC, UniWinDriver, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...

Page 28

... Fax: 886-3-6578-370 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350  2009 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...

Related keywords