PIC16F946T-I/PT Microchip Technology, PIC16F946T-I/PT Datasheet

Microcontroller

PIC16F946T-I/PT

Manufacturer Part Number
PIC16F946T-I/PT
Description
Microcontroller
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F946T-I/PT

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LCD, POR, PWM, WDT
Number Of I /o
53
Program Memory Size
14KB (8K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
336 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-TFQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
MA160011 - DAUGHTER BOARD PICDEM LCD 16F91X
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F946T-I/PT
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC16F946T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
This document includes the
programming specifications for the
following devices:
1.0
The PIC16F91X/946 devices are programmed using a
serial method. The Serial mode will allow the PIC16F91X/
946 to be programmed while in the user’s system. This
allows for increased design flexibility. This programming
specification applies to the PIC16F91X/946 devices in all
packages.
1.1
PIC16F91X/946 devices require one power supply for
V
Mode Electrical Characteristics” for more details).
TABLE 1-1:
© 2009 Microchip Technology Inc.
• PIC16F913
• PIC16F916
RB6
RB7
MCLR
V
V
AV
AV
Legend: I = Input, O = Output, P = Power
Note 1:
DD
DD
SS
DD
SS (2)
Pin Name
and one for V
(2)
2:
PIC16F91X/946 Memory Programming Specification
PROGRAMMING THE
PIC16F91X/946 DEVICES
Hardware Requirements
In the PIC16F91X/946, 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 any significant current.
AV
DD AND
PP
PIN DESCRIPTIONS IN PROGRAM/VERIFY MODE: PIC16F91X/946
• PIC16F914
• PIC16F917
Program/Verify mode
(see Section 6.0 “Program/Verify
AV
SS
Function
ICSPCLK
ICSPDAT
pins are only available on PIC16F946.
AV
AV
V
V
DD
SS
DD
SS
• PIC16F946
Pin Type
P
I/O
PIC16F91X/946
P
P
P
P
I
(1)
During Programming
1.2
The Program/Verify mode for the PIC16F91X/946
devices allow programming of user program memory,
data memory, user ID locations and the Configuration
Word.
Programming and verification can take place in any
memory region, independent of the remaining regions.
This allows independent programming of program and
data memory regions.
Clock Input – Schmitt Trigger Input
Data Input/Output – Schmitt Trigger Input
Program Mode Select
Power Supply
Ground
Analog Power Supply
Analog Ground
Program/Verify Mode
Pin Description
DS41244F-page 1

Related parts for PIC16F946T-I/PT

PIC16F946T-I/PT Summary of contents

Page 1

... MCLR does not draw any significant current pins are only available on PIC16F946. DD AND SS © 2009 Microchip Technology Inc. PIC16F91X/946 1.2 Program/Verify Mode The Program/Verify mode for the PIC16F91X/946 devices allow programming of user program memory, data memory, user ID locations and the Configuration Word ...

Page 2

... FIGURE 1-2: PIC16F913/916 28-PIN QFN RA2/AN2/C2+/COM2/V REF RA3/AN3/C1+/COM3/V +/SEG15 REF RA4/T0CKI/C1OUT/SEG4 RA5/AN4/SS/C2OUT/SEG5 V SS OSC1/CLKI/T1OSI/RA7 OSC2/CLKO/T1OSO/RA6 DS41244F-page PIC16F913/916 RB7/ICSPDAT/ICDDAT/SEG13 RB6/ICSPCLK/ICDCK/SEG14 RB5/COM1 RB4/COM0 RB3/SEG3 RB2/SEG2 RB1/SEG1 RB0/INT/SEG0 RC7/RX/DT/SDI/SDA/SEG8 RC6/TX/CK/SCK/SCL/SEG9 RC5/T1CKI/CCP1/SEG10 RC4/T1G/SDO/SEG11 RB3/SEG3 RB2/SEG2 RB1/SEG1 RB0/INT/SEG0 RC7/RX/DT/SDI/SDA/SEG8 © 2009 Microchip Technology Inc. ...

Page 3

... FIGURE 1-3: PIC16F914/917 44-PIN DIAGRAM TQFP, QFN 44-pin TQFP RC7/SDA/SDI/DT/RX/SEG8 1 RD4/SEG17 2 RD5/SEG18 3 RD6/SEG19 4 RD7/SEG20 RB0/INT/SEG0 8 RB1/SEG1 9 RB2/SEG2 10 RB3/SEG3 11 44-pin QFN RC7/SDA/SDI/DT/RX/SEG8 © 2009 Microchip Technology Inc RC0/VLCD1 32 OSC2/CLKO/T1OSO/RA6 31 OSC1/CLKI/T1OSI/RA7 PIC16F914/917 RE2/AN7/SEG23 27 RE1/AN6/SEG22 26 RE0/AN5/SEG21 25 RA5/AN4/C2OUT/SS/SEG5 24 23 RA4/C1OUT/T0CKI/SEG4 1 RD4/SEG17 2 RD5/SEG18 3 RD6/SEG19 4 RD7/SEG20 5 PIC16F914/917 ...

Page 4

... DS41244F-page 4 40 RB7/ICSPDAT/ICDDAT/SEG13 1 39 RB6/ICSPCLK/ICDCK/SEG14 2 38 RB5/COM1 3 37 RB4/COM0 4 36 RB3/SEG3 5 35 RB2/SEG2 6 34 RB1/SEG1 7 33 RB0/INT/SEG0 RD7/SEG20 11 29 RD6/SEG19 12 28 RD5/SEG18 13 27 RD4/SEG17 14 26 RC7/RX/DT/SDI/SDA/SEG8 15 25 RC6/TX/CK/SCK/SCL/SEG9 16 24 RC5/T1CKI/CCP1/SEG10 17 23 RC4/T1G/SDO/SEG11 18 22 RD3/SEG16 19 21 RD2/CCP2 20 © 2009 Microchip Technology Inc. ...

Page 5

... FIGURE 1-5: PIC16F946 64-PIN TQFP TQFP RD6/SEG19 1 RD7/SEG20 2 RG0/SEG36 3 RG1/SEG37 4 5 RG2/SEG38 RG3/SEG39 6 RG4/SEG40 7 RG5/SEG41 RF0/SEG32 11 RF1/SEG33 12 RF2/SEG34 13 RF3/SEG35 14 RB0/INT/SEG0 15 RB1/SEG1 © 2009 Microchip Technology Inc. PIC16F91X/946 PIC16F946 RF7/SEG31 47 RF6/SEG30 46 RF5/SEG29 45 RF4/SEG28 44 RE7/SEG27 43 RE6/SEG26 42 RE5/SEG25 RA6/OSC2/CLKO/T1OSO 39 RA7/OSC1/CLKI/T1OSI RE4/SEG24 36 MCLR/V /RE3 PP RE2/AN7/SEG23 ...

Page 6

... Note: The device should not be used if verification locations fails. This information should be reported to the user through the user interface of the device programmer. IDE. of the Calibration Word © 2009 Microchip Technology Inc. ...

Page 7

... User ID Location 2003 Reserved 2004 Reserved 2005 Device ID 2006 Configuration Word 2007 2008 Calibration Word 1 2009 Calibration Word 2 200A-203F Reserved © 2009 Microchip Technology Inc. PIC16F91X/946 4 KW Implemented 0FFF Program Memory Maps to 0-FFF 1FFF 2000 Implemented 2040 Maps to Configuration Memory 2000-203F 3FFF ...

Page 8

... When writing assembly code, data memory is addressed using 0x2100-0x21FF. See Section 5.3.2 “Embedding Data Memory Contents In Hex File” for more details. DS41244F-page Implemented 1FFF 2000 Implemented 2040 Maps to 2000-203F 3FFF Data Memory Program Memory Configuration Memory © 2009 Microchip Technology Inc. ...

Page 9

... Program Counter (PC) is cleared. To prevent a device configured with INTOSC and internal MCLR from executing after exiting Program/ Verify mode; V needs to power-down before V DD See Figure 3-3 for the timing. © 2009 Microchip Technology Inc. FIGURE 3- and data. This ...

Page 10

... Wait T PROG (externally timed). 7. Issue a externally timed. 8. Issue a Increment Address command. 9. Repeat this sequence as required to write program memory. See Figure 3-17 for more information. 2 PROG command if 1 (internally timed PROG End Programming command if © 2009 Microchip Technology Inc. ...

Page 11

... Repeat this sequence three PIC16F913/914 and seven times on PIC16F916/ 917/946 to reset all write latches. © 2009 Microchip Technology Inc. 3.1.5 ERASE ALGORITHMS The PIC16F91X/946 will erase different memory locations depending on the Program Counter (PC), CP and CPD values, and which erase command is executed ...

Page 12

... DLY specified between consecutive for the End Programming . DIS 1 is required between a DLY Data 0, data (14 data (14 data (8), zero (6 data (14 data (8), zero (6 Internally Timed 0 0 Externally Timed Internally Timed 0 1 Internally Timed 1 1 Internally Timed 0 1 © 2009 Microchip Technology Inc. 1 ...

Page 13

... SET T 1 HLD © 2009 Microchip Technology Inc. After the 6-bit command is input, the ICSPCLK pin is cycled an additional 16 times for the Start bit, 14 bits of data and a Stop bit. See Figure 3-4 for more details. After the configuration memory is entered, the only way ...

Page 14

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

Page 15

... The PC is incremented when this command is received. 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) 1 ICSPCLK 0 ICSPDAT © 2009 Microchip Technology Inc DLY DLY ...

Page 16

... Programming command. The addressed location is not erased before programming. FIGURE 3-11: BEGIN PROGRAMMING COMMAND (EXTERNALLY TIMED) V IHH MCLR 1 ICSPCLK 0 ICSPDAT DS41244F-page SET T 1 HLD of the requires T PROG SET T 1 HLD 1 PROG Next Command End Programming Command © 2009 Microchip Technology Inc. ...

Page 17

... Configuration Word is programmed (clear). See Section 3.1.5 “Erase Algorithms” sequences. Note: All Bulk Erase operations must take place between 4.5V and 5. FIGURE 3-13: BULK ERASE PROGRAM MEMORY COMMAND 1 ICSPCLK 1 ICSPDAT T 1 SET © 2009 Microchip Technology Inc SET T 1 HLD for erase ...

Page 18

... To perform a Row Erase Program Memory, the following sequence must be performed: 1. Execute a Row Erase Program Memory command. 2. Wait T to complete a row erase. ERA FIGURE 3-15: ROW ERASE PROGRAM MEMORY COMMAND 1 ICSPCLK 1 ICSPDAT DS41244F-page SET T 1 HLD ERA Next Command ERA Next Command © 2009 Microchip Technology Inc. ...

Page 19

... Note 1: This step is optional if device has already been erased or has not been previously programmed. 2: This step is optional if the data memory does not require updates the device is code-protected or must be completely erased, then Bulk Erase device per Figure 3-21. © 2009 Microchip Technology Inc. PIC16F91X/946 Begin ...

Page 20

... Increment Address Command Load Data for Program Memory Increment Address Command Load Data for Program Memory Begin Begin Programming Programming Command Command (Internally timed) (Externally timed) Wait T 2 Wait T 1 PROG PROG End Programming Wait T DIS © 2009 Microchip Technology Inc. ...

Page 21

... Verification in Eight-word mode is accomplished after programming by reading back the entire memory. 3: This step is optional if the data memory does not require updates the device is code-protected or must be completely erased, then Bulk Erase device per Figure 3-21. © 2009 Microchip Technology Inc. PIC16F91X/946 Program Cycle Load Data Latch 1 ...

Page 22

... Address Command Increment Address Command One-word Program Cycle (Config. bits) Read Data From Program Memory Command Report No Programming Data Correct? Failure Yes Done for Begin Programming Command (Externally timed) Wait T 2 PROG End Programming Wait T DIS © 2009 Microchip Technology Inc. ...

Page 23

... Bulk Erase Data Memory Program Cycle Read Data From Data Memory Command Data Correct? Increment No All Locations Address Done? Command Done © 2009 Microchip Technology Inc. Programming (Internally timed) Wait T Report No Programming Failure Yes Yes PIC16F91X/946 Program Cycle Load Data for ...

Page 24

... PROGRAM FLOWCHART – ERASE FLASH DEVICE DS41244F-page 24 Start Read and Store Calibration Memory Values (Figure 3-22) Bulk Erase Program Memory Load Configuration Bulk Erase Program Memory Bulk Erase Data Memory Read and Verify Calibration Memory Values (Figure 3-22) Done © 2009 Microchip Technology Inc. ...

Page 25

... 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. PIC16F91X/946 Start Load Configuration ...

Page 26

... R/P-1 R/P-1 R/P-1 FCMEN IESO BOREN1 R/P-1 R/P-1 R/P-1 PWRTE WDTE FOSC2 P = Programmable ‘0’ = Bit is cleared (1) (2) (4) DD R/P-1 R/P-1 BOREN0 CPD bit 7 R/P-1 R/P-1 FOSC1 FOSC0 bit Unimplemented bit, read as ‘1’ Bit is unknown © 2009 Microchip Technology Inc. ...

Page 27

... This location does not participate in Bulk Erase operations if the procedure in Figure 3-21 is used. 2: Calibration bits are reserved for factory calibration. These values can and will change across the entire range, therefore, specific values and available adjustment range can not be specified. © 2009 Microchip Technology Inc. R/P-1 R/P-1 R/P-1 ...

Page 28

... U-1 U-1 R/P-1 — — LVD2 P = Programmable ‘0’ = Bit is cleared (1) Rev xxxx xxxx xxxx xxxx xxxx U-1 U-1 — — bit 7 R/P-1 R/P-1 LVD1 LVD0 bit Unimplemented bit, read as ‘1’ Bit is unknown © 2009 Microchip Technology Inc. ...

Page 29

... Specifically for the PIC16F91X/946, 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. © 2009 Microchip Technology Inc. ...

Page 30

... Prgram, v1.0”, 0 DS41244F-page 30 Checksum* addresses are 0x25E6 at 0 Blank and Max. Value Address 0FFF DBCD 2FBE FB8C 0FFF DBCD 2FBE FB8C FFFF CBCD 1FBE EB8C FFFF CBCD 1FBE EB8C FFFF CBCD 1FBE EB8C © 2009 Microchip Technology Inc. ...

Page 31

... PROG timed) Programming cycle time (externally T 2 PROG timed) Time delay from program to compare T DIS (HV discharge time) © 2009 Microchip Technology Inc. Standard Operating Conditions (unless otherwise stated) -40°C ≤ T Operating Temperature 4.5V ≤ V Operating Voltage Min. Typ. Max. General 2.0 — ...

Page 32

... Rev E Document (4/2006) Updated T 1 and T 2 timings. PROG PROG Rev F Document (10/2009) Updated sections 2.3, 3.1.4, 3.1.5; Updated the Note in section 3.1.3; Updated Figures 3-16, 3-17, 3-18, 3-19, 3-21; Added Figure 3-22; Other minor corrections. DS41244F-page 32 © 2009 Microchip Technology Inc. ...

Page 33

... 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 34

... 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