PIC16F785T-I/SS Microchip Technology, PIC16F785T-I/SS Datasheet
![20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,](/photos/6/58/65895/150-20-ssop_sml.jpg)
PIC16F785T-I/SS
Specifications of PIC16F785T-I/SS
Available stocks
Related parts for PIC16F785T-I/SS
PIC16F785T-I/SS Summary of contents
Page 1
... 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. 2009 Microchip Technology Inc. PIC16F785/HV785 Memory Programming Specification 1 ...
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 SET ...
Page 14
... 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 Word for DD for SET T 1 HLD User ID Calibration Word ERA Next Command 1 2 2009 Microchip Technology Inc. ...
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 DD for DD T ERA ...
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) (5) DS41237D-page 23 ...
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 ...