PIC16LF1936-I/SS Microchip Technology, PIC16LF1936-I/SS Datasheet
![IC PIC MCU FLASH 512KX14 28-SSOP](/photos/6/81/68119/150-28-ssop_sml.jpg)
PIC16LF1936-I/SS
Specifications of PIC16LF1936-I/SS
Available stocks
Related parts for PIC16LF1936-I/SS
PIC16LF1936-I/SS Summary of contents
Page 1
... PIC16F1946 • PIC16F1947 • PIC16LF1902 • PIC16LF1903 • PIC16LF1904 • PIC16LF1906 • PIC16LF1907 • PIC16LF1933 • PIC16LF1934 • PIC16LF1936 • PIC16LF1937 • PIC16LF1938 • PIC16LF1939 • PIC16LF1946 • PIC16LF1947 1.0 OVERVIEW The device can be programmed using either the high- voltage In-Circuit Serial Programming™ (ICSP™) method or the low-voltage ICSP method ...
Page 2
... MCLR input. Since the MCLR is used for a level source, MCLR does not draw any significant current. DS41397B-page 2 During Programming Pin Type Pin Description I Clock Input – Schmitt Trigger Input I/O Data Input/Output – Schmitt Trigger Input (1) P Program Mode Select/Programming Power Supply P Power Supply P Ground 2010 Microchip Technology Inc. ...
Page 3
... PIC16F193X/LF193X/PIC16F194X/LF194X/ Table of Contents 1.0 Overview .................................................................................................................................................................. 1 2.0 Device Pinouts ......................................................................................................................................................... 4 3.0 Memory Map ............................................................................................................................................................ 8 4.0 Program/Verify Mode ............................................................................................................................................. 18 5.0 Programming Algorithms........................................................................................................................................ 27 6.0 Code Protection ..................................................................................................................................................... 32 7.0 Hex File Usage ...................................................................................................................................................... 32 8.0 Electrical Specifications ......................................................................................................................................... 39 2010 Microchip Technology Inc. DS41397B-page 3 ...
Page 4
... RA4 23 6 RB1 RA5 22 7 RB0 RA7 RA6 10 RC7 18 RC0 11 RC6 17 12 RC1 RC5 RC2 16 13 RC4 RC3 RA2 2 RA3 20 3 RA4 19 PIC16F1933/1936/1938 RA5 4 18 PIC16LF1933/1936/1938 PIC16LF1902/1903/1906 RA7 6 16 RA6 7 15 RB3 RB2 RB1 RB0 RC7 2010 Microchip Technology Inc. ...
Page 5
... PDIP V /MCLR/RE3 PP FIGURE 2-4: 44-PIN QFN PACKAGE DIAGRAM FOR PIC16F1934/1937/1939 AND PIC16LF1934/1937/1939 44-pin QFN RC7 RD4 RD5 RD6 RD7 RB0 RB1 RB2 2010 Microchip Technology Inc RA0 39 2 RA1 38 3 RA2 4 37 RA3 36 5 RA4 35 6 RA5 7 34 RE0 ...
Page 6
... QFN package orientation is the same. No leads are present on the QFN package. DS41397B-page RC0 2 32 RA6 31 3 RA7 PIC16F1934/1937/1939 PIC16LF1934/1937/1939 RE2 27 7 PIC16LF1904/1907 RE1 8 26 RE0 9 25 RA5 RA4 PIC16F194X/ PIC16LF194X RB0 48 RB1 47 RB2 46 RB3 45 RB4 44 RB5 43 RB6/ICSPCLK RA6 40 RA7 RB7/ICSPDAT 37 RC5 36 RC4 35 RC3 34 RC2 2010 Microchip Technology Inc. ...
Page 7
... PIC16F193X/LF193X/PIC16F194X/LF194X/ FIGURE 2-7: 40-PIN UQFN (5X5) PACKAGE DIAGRAM FOR PIC16LF1904/1907 40-Pin UQFN (5x5) SEG8/DT/RX/RC7 SEG17/RD4 SEG18/RD5 SEG19/RD6 SEG20/RD7 SEG0/INT/AN12/RB0 VLCD1/SEG24/AN10/RB1 VLCD2/SEG25/AN8/RB2 2010 Microchip Technology Inc PIC16LF1904/1907 RC0/T1OSO/T1CKI RA6/CLKOUT/SEG1 RA7/CLKIN/SEG2 RE2/AN7/SEG23 RE1/AN6/SEG22 RE0/AN5/SEG21 RA5/AN4/SEG5 RA4/T0CKI/SEG4 DS41397B-page 7 ...
Page 8
... Reserved 8005h Device ID 8006h Configuration Word 1 8007h Configuration Word 2 8008h 8009h Calibration Word 1 800Ah Calibration Word 2 Reserved 800Bh-81FFh DS41397B-page 0000h Implemented 0FFFh Maps to Program Memory 0-0FFF 07FFh 8000h Implemented 8200h Maps to Configuration Memory 8000-81FF FFFFh 2010 Microchip Technology Inc. ...
Page 9
... Reserved 8004h Reserved 8005h Device ID 8006h Configuration Word 1 8007h Configuration Word 2 8008h Calibration Word 1 8009h 800Ah Calibration Word 2 Reserved 800Bh-81FFh 2010 Microchip Technology Inc 0000h Implemented 0FFFh Maps to Program Memory 0-0FFF 7FFFh 8000h Implemented 8200h Maps to Configuration Memory 8000-81FF FFFFh ...
Page 10
... PIC16F193X/LF193X/PIC16F194X/LF194X/ FIGURE 3-3: PIC16F1936/PIC16LF1936, PIC16F1937/PIC16LF1937, PIC16F1946/PIC16LF1946/ PIC16LF1906/PIC16LF1907 PROGRAM MEMORY MAPPING User ID Location 8000h User ID Location 8001h User ID Location 8002h 8003h User ID Location Reserved 8004h Reserved 8005h 8006h Device ID Configuration Word 1 8007h Configuration Word 2 8008h 8009h Calibration Word 1 Calibration Word 2 800Ah Reserved ...
Page 11
... Reserved 8005h Reserved Device ID 8006h 8007h Configuration Word 1 8008h Configuration Word 2 8009h Calibration Word 1 Calibration Word 2 800Ah Reserved 800Bh-81FFh 2010 Microchip Technology Inc 0000h Implemented 3FFFh Program Memory Maps to 0-3FFF 7FFFh 8000h Implemented 8200h Maps to Configuration Memory 8000-81FF FFFFh ...
Page 12
... R-q R-q R-q DEV6 DEV5 DEV4 R-q R-q R-q REV4 REV3 REV2 U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown R-q R-q DEV3 DEV2 bit 7 R-q R-q REV1 REV0 bit 0 2010 Microchip Technology Inc. ...
Page 13
... PIC16F193X/LF193X/PIC16F194X/LF194X/ TABLE 3-1: DEVICE ID VALUES DEVICE PIC16F1933 PIC16F1934 PIC16F1936 PIC16F1937 PIC16F1938 PIC16F1939 PIC16F1946 PIC16F1947 PIC16LF1933 PIC16LF1934 PIC16LF1936 PIC16LF1937 PIC16LF1938 PIC16LF1939 PIC16LF1946 PIC16LF1947 PIC16LF1902 PIC16LF1903 PIC16LF1904 PIC16LF1906 PIC16LF1907 3.3 Configuration Words The device has two Configuration Words, Configuration Word 1 (8007h) and Configuration Word 2 (8008h). The ...
Page 14
... R/P-1 BOREN1 BOREN0 R/P-1 R/P-1 R/P-1 WDTE1 WDTE0 FOSC2 U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown (1) (2) (3) Pin Function Select bit (1) (4) R/P-1 R/P-1 CPD CP bit 7 (4) R/P-1 R/P-1 FOSC1 FOSC0 bit 0 2010 Microchip Technology Inc. ...
Page 15
... The entire data EEPROM will be erased when the code protection is turned off during an erase. 3: The entire program memory will be erased when the code protection is turned off. 4: Unemplemented on PIC16LF190X devices. This bit reads as ‘1’. 5: For PIC16LF190X only. 2010 Microchip Technology Inc. DS41397B-page 15 ...
Page 16
... R/P-1 R/P-1 — BORV STVREN R/P-1 U-1 U-1 (1) — — ( Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown (3) pin functions are disabled. CAP R/P-1 U-1 PLLEN — bit 7 R/P-1 R/P-1 WRT1 WRT0 bit 0 2010 Microchip Technology Inc. ...
Page 17
... FFFh may be modified by EECON control 01 = 000h to 7FFh write protected, 800h to FFFh may be modified by EECON control 00 = 000h to FFFh write protected, no addresses may be modified by EECON control 8 kW Flash memory (PIC16F1936/PIC16LF1936, PIC16F1937/PIC16LF1937 and PIC16F1946/ PIC16LF1946 Write protection off 10 = 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control ...
Page 18
... To enter LVP mode, the LSB of the Least Significant nibble must be shifted in first. This differs from entering the key sequence on other parts. Figure 8-3. -first method DD or below DD 8- 8-4 and 8- 8-9 . See Figures 8-9 and 8-10. IL 2010 Microchip Technology Inc. ...
Page 19
... Reset Address Begin Internally Timed Programming Begin Externally Timed Programming End Externally Timed Programming Bulk Erase Program Memory Bulk Erase Data Memory Row Erase Program Memory 2010 Microchip Technology Inc. Table 4-1. between the DLY Mapping Binary (MSb … LSb) ...
Page 20
... The only way to get back to the program memory (address exit Program/Verify mode or issue the Reset Address command after the configuration memory has been accessed by the Load Configuration command DLY 4-2 DLY LSb MSb LSb MSb 0 2010 Microchip Technology Inc. ...
Page 21
... Input mode (high-impedance) after the 16th falling edge of the clock. If the program memory is code-protected (CP), the data will be read as zeros (see FIGURE 4-4: READ DATA FROM PROGRAM MEMORY ICSPCLK 0 0 ICSPDAT (from Programmer) ICSPDAT (from device) 2010 Microchip Technology Inc. Figure 4-3 DLY Figure 4-4) ...
Page 22
... If the address is incremented from address 7FFFh, it will wrap around to location 0000h. If the address is incremented from FFFFh, it will wrap around to location 8000h. FIGURE 4-6: INCREMENT ADDRESS 1 2 ICSPCLK 0 1 ICSPDAT DS41397B-page DLY Input DLY Address LSb MSb Input Output Next Command Address + 1 2010 Microchip Technology Inc. ...
Page 23
... However, the EEPROM memory address that is being programmed is erased prior to being programmed with internally timed programming. FIGURE 4-8: BEGIN INTERNALLY TIMED PROGRAMMING 1 2 ICSPCLK 0 0 ICSPDAT 2010 Microchip Technology Inc DLY the ...
Page 24
... Externally timed writes are not supported for Configuration and Calibration bits. Any externally timed write to the Configuration or Calibration Word will have no effect on the targeted word. 4-9). End Externally Timed Programming PEXT given. This DIS Command Next Command 2010 Microchip Technology Inc. ...
Page 25
... FIGURE 4-12: BULK ERASE DATA MEMORY COMMAND 1 ICSPCLK 1 ICSPDAT 2010 Microchip Technology Inc. After receiving the Bulk Erase Program Memory command the erase will not complete until the time interval has expired. ERAB Note: The code protection Configuration bit (CP) has no effect on the Bulk Erase Program Memory command ...
Page 26
... ID locations regardless of the setting of the CP Configuration bit. After receiving the Row Erase Program Memory command the erase will not complete until the time interval has expired. ERAR FIGURE 4-13: ROW ERASE PROGRAM MEMORY 1 ICSPCLK ICSPDAT 1 DS41397B-page ERAR Next Command 2010 Microchip Technology Inc. ...
Page 27
... If more than 8 data latches are written without a Begin Externally Timed Programming or Begin Internally Timed Programming command the data in the data latches will be overwritten. The following figures show the recommended flowcharts for programming. 2010 Microchip Technology Inc. DS41397B-page 27 ...
Page 28
... DS41397B-page 28 Start Enter Programming Mode Bulk Erase Device Write Program (1) Memory Write User IDs Write Data (3) Memory Verify Program Memory Verify User IDs Verify Data Memory Write Configuration (2) Words Verify Configuration Words Exit Programming Mode Done 2010 Microchip Technology Inc. ...
Page 29
... Note 1: This step is optional if device has already been erased or has not been previously programmed the device is code-protected or must be completely erased, then Bulk Erase device per 3: See Figure 5-3 or Figure 5-4. 2010 Microchip Technology Inc. Start Bulk Erase Program (1, 2) Memory (3) ...
Page 30
... Note 1: Externally timed writes are not supported for Configuration and Calibration bits. DS41397B-page 30 Program Cycle Load Data for Program Memory Begin Begin Programming Programming Command Command (Externally timed) Wait T Wait T PEXT PINT End Programming Command Wait T DIS (1) 2010 Microchip Technology Inc. ...
Page 31
... PIC16F193X/LF193X/PIC16F194X/LF194X/ FIGURE 5-4: MULTIPLE-WORD PROGRAM CYCLE 2010 Microchip Technology Inc. Program Cycle Load Data Latch 1 for Program Memory Increment Address Command Load Data Latch 2 for Program Memory Increment Address Command Load Data Latch 8 for Program Memory Begin Begin Programming Programming ...
Page 32
... Program Cycle (Config. Word 1) Read Data From Program Memory Command Report No Data Correct? Programming Failure Yes Increment Address Command One-word (2) Program Cycle (Config. Word 2) Read Data From Program Data Correct? Memory Command Report No Programming Failure Yes Done 2010 Microchip Technology Inc. ...
Page 33
... PIC16F193X/LF193X/PIC16F194X/LF194X/ FIGURE 5-6: DATA MEMORY PROGRAM FLOWCHART Increment Address Command Note 1: See Figure 2010 Microchip Technology Inc. Start Bulk Erase Data Memory Data (1) Program Cycle Read Data From Data Memory Command Report No Programming Data Correct? Failure Yes No All Locations Done? ...
Page 34
... Load Data for Data Memory Begin Begin Programming Programming Command Command (Internally timed) (Externally timed) Wait T Wait T PINT PEXT End Programming Command Wait T DIS Start Load Configuration Bulk Erase Program Memory Bulk Erase Data Memory Done 2010 Microchip Technology Inc. ...
Page 35
... To ensure system security, if CPD bit = 0, the Bulk Erase Program command will also erase data memory. 2010 Microchip Technology Inc. 7.0 HEX FILE USAGE In the hex file there are two bytes per program word ® stored in the Intel INHX32 hex format. Data is stored LSB first, MSB second ...
Page 36
... CP Configuration bit. TABLE 7-1: CONFIGURATION WORD MASK VALUES Config. Word 1 Config. Word 2 Device Mask PIC16F1933 3FFFh PIC16LF1933 3FFFh PIC16F1934 3FFFh PIC16LF1934 3FFFh PIC16F1936 3FFFh PIC16LF1936 3FFFh PIC16F1937 3FFFh PIC16LF1937 3FFFh PIC16F1938 3FFFh PIC16LF1938 3FFFh PIC16F1939 3FFFh PIC16LF1939 3FFFh PIC16F1946 3FFFh PIC16LF1946 3FFFh ...
Page 37
... PIC16F193X/LF193X/PIC16F194X/LF194X/ EXAMPLE 7-2: CHECKSUM COMPUTED WITH PROGRAM CODE PROTECTION DISABLED PIC16LF1936, 00AAh AT FIRST AND LAST ADDRESS PIC16LF1936 Sum of Memory addresses 0000h-1FFFh Configuration Word 1 Configuration Word 1 mask Configuration Word 2 Configuration Word 2 mask Checksum = 6156h + (3FFFh and 3FFFh) + (3FFFh and 3703h) Note 1: In PIC16F194X devices, the VCAPEN<1> bit is not implemented in Configuration Word 2 and the Configuration Word 2 mask is 3713h ...
Page 38
... PIC16F193X/LF193X/PIC16F194X/LF194X/ EXAMPLE 7-4: CHECKSUM COMPUTED WITH PROGRAM CODE PROTECTION ENABLED PIC16LF1936, 00AAh AT FIRST AND LAST ADDRESS PIC16LF1936 Configuration Word 1 Configuration Word 1 mask Configuration Word 2 Configuration Word 2 mask User ID (8000h) User ID (8001h) User ID (8002h) User ID (8003h) Sum of User IDs = (000Dh and 000Fh) << (0008h and 000Fh) << ...
Page 39
... Data input not driven to next clock input (delay T required between command/data or command/ DLY command) T Bulk Erase cycle time ERAB T Row Erase cycle time ERAR 2010 Microchip Technology Inc. Standard Operating Conditions Production tested at 25°C Min. Typ. Supply Voltages and currents PIC16F193X/ 2.1 — PIC16F194X PIC16LF193X/ 2.1 — ...
Page 40
... FIGURE 8-5: V FIRST ICSPDAT ICSPCLK Max. Units Conditions/Comments 2.5 Program memory 5 ms Configuration words 5 Data EEPROM 2.1 ms Note 1 s — s — PROGRAMMING MODE EXIT – V LAST PP T EXIT IL PROGRAMMING MODE EXIT – V LAST DD T EXIT IHH IL 2010 Microchip Technology Inc. ...
Page 41
... T T CKH CKL ICSPCLK ICSPDAT as input T CO ICSPDAT as output T LZD ICSPDAT from input T HZD to output ICSPDAT from output to input FIGURE 8-7: WRITE COMMAND-PAYLOAD TIMING 1 2 ICSPCLK X X ICSPDAT 2010 Microchip Technology Inc. T DLY LSb Command MSb 0 Next Payload Command DS41397B-page 41 ...
Page 42
... READ COMMAND-PAYLOAD TIMING 1 2 ICSPCLK X X ICSPDAT (from Programmer) ICSPDAT (from Device) FIGURE 8-9: LVP ENTRY (POWERING UP MCLR T ENTS T ENTH T CKH ICSPCLK LSb of Pattern 0 ICSPDAT DS41397B-page 42 T DLY Command 33 clocks T CKL MSb of Pattern ... LSb MSb 0 Next Payload Command 2010 Microchip Technology Inc. ...
Page 43
... PIC16F193X/LF193X/PIC16F194X/LF194X/ FIGURE 8-10: LVP ENTRY (POWERED MCLR T ENTH T CKH ICSPCLK LSb of Pattern ICSPDAT 0 Note 1: Sequence matching can start with no edge on MCLR first. 2010 Microchip Technology Inc. 33 Clocks T CKL MSb of Pattern 1 2 ... 31 DS41397B-page 43 ...
Page 44
... REVISION HISTORY Revision A (09/2009) Original release of this document. Revision B (08/2010) Revised Pin Diagrams; Added Notes to sections 4.3.1; Revised 4.3.9; Added Note 1 to Figure 5-3; Added Note 1 to Table 8-1; Other minor corrections; Added PIC16LF190X devices. DS41397B-page 44 2010 Microchip Technology Inc. ...
Page 45
... PICtail, 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 46
... Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan - Hsin Chu Tel: 886-3-6578-300 Fax: 886-3-6578-370 Taiwan - Kaohsiung Tel: 886-7-213-7830 Fax: 886-7-330-9305 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 2010 Microchip Technology Inc. 08/04/10 ...