ICGOO在线商城 > 集成电路(IC) > 时钟/计时 - 实时时钟 > MCP7940M-I/P
数量阶梯 | 香港交货 | 国内含税 |
+xxxx | $xxxx | ¥xxxx |
查看当月历史价格
查看今年历史价格
MCP7940M-I/P产品简介:
ICGOO电子元器件商城为您提供MCP7940M-I/P由Microchip设计生产,在icgoo商城现货销售,并且可以通过原厂、代理商等渠道进行代购。 MCP7940M-I/P价格参考。MicrochipMCP7940M-I/P封装/规格:时钟/计时 - 实时时钟, 实时时钟 (RTC) IC 时钟/日历 64B I²C,2 线串口 8-DIP(0.300",7.62mm)。您可以下载MCP7940M-I/P参考资料、Datasheet数据手册功能说明书,资料中有MCP7940M-I/P 详细功能的应用电路图电压和使用方法及教程。
参数 | 数值 |
产品目录 | 集成电路 (IC)半导体 |
描述 | IC RTC CLK/CALENDAR I2C 8DIP实时时钟 I2C RTCC 64B SRAM No VBAT |
产品分类 | |
品牌 | Microchip Technology |
产品手册 | |
产品图片 | |
rohs | 符合RoHS无铅 / 符合限制有害物质指令(RoHS)规范要求 |
产品系列 | 时钟和计时器IC,实时时钟,Microchip Technology MCP7940M-I/P- |
数据手册 | http://www.microchip.com/mymicrochip/filehandler.aspx?ddocname=en557502http://www.microchip.com/mymicrochip/filehandler.aspx?ddocname=en569231 |
产品型号 | MCP7940M-I/P |
PCN组件/产地 | http://www.microchip.com/mymicrochip/NotificationDetails.aspx?id=5828&print=viewhttp://www.microchip.com/mymicrochip/NotificationDetails.aspx?id=6026&print=view |
PCN设计/规格 | http://www.microchip.com/mymicrochip/NotificationDetails.aspx?id=5893&print=viewhttp://www.microchip.com/mymicrochip/NotificationDetails.aspx?id=6005&print=view |
RTC存储容量 | 64 B |
RTC总线接口 | I2C |
产品种类 | |
供应商器件封装 | 8-PDIP |
其它名称 | MCP7940MIP |
功能 | Clock, Calendar. Alarm |
包装 | 管件 |
商标 | Microchip Technology |
存储容量 | 64B |
安装类型 | 通孔 |
安装风格 | Through Hole |
封装 | Tube |
封装/外壳 | 8-DIP(0.300",7.62mm) |
封装/箱体 | PDIP-8 |
工作温度 | -40°C ~ 85°C |
工厂包装数量 | 60 |
接口 | I²C,2 线串口 |
日期格式 | DW:DM:M:Y |
时间格式 | HH:MM:SS |
最大工作温度 | + 85 C |
标准包装 | 60 |
特性 | 警报器,闰年,方波输出,SRAM |
电压-电源 | 1.8 V ~ 5.5 V |
电压-电源,电池 | - |
电池备用开关 | Yes |
电流-计时(最大) | 1µA @ 5.5V |
电源电压-最大 | 5.5 V |
电源电压-最小 | 1.8 V |
类型 | 时钟/日历 |
MCP7940M 2 Low-Cost I C Real-Time Clock/Calendar with SRAM Timekeeping Features General Description • Real-Time Clock/Calendar (RTCC): The MCP7940M Real-Time Clock/Calendar (RTCC) - Hours, Minutes, Seconds, Day of Week, Day, tracks time using internal counters for hours, minutes, Month, Year seconds, days, months, years, and day of week. - Leap year compensated to 2399 Alarms can be configured on all counters up to and - 12/24 hour modes including months. For usage and configuration, the MCP7940M supports I2C communications up to 400 • Oscillator for 32.768 kHz Crystals: kHz. - Optimized for 6-9 pF crystals The open-drain, multi-functional output can be • On-Chip Digital Trimming/Calibration: configured to assert on an alarm match, to output a - ±1 PPM resolution selectable frequency square wave, or as a general - ±129 PPM range purpose output. • Dual Programmable Alarms The MCP7940M is designed to operate using a 32.768 • Versatile Output Pin: kHz tuning fork crystal with external crystal load - Clock output with selectable frequency capacitors. On-chip digital trimming can be used to - Alarm output adjust for frequency variance caused by crystal - General purpose output tolerance and temperature. Low-Power Features Package Types • Wide Voltage Range: SOIC, MSOP, TSSOP, PDIP - Operating voltage range of 1.8V to 5.5V TDFN • Low Typical Timekeeping Current: X1 1 8 VCC X1 1 8 VCC - Operating from VCC: 1.2 μA at 3.3V X2 2 7 MFP X2 2 7 MFP User Memory NC 3 6 SCL NC 3 6 SCL VSS 4 5 SDA • 64-byte SRAM VSS 4 5 SDA Operating Ranges • 2-Wire Serial Interface, I2C Compatible - I2C clock rate up to 400 kHz • Temperature Range: - Industrial (I): -40°C to +85°C Packages: • 8-Lead SOIC, MSOP, TSSOP, PDIP and 2x3 TDFN 2012-2018 Microchip Technology Inc. DS20002292C-page 1
MCP7940M FIGURE 1-1: TYPICAL APPLICATION SCHEMATIC VCC VCC VCC 8 VCC 1 CX1 X1 Z H 6 K SCL 8 6 7 PIC® MCU 5 MCP7940M 2 32. CX2 SDA X2 7 MFP VSS 4 FIGURE 1-2: BLOCK DIAGRAM VCC Pow er VSS Supply SCL I2C Interface Control Logic Configuration and Addressing SDA Seconds SRAM Minutes X1 32.768 kHz Hours Clock Divider Oscillator X2 Day of Week Digital Trimming Date Square Wave Month Alarms Output Year MFP Output Logic 2012-2018 Microchip Technology Inc. DS20002292C-page 2
MCP7940M 1.0 ELECTRICAL CHARACTERISTICS Absolute Maximum Ratings (†) VCC.............................................................................................................................................................................6.5V All inputs and outputs (except SDA and SCL) w.r.t. VSS....................................................................-0.6V to VCC +1.0V SDA and SCL w.r.t. VSS...............................................................................................................................-0.6V to 6.5V Storage temperature...............................................................................................................................-65°C to +150°C Ambient temperature with power applied................................................................................................-40°C to +125°C ESD protection on all pins 4 kV † NOTICE: Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress rating only and functional operation of the device at those or any other conditions above those indicated in the operational listings of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. TABLE 1-1: DC CHARACTERISTICS Electrical Characteristics: DC CHARACTERISTICS Industrial (I): VCC = +1.8V to 5.5V TA = -40°C to +85°C Param. Sym. Characteristic Min. Typ.(2) Max. Units Conditions No. D1 VIH High-level input voltage 0.7 VCC — — V — D2 VIL Low-level input voltage — — 0.3 VCC V VCC 2.5V 0.2 VCC V VCC < 2.5V D3 VHYS Hysteresis of Schmitt 0.05 — — V (Note 1) Trigger inputs VCC (SDA, SCL pins) D4 VOL Low-level output voltage — — 0.40 V IOL = 3.0 mA @ VCC = 4.5V (MFP, SDA pins) IOL = 2.1 mA @ VCC = 2.5V D5 ILI Input leakage current — — ±1 A VIN = VSS or VCC D6 ILO Output leakage current — — ±1 A VOUT = VSS or VCC D7 CIN, Pin capacitance — — 10 pF VCC = 5.0V (Note 1) COUT (SDA, SCL, MFP pins) TA = 25°C, f = 1 MHz D8 COSC Oscillator pin — 3 — pF (Note 1) capacitance (X1, X2 pins) D9 ICCREAD SRAM/RTCC register — — 300 A VCC = 5.5V, SCL = 400 kHz ICCWRITE operating current — — 400 A VCC = 5.5V, SCL = 400 kHz D10 ICCDAT VCC data-retention — — 1 A SCL, SDA, VCC = 5.5V current (oscillator off) D11 ICCT Timekeeping current — 1.2 — A VCC = 3.3V (Note 1) Note 1: This parameter is not tested but ensured by characterization. 2: Typical measurements taken at room temperature. 2012-2018 Microchip Technology Inc. DS20002292C-page 3
MCP7940M TABLE 1-2: AC CHARACTERISTICS Electrical Characteristics: AC CHARACTERISTICS Industrial (I): VCC = +1.8V to 5.5V TA = -40°C to +85°C Param. Symbol Characteristic Min. Typ. Max. Units Conditions No. 1 FCLK Clock frequency — — 100 kHz 1.8V VCC < 2.5V — — 400 2.5V VCC 5.5V 2 THIGH Clock high time 4000 — — ns 1.8V VCC < 2.5V 600 — — 2.5V VCC 5.5V 3 TLOW Clock low time 4700 — — ns 1.8V VCC < 2.5V 1300 — — 2.5V VCC 5.5V 4 TR SDA and SCL rise time — — 1000 ns 1.8V VCC < 2.5V (Note 1) — — 300 2.5V VCC 5.5V 5 TF SDA and SCL fall time — — 1000 ns 1.8V VCC < 2.5V (Note 1) — — 300 2.5V VCC 5.5V 6 THD:STA Start condition hold time 4000 — — ns 1.8V VCC < 2.5V 600 — — 2.5V VCC 5.5V 7 TSU:STA Start condition setup time 4700 — — ns 1.8V VCC < 2.5V 600 — — 2.5V VCC 5.5V 8 THD:DAT Data input hold time 0 — — ns (Note 2) 9 TSU:DAT Data input setup time 250 — — ns 1.8V VCC < 2.5V 100 — — 2.5V VCC 5.5V 10 TSU:STO Stop condition setup time 4000 — — ns 1.8V VCC < 2.5V 600 — — 2.5V VCC 5.5V 11 TAA Output valid from clock — — 3500 ns 1.8V VCC < 2.5V — — 900 2.5V VCC 5.5V 12 TBUF Bus free time: Time the bus 4700 — — ns 1.8V VCC < 2.5V must be free before a new 1300 — — 2.5V VCC 5.5V transmission can start 13 TSP Input filter spike suppression — — 50 ns (Note 1) (SDA and SCL pins) 14 FOSC Oscillator frequency — 32.768 — kHz — 15 TOSF Oscillator timeout period 1 — — ms (Note 1) Note 1: Not 100% tested. 2: As a transmitter, the device must provide an internal minimum delay time to bridge the undefined region (minimum 300 ns) of the falling edge of SCL to avoid unintended generation of Start or Stop conditions. 2012-2018 Microchip Technology Inc. DS20002292C-page 4
MCP7940M FIGURE 1-3: I2C BUS TIMING DATA 5 4 2 D3 SCL 7 3 8 9 10 SDA 6 In 13 11 12 SDA Out 2012-2018 Microchip Technology Inc. DS20002292C-page 5
MCP7940M 2.0 PIN DESCRIPTIONS The descriptions of the pins are listed in Table 2-1. TABLE 2-1: PIN FUNCTION TABLE 8-pin 8-pin 8-pin 8-pin 8-pin Name Function SOIC MSOP TSSOP TDFN PDIP X1 1 1 1 1 1 Quartz Crystal Input, External Oscillator Input X2 2 2 2 2 2 Quartz Crystal Output NC 3 3 3 3 3 Not Connected Vss 4 4 4 4 4 Ground SDA 5 5 5 5 5 Bidirectional Serial Data (I2C) SCL 6 6 6 6 6 Serial Clock (I2C) MFP 7 7 7 7 7 Multifunction Pin VCC 8 8 8 8 8 Primary Power Supply Note: Exposed pad on TFDN can be connected to VSS or left floating. 2.1 Serial Data (SDA) This is a bidirectional pin used to transfer addresses and data into and out of the device. It is an open-drain terminal. Therefore, the SDA bus requires a pull-up resistor to VCC (typically 10 k for 100 kHz, 2 kfor 400 kHz). For normal data transfer, SDA is allowed to change only during SCL low. Changes during SCL high are reserved for indicating the Start and Stop conditions. 2.2 Serial Clock (SCL) This input is used to synchronize the data transfer to and from the device. 2.3 Oscillator Input/Output (X1, X2) These pins are used as the connections for an external 32.768 kHz quartz crystal and load capacitors. X1 is the crystal oscillator input and X2 is the output. The MCP7940M is designed to allow for the use of external load capacitors in order to provide additional flexibility when choosing external crystals. The MCP7940M is optimized for crystals with a specified load capacitance of 6-9 pF. X1 also serves as the external clock input when the MCP7940M is configured to use an external oscillator. 2.4 Multifunction Pin (MFP) This is an output pin used for the alarm and square wave output functions. It can also serve as a general purpose output pin by controlling the OUT bit in the CONTROL register. The MFP is an open-drain output and requires a pull-up resistor to VCC (typically 10 k). This pin may be left floating if not used. 2012-2018 Microchip Technology Inc. DS20002292C-page 6
MCP7940M 3.0 I2C BUS CHARACTERISTICS 3.1.1.3 Stop Data Transfer (C) A low-to-high transition of the SDA line while the clock 3.1 I2C Interface (SCL) is high determines a Stop condition. All operations must end with a Stop condition. The MCP7940M supports a bidirectional 2-wire bus and data transmission protocol. A device that sends 3.1.1.4 Data Valid (D) data onto the bus is defined as transmitter, and a device receiving data as receiver. The bus has to be The state of the data line represents valid data when, controlled by a master device which generates the after a Start condition, the data line is stable for the Start and Stop conditions, while the MCP7940M works duration of the high period of the clock signal. as slave. Both master and slave can operate as The data on the line must be changed during the low transmitter or receiver but the master device period of the clock signal. There is one bit of data per determines which mode is activated. clock pulse. 3.1.1 BUS CHARACTERISTICS Each data transfer is initiated with a Start condition and terminated with a Stop condition. The number of the The following bus protocol has been defined: data bytes transferred between the Start and Stop • Data transfer may be initiated only when the bus conditions is determined by the master device. is not busy. 3.1.1.5 Acknowledge • During data transfer, the data line must remain stable whenever the clock line is high. Changes in Each receiving device, when addressed, is obliged to the data line while the clock line is high will be generate an Acknowledge signal after the reception of interpreted as a Start or Stop condition. each byte. The master device must generate an extra clock pulse which is associated with this Acknowledge Accordingly, the following bus conditions have been bit. defined (Figure 3-1). A device that acknowledges must pull down the SDA 3.1.1.1 Bus Not Busy (A) line during the Acknowledge clock pulse in such a way Both data and clock lines remain high. that the SDA line is stable-low during the high period of the Acknowledge-related clock pulse. Of course, setup 3.1.1.2 Start Data Transfer (B) and hold times must be taken into account. During reads, a master must signal an end of data to the slave A high-to-low transition of the SDA line while the clock by NOT generating an Acknowledge bit on the last byte (SCL) is high determines a Start condition. All that has been clocked out of the slave. In this case, the commands must be preceded by a Start condition. slave (MCP7940M) will leave the data line high to enable the master to generate the Stop condition. FIGURE 3-1: DATA TRANSFER SEQUENCE ON THE SERIAL BUS (A) (B) (D) (D) (C) (A) SCL SDA Start Address or Data Stop Condition Acknowledge Allowed Condition Valid to Change 2012-2018 Microchip Technology Inc. DS20002292C-page 7
MCP7940M FIGURE 3-2: ACKNOWLEDGE TIMING Acknowledge Bit SCL 1 2 3 4 5 6 7 8 9 1 2 3 SDA Data from transmitter Data from transmitter Transmitter must release the SDA line at this point Receiver must release the SDA line at this point allowing the Receiver to pull the SDA line low to so the Transmitter can continue sending data. acknowledge the previous eight bits of data. 3.1.2 DEVICE ADDRESSING The control byte is the first byte received following the Start condition from the master device (Figure 3-3). The control byte begins with a 4-bit control code. For the MCP7940M, this is set ‘1101’ for register read and write operations. The next three bits are non-config- urable Chip Select bits that must always be set to ‘1’. The last bit of the control byte defines the operation to be performed. When set to a ‘1’ a read operation is selected, and when set to a ‘0’ a write operation is selected. The combination of the 4-bit control code and the three Chip Select bits is called the slave address. Upon receiving a valid slave address, the slave device out- puts an acknowledge signal on the SDA line. Depend- ing on the state of the R/W bit, the MCP7940M will select a read or a write operation. FIGURE 3-3: CONTROL BYTE FORMAT Acknowledge Bit Read/Write Bit Start Bit Chip Select Control Code Bits S 1 1 0 1 1 1 1 R/W ACK RTCC Register/SRAM Control Byte 2012-2018 Microchip Technology Inc. DS20002292C-page 8
MCP7940M 4.0 FUNCTIONAL DESCRIPTION 4.1 Memory Organization The MCP7940M is a highly-integrated Real-Time The MCP7940M features two different blocks of mem- Clock/Calendar (RTCC). Using an on-board, low- ory: the RTCC registers and general purpose SRAM power oscillator, the current time is maintained in sec- (Figure 4-1). They share the same address space, onds, minutes, hours, day of week, date, month, and accessed through the ‘1101111X’ control byte. year. The MCP7940M also features 64 bytes of general Unused locations are not accessible. The MCP7940M purpose SRAM. Two alarm modules allow interrupts to will not acknowledge if the address is out of range, as be generated at specific times with flexible comparison shown in the shaded region of the memory map in options. Digital trimming can be used to compensate Figure 4-1. for inaccuracies inherent with crystals. The RTCC registers are contained in addresses 0x00- The RTCC configuration and Status registers are used 0x1F. Table 4-1 shows the detailed RTCC register to access all of the modules featured on the map. There are 64 bytes of user-accessible SRAM, MCP7940M. located in the address range 0x20-0x5F. The SRAM is a separate block from the RTCC registers. FIGURE 4-1: MEMORY MAP RTCC Registers/SRAM 0x00 Time and Date 0x06 0x07 Configuration and Trimming 0x09 0x0A Alarm 0 0x10 0x11 Alarm 1 0x17 0x18 RESERVED – Do Not Use 0x1F 0x20 SRAM (64 Bytes) 0x5F 0x60 Unimplemented; device does not ACK 0xFF I2C Address: 1101111x 2012-2018 Microchip Technology Inc. DS20002292C-page 9
MCP7940M TABLE 4-1: DETAILED RTCC REGISTER MAP Addr. Register Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Section 4.3 “Timekeeping” 00h RTCSEC ST SECTEN2 SECTEN1 SECTEN0 SECONE3 SECONE2 SECONE1 SECONE0 01h RTCMIN — MINTEN2 MINTEN1 MINTEN0 MINONE3 MINONE2 MINONE1 MINONE0 02h RTCHOUR — 12/24 AM/PM HRTEN0 HRONE3 HRONE2 HRONE1 HRONE0 HRTEN1 03h RTCWKDAY — — OSCRUN — — WKDAY2 WKDAY1 WKDAY0 04h RTCDATE — — DATETEN1 DATETEN0 DATEONE3 DATEONE2 DATEONE1 DATEONE0 05h RTCMTH — — LPYR MTHTEN0 MTHONE3 MTHONE2 MTHONE1 MTHONE0 06h RTCYEAR YRTEN3 YRTEN2 YRTEN1 YRTEN0 YRONE3 YRONE2 YRONE1 YRONE0 07h CONTROL OUT SQWEN ALM1EN ALM0EN EXTOSC CRSTRIM SQWFS1 SQWFS0 08h OSCTRIM SIGN TRIMVAL6 TRIMVAL5 TRIMVAL4 TRIMVAL3 TRIMVAL2 TRIMVAL1 TRIMVAL0 09h Reserved Reserved – Do not use Section 4.4 “Alarms” 0Ah ALM0SEC — SECTEN2 SECTEN1 SECTEN0 SECONE3 SECONE2 SECONE1 SECONE0 0Bh ALM0MIN — MINTEN2 MINTEN1 MINTEN0 MINONE3 MINONE2 MINONE1 MINONE0 0Ch ALM0HOUR — 12/24(2) AM/PM HRTEN0 HRONE3 HRONE2 HRONE1 HRONE0 HRTEN1 0Dh ALM0WKDAY ALMPOL ALM0MSK2 ALM0MSK1 ALM0MSK0 ALM0IF WKDAY2 WKDAY1 WKDAY0 0Eh ALM0DATE — — DATETEN1 DATETEN0 DATEONE3 DATEONE2 DATEONE1 DATEONE0 0Fh ALM0MTH — — — MTHTEN0 MTHONE3 MTHONE2 MTHONE1 MTHONE0 10h Reserved Reserved – Do not use Section 4.4 “Alarms” 11h ALM1SEC — SECTEN2 SECTEN1 SECTEN0 SECONE3 SECONE2 SECONE1 SECONE0 12h ALM1MIN — MINTEN2 MINTEN1 MINTEN0 MINONE3 MINONE2 MINONE1 MINONE0 13h ALM1HOUR — 12/24(2) AM/PM HRTEN0 HRONE3 HRONE2 HRONE1 HRONE0 HRTEN1 14h ALM1WKDAY ALMPOL(3) ALM1MSK2 ALM1MSK1 ALM1MSK0 ALM1IF WKDAY2 WKDAY1 WKDAY0 15h ALM1DATE — — DATETEN1 DATETEN0 DATEONE3 DATEONE2 DATEONE1 DATEONE0 16h ALM1MTH — — — MTHTEN0 MTHONE3 MTHONE2 MTHONE1 MTHONE0 17h-1Fh Reserved Reserved – Do not use Note 1: Grey areas are unimplemented. 2: The 12/24 bits in the ALMxHOUR registers are read-only and reflect the value of the 12/24 bit in the RTCHOUR register. 3: The ALMPOL bit in the ALM1WKDAY register is read-only and reflects the value of the ALMPOL bit in the ALM0WKDAY register. 2012-2018 Microchip Technology Inc. DS20002292C-page 10
MCP7940M 4.2 Oscillator Configuration EQUATION 4-1: LOAD CAPACITANCE CALCULATION The MCP7940M can be operated in two different oscil- lator configurations: using an external crystal or using an external clock input. CL = -C-----X---1---------C-----X----2-+CSTRAY C +C X1 X2 4.2.1 EXTERNAL CRYSTAL The crystal oscillator circuit on the MCP7940M is Where: designed to operate with a standard 32.768 kHz tuning CL = Effective load capacitance fork crystal and matching external load capacitors. By C = Capacitor value on X1+COSC using external load capacitors, the MCP7940M allows X1 C = Capacitor value on X2+COSC for a wide selection of crystals. Suitable crystals have X2 CSTRAY = PCB stray capacitance a load capacitance (CL) of 6-9 pF. Crystals with a load capacitance of 12.5 pF are not recommended. Figure 4-2 shows the pin connections when using an 4.2.1.2 Layout Considerations external crystal. The oscillator circuit should be placed on the same FIGURE 4-2: CRYSTAL OPERATION side of the board as the device. Place the oscillator circuit close to the respective oscillator pins. The load capacitors should be placed next to the oscillator MCP7940M itself, on the same side of the board. X1 Use a grounded copper pour around the oscillator cir- cuit to isolate it from surrounding circuits. The CX1 To Internal Logic grounded copper pour should be routed directly to VSS. Do not run any signal traces or power traces inside the Quartz Crystal ST ground pour. Also, if using a two-sided board, avoid any traces on the other side of the board where the crystal is placed. CX2 X2 Layout suggestions are shown in Figure 4-3. In-line packages may be handled with a single-sided layout that completely encompasses the oscillator pins. With fine-pitch packages, it is not always possible to com- Note1: The ST bit must be set to enable the pletely surround the pins and components. A suitable crystal oscillator circuit. solution is to tie the broken guard sections to a mirrored 2: Always verify oscillator performance over ground layer. In all cases, the guard trace(s) must be the voltage and temperature range that is returned to ground. expected for the application. For additional information and design guidance on oscillator circuits, refer to these Microchip Application 4.2.1.1 Choosing Load Capacitors Notes, available at the corporate website CL is the effective load capacitance as seen by the (www.microchip.com): crystal, and includes the physical load capacitors, pin • AN1365, “Recommended Usage of Microchip capacitance, and stray board capacitance. Equation 4-1 Serial RTCC Devices” can be used to calculate CL. • AN1519, “Recommended Crystals for Microchip CX1 and CX2 are the external load capacitors. They Stand-Alone Real-Time Clock Calendar Devices” must be chosen to match the selected crystal’s speci- fied load capacitance. Note: If the load capacitance is not correctly matched to the chosen crystal’s specified value, the crystal may give a frequency outside of the crystal manufacturer’s specifications. 2012-2018 Microchip Technology Inc. DS20002292C-page 11
MCP7940M FIGURE 4-3: SUGGESTED PLACEMENT OF THE OSCILLATOR CIRCUIT Single-Sided and In-line Layouts: Fine-Pitch (Dual-Sided) Layouts: Copper Pour Oscillator Top Layer Copper Pour (tied to ground) Crystal (tied to ground) Bottom Layer Copper Pour (tied to ground) X1 X1 CX1 CX1 X2 Oscillator GND Crystal CX2 GND CX2 ` X2 DEVICE PINS DEVICE PINS 4.2.2 EXTERNAL CLOCK INPUT 4.2.3 OSCILLATOR FAILURE STATUS A 32.768 kHz external clock source can be connected The MCP7940M features an oscillator failure flag, to the X1 pin (Figure 4-4). When using this configura- OSCRUN, that indicates whether or not the oscillator is tion, the X2 pin should be left floating. running. The OSCRUN bit is automatically set after 32 oscillator cycles are detected. If no oscillator cycles are Note: The EXTOSC bit must be set to enable an detected for more than TOSF, then the OSCRUN bit is external clock source. automatically cleared (Figure 4-5). This can occur if the oscillator is stopped by clearing the ST bit or due to FIGURE 4-4: EXTERNAL CLOCK INPUT oscillator failure. OPERATION MCP7940M Clock from X1 Ext. Source FIGURE 4-5: OSCILLATOR FAILURE STATUS TIMING DIAGRAM X1 32 Clock Cycles < TOSF TOSF OSCRUN Bit TABLE 4-2: SUMMARY OF REGISTERS ASSOCIATED WITH OSCILLATOR CONFIGURATION Register Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 on Page RTCSEC ST SECTEN2 SECTEN1 SECTEN0 SECONE3 SECONE2 SECONE1 SECONE0 14 RTCWKDAY — — OSCRUN — — WKDAY2 WKDAY1 WKDAY0 16 CONTROL OUT SQWEN ALM1EN ALM0EN EXTOSC CRSTRIM SQWFS1 SQWFS0 24 Legend: — = unimplemented location, read as ‘0’. Shaded cells are not used by oscillator configuration. 2012-2018 Microchip Technology Inc. DS20002292C-page 12
MCP7940M 4.3 Timekeeping 4.3.1 DIGIT CARRY RULES The MCP7940M maintains the current time and date The following list explains which timer values cause a using an external 32.768 kHz crystal or clock source. digit carry when there is a rollover: Separate registers are used for tracking seconds, min- • Time of day: from 11:59:59 PM to 12:00:00 AM utes, hours, day of week, date, month, and year. The (12-hour mode) or 23:59:59 to 00:00:00 (24-hour MCP7940M automatically adjusts for months with less mode), with a carry to the Date and Weekday than 31 days and compensates for leap years from fields 2001 to 2399. The year is stored as a two-digit value. • Date: carries to the Month field according to Table Both 12-hour and 24-hour time formats are supported 5-3 and are selected using the 12/24 bit. • Weekday: from 7 to 1 with no carry The day of week value counts from 1 to 7, increments • Month: from 12/31 to 01/01 with a carry to the at midnight, and the representation is user-defined (i.e., Year field the MCP7940M does not require 1 to equal Sunday, • Year: from 99 to 00 with no carry etc.). All time and date values are stored in the registers as TABLE 4-3: DAY TO MONTH ROLLOVER binary-coded decimal (BCD) values. SCHEDULE When reading from the timekeeping registers, the reg- Month Name Maximum Date isters are buffered to prevent errors due to rollover of 01 January 31 counters. The following events cause the buffers to be 02 February 28 or 29(1) updated: 03 March 31 • When a read is initiated from the RTCC registers 04 April 30 (addresses 0x00 to 0x1F) • During an RTCC register read operation, when 05 May 31 the register address rolls over from 0x1F to 0x00 06 June 30 The timekeeping registers should be read in a single 07 July 31 operation to utilize the on-board buffers and avoid 08 August 31 rollover issues. 09 September 30 Note1: Loading invalid values into the time and 10 October 31 date registers will result in undefined 11 November 30 operation. 12 December 31 2: To avoid rollover issues when loading Note 1: 29 during leap years, otherwise 28. new time and date values, the oscillator/ clock input should be disabled by clearing the ST bit for External Crystal mode and the EXTOSC bit for External Clock Input mode. After waiting for the OSCRUN bit to clear, the new values can be loaded and the ST or EXTOSC bit can then be re-enabled. 2012-2018 Microchip Technology Inc. DS20002292C-page 13
MCP7940M REGISTER 4-1: RTCSEC: TIMEKEEPING SECONDS VALUE REGISTER (ADDRESS 0x00) R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 ST SECTEN2 SECTEN1 SECTEN0 SECONE3 SECONE2 SECONE1 SECONE0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7 ST: Start Oscillator bit 1 = Oscillator enabled 0 = Oscillator disabled bit 6-4 SECTEN<2:0>: Binary-Coded Decimal Value of Second’s Tens Digit Contains a value from 0 to 5 bit 3-0 SECONE<3:0>: Binary-Coded Decimal Value of Second’s Ones Digit Contains a value from 0 to 9 2012-2018 Microchip Technology Inc. DS20002292C-page 14
MCP7940M REGISTER 4-2: RTCMIN: TIMEKEEPING MINUTES VALUE REGISTER (ADDRESS 0x01) U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 — MINTEN2 MINTEN1 MINTEN0 MINONE3 MINONE2 MINONE1 MINONE0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7 Unimplemented: Read as ‘0’ bit 6-4 MINTEN<2:0>: Binary-Coded Decimal Value of Minute’s Tens Digit Contains a value from 0 to 5 bit 3-0 MINONE<3:0>: Binary-Coded Decimal Value of Minute’s Ones Digit Contains a value from 0 to 9 REGISTER 4-3: RTCHOUR: TIMEKEEPING HOURS VALUE REGISTER (ADDRESS 0x02) U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 — 12/24 AM/PM HRTEN0 HRONE3 HRONE2 HRONE1 HRONE0 HRTEN1 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown If 12/24 = 1 (12-hour format): bit 7 Unimplemented: Read as ‘0’ bit 6 12/24: 12 or 24 Hour Time Format bit 1 = 12-hour format 0 = 24-hour format bit 5 AM/PM: AM/PM Indicator bit 1 = PM 0 = AM bit 4 HRTEN0: Binary-Coded Decimal Value of Hour’s Tens Digit Contains a value from 0 to 1 bit 3-0 HRONE<3:0>: Binary-Coded Decimal Value of Hour’s Ones Digit Contains a value from 0 to 9 If 12/24 = 0 (24-hour format): bit 7 Unimplemented: Read as ‘0’ bit 6 12/24: 12 or 24 Hour Time Format bit 1 = 12-hour format 0 = 24-hour format bit 5-4 HRTEN<1:0>: Binary-Coded Decimal Value of Hour’s Tens Digit Contains a value from 0 to 2. bit 3-0 HRONE<3:0>: Binary-Coded Decimal Value of Hour’s Ones Digit Contains a value from 0 to 9 2012-2018 Microchip Technology Inc. DS20002292C-page 15
MCP7940M REGISTER 4-4: RTCWKDAY: TIMEKEEPING WEEKDAY VALUE REGISTER (ADDRESS 0x03) U-0 U-0 R-0 U-0 U-0 R/W-0 R/W-0 R/W-1 — — OSCRUN — — WKDAY2 WKDAY1 WKDAY0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7-6 Unimplemented: Read as ‘0’ bit 5 OSCRUN: Oscillator Status bit 1 = Oscillator is enabled and running 0 = Oscillator has stopped or has been disabled bit 4-3 Unimplemented: Read as ‘0’ bit 2-0 WKDAY<2:0>: Binary-Coded Decimal Value of Day of Week Contains a value from 1 to 7. The representation is user-defined. REGISTER 4-5: RTCDATE: TIMEKEEPING DATE VALUE REGISTER (ADDRESS 0x04) U-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-1 — — DATETEN1 DATETEN0 DATEONE3 DATEONE2 DATEONE1 DATEONE0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7-6 Unimplemented: Read as ‘0’ bit 5-4 DATETEN<1:0>: Binary-Coded Decimal Value of Date’s Tens Digit Contains a value from 0 to 3 bit 3-0 DATEONE<3:0>: Binary-Coded Decimal Value of Date’s Ones Digit Contains a value from 0 to 9 2012-2018 Microchip Technology Inc. DS20002292C-page 16
MCP7940M REGISTER 4-6: RTCMTH: TIMEKEEPING MONTH VALUE REGISTER (ADDRESS 0x05) U-0 U-0 R-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-1 — — LPYR MTHTEN0 MTHONE3 MTHONE2 MTHONE1 MTHONE0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7-6 Unimplemented: Read as ‘0’ bit 5 LPYR: Leap Year bit 1 = Year is a leap year 0 = Year is not a leap year bit 4 MTHTEN0: Binary-Coded Decimal Value of Month’s Tens Digit Contains a value of 0 or 1 bit 3-0 MTHONE<3:0>: Binary-Coded Decimal Value of Month’s Ones Digit Contains a value from 0 to 9 REGISTER 4-7: RTCYEAR: TIMEKEEPING YEAR VALUE REGISTER (ADDRESS 0x06) R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-1 YRTEN3 YRTEN2 YRTEN1 YRTEN0 YRONE3 YRONE2 YRONE1 YRONE0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7-4 YRTEN<3:0>: Binary-Coded Decimal Value of Year’s Tens Digit Contains a value from 0 to 9 bit 3-0 YRONE<3:0>: Binary-Coded Decimal Value of Year’s Ones Digit Contains a value from 0 to 9 TABLE 4-4: SUMMARY OF REGISTERS ASSOCIATED WITH TIMEKEEPING Register Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 on Page RTCSEC ST SECTEN2 SECTEN1 SECTEN0 SECONE3 SECONE2 SECONE1 SECONE0 14 RTCMIN — MINTEN2 MINTEN1 MINTEN0 MINONE3 MINONE2 MINONE1 MINONE0 15 RTCHOUR — 12/24 AM/PM HRTEN0 HRONE3 HRONE2 HRONE1 HRONE0 15 HRTEN1 RTCWKDAY — — OSCRUN — — WKDAY2 WKDAY1 WKDAY0 16 RTCDATE — — DATETEN1 DATETEN0 DATEONE3 DATEONE2 DATEONE1 DATEONE0 16 RTCMTH — — LPYR MTHTEN0 MTHONE3 MTHONE2 MTHONE1 MTHONE0 17 RTCYEAR YRTEN3 YRTEN2 YRTEN1 YRTEN0 YRONE3 YRONE2 YRONE1 YRONE0 17 Legend: — = unimplemented location, read as ‘0’. Shaded cells are not used in timekeeping. 2012-2018 Microchip Technology Inc. DS20002292C-page 17
MCP7940M 4.4 Alarms TABLE 4-5: ALARM MASKS The MCP7940M features two independent alarms. ALMxMSK<2:0> Alarm Asserts on Match of Each alarm can be used to either generate an interrupt 000 Seconds at a specific time in the future, or to generate a periodic 001 Minutes interrupt every minute, hour, day, day of week, or month. 010 Hours There is a separate interrupt flag, ALMxIF, for each 011 Day of Week alarm. The interrupt flags are set by hardware when the 100 Date chosen alarm mask condition matches (Table 4-5). 101 Reserved The interrupt flags must be cleared in software. 110 Reserved If either alarm module is enabled by setting the corre- 111 Seconds, Minutes, Hours, Day of sponding ALMxEN bit in the CONTROL register, and if Week, Date, and Month the square wave clock output is disabled (SQWEN = 0), then the MFP will operate in Alarm Interrupt Output mode. Refer to Section 4.5 “Output Configurations” Note1: The alarm interrupt flags must be cleared for details. by the user. If a flag is cleared while the Both Alarm0 and Alarm1 offer identical operation. All corresponding alarm condition still time and date values are stored in the registers as matches, the flag will be set again, gener- binary-coded decimal (BCD) values. ating another interrupt. Note: Throughout this section, references to the 2: Loading invalid values into the alarm reg- register and bit names for the alarm mod- isters will result in undefined operation. ules are referred to generically by the use of ‘x’ in place of the specific module num- ber. Thus, “ALMxSEC” might refer to the seconds register for Alarm0 or Alarm1. FIGURE 4-6: ALARM BLOCK DIAGRAM Alarm0 Timekeeping Alarm1 Registers Registers Registers ALM0SEC RTCSEC ALM1SEC ALM0MIN RTCMIN ALM1MIN ALM0HOUR RTCHOUR ALM1HOUR ALM0WKDAY RTCWKDAY ALM1WKDAY ALM0DATE RTCDATE ALM1DATE ALM0MTH RTCMTH ALM1MTH Alarm0 Mask Comparator Comparator Alarm1 Mask Set Set ALM0IF ALM1IF ALM0MSK<2:0> MFP Output Logic MFP ALM1MSK<2:0> 2012-2018 Microchip Technology Inc. DS20002292C-page 18
MCP7940M 4.4.1 CONFIGURING THE ALARM In order to configure the alarm modules, the following steps need to be performed: 1. Load the timekeeping registers and enable the oscillator 2. Configure the ALMxMSK<2:0> bits to select the desired alarm mask 3. Set or clear the ALMPOL bit according to the desired output polarity 4. Ensure the ALMxIF flag is cleared 5. Based on the selected alarm mask, load the alarm match value into the appropriate regis- ter(s) 6. Enable the alarm module by setting the ALMxEN bit REGISTER 4-8: ALMxSEC: ALARM0/1 SECONDS VALUE REGISTER (ADDRESSES 0x0A/0x11) U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 — SECTEN2 SECTEN1 SECTEN0 SECONE3 SECONE2 SECONE1 SECONE0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7 Unimplemented: Read as ‘0’ bit 6-4 SECTEN<2:0>: Binary-Coded Decimal Value of Second’s Tens Digit Contains a value from 0 to 5 bit 3-0 SECONE<3:0>: Binary-Coded Decimal Value of Second’s Ones Digit Contains a value from 0 to 9 REGISTER 4-9: ALMxMIN: ALARM0/1 MINUTES VALUE REGISTER (ADDRESSES 0x0B/0x12) U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 — MINTEN2 MINTEN1 MINTEN0 MINONE3 MINONE2 MINONE1 MINONE0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7 Unimplemented: Read as ‘0’ bit 6-4 MINTEN<2:0>: Binary-Coded Decimal Value of Minute’s Tens Digit Contains a value from 0 to 5 bit 3-0 MINONE<3:0>: Binary-Coded Decimal Value of Minute’s Ones Digit Contains a value from 0 to 9 2012-2018 Microchip Technology Inc. DS20002292C-page 19
MCP7940M REGISTER 4-10: ALMxHOUR: ALARM0/1 HOURS VALUE REGISTER (ADDRESSES 0x0C/0x13) U-0 R-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 — 12/24 AM/PM HRTEN0 HRONE3 HRONE2 HRONE1 HRONE0 HRTEN1 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown If 12/24 = 1 (12-hour format): bit 7 Unimplemented: Read as ‘0’ bit 6 12/24: 12 or 24 Hour Time Format bit(1) 1 = 12-hour format 0 = 24-hour format bit 5 AM/PM: AM/PM Indicator bit 1 = PM 0 = AM bit 4 HRTEN0: Binary-Coded Decimal Value of Hour’s Tens Digit Contains a value from 0 to 1 bit 3-0 HRONE<3:0>: Binary-Coded Decimal Value of Hour’s Ones Digit Contains a value from 0 to 9 If 12/24 = 0 (24-hour format): bit 7 Unimplemented: Read as ‘0’ bit 6 12/24: 12 or 24 Hour Time Format bit(1) 1 = 12-hour format 0 = 24-hour format bit 5-4 HRTEN<1:0>: Binary-Coded Decimal Value of Hour’s Tens Digit Contains a value from 0 to 2. bit 3-0 HRONE<3:0>: Binary-Coded Decimal Value of Hour’s Ones Digit Contains a value from 0 to 9 Note 1: This bit is read-only and reflects the value of the 12/24 bit in the RTCHOUR register. 2012-2018 Microchip Technology Inc. DS20002292C-page 20
MCP7940M REGISTER 4-11: ALMxWKDAY: ALARM0/1 WEEKDAY VALUE REGISTER (ADDRESSES 0x0D/ 0x14) R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-1 ALMPOL ALMxMSK2 ALMxMSK1 ALMxMSK0 ALMxIF WKDAY2 WKDAY1 WKDAY0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7 ALMPOL: Alarm Interrupt Output Polarity bit 1 = Asserted output state of MFP is a logic high level 0 = Asserted output state of MFP is a logic low level bit 6-4 ALMxMSK<2:0>: Alarm Mask bits 000 = Seconds match 001 = Minutes match 010 = Hours match (logic takes into account 12-/24-hour operation) 011 = Day of week match 100 = Date match 101 = Reserved; do not use 110 = Reserved; do not use 111 = Seconds, Minutes, Hour, Day of Week, Date and Month bit 3 ALMxIF: Alarm Interrupt Flag bit(1,2) 1 = Alarm match occurred (must be cleared in software) 0 = Alarm match did not occur bit 2-0 WKDAY<2:0>: Binary-Coded Decimal Value of Day bits Contains a value from 1 to 7. The representation is user-defined. Note 1: If a match condition still exists when this bit is cleared, it will be set again automatically. 2: The ALMxIF bit cannot be written to a 1 in software. Writing to the ALMxWKDAY register will always clear the ALMxIF bit. REGISTER 4-12: ALMxDATE: ALARM0/1 DATE VALUE REGISTER (ADDRESSES 0x0E/0x15) U-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-1 — — DATETEN1 DATETEN0 DATEONE3 DATEONE2 DATEONE1 DATEONE0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7-6 Unimplemented: Read as ‘0’ bit 5-4 DATETEN<1:0>: Binary-Coded Decimal Value of Date’s Tens Digit Contains a value from 0 to 3 bit 3-0 DATEONE<3:0>: Binary-Coded Decimal Value of Date’s Ones Digit Contains a value from 0 to 9 2012-2018 Microchip Technology Inc. DS20002292C-page 21
MCP7940M REGISTER 4-13: ALMxMTH: ALARM0/1 MONTH VALUE REGISTER (ADDRESSES 0x0F/0x16) U-0 U-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-1 — — — MTHTEN0 MTHONE3 MTHONE2 MTHONE1 MTHONE0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7-5 Unimplemented: Read as ‘0’ bit 4 MTHTEN0: Binary-Coded Decimal Value of Month’s Tens Digit Contains a value of 0 or 1 bit 3-0 MTHONE<3:0>: Binary-Coded Decimal Value of Month’s Ones Digit Contains a value from 0 to 9 TABLE 4-6: SUMMARY OF REGISTERS ASSOCIATED WITH ALARMS Register Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 on Page ALM0SEC — SECTEN2 SECTEN1 SECTEN0 SECONE3 SECONE2 SECONE1 SECONE0 19 ALM0MIN — MINTEN2 MINTEN1 MINTEN0 MINONE3 MINONE2 MINONE1 MINONE0 19 ALM0HOUR — 12/24 AM/PM HRTEN0 HRONE3 HRONE2 HRONE1 HRONE0 20 HRTEN1 ALM0WKDAY ALMPOL ALM0MSK2 ALM0MSK1 ALM0MSK0 ALM0IF WKDAY2 WKDAY1 WKDAY0 21 ALM0DATE — — DATETEN1 DATETEN0 DATEONE3 DATEONE2 DATEONE1 DATEONE0 21 ALM0MTH — — — MTHTEN0 MTHONE3 MTHONE2 MTHONE1 MTHONE0 22 ALM1SEC — SECTEN2 SECTEN1 SECTEN0 SECONE3 SECONE2 SECONE1 SECONE0 19 ALM1MIN — MINTEN2 MINTEN1 MINTEN0 MINONE3 MINONE2 MINONE1 MINONE0 19 ALM1HOUR — 12/24 AM/PM HRTEN0 HRONE3 HRONE2 HRONE1 HRONE0 20 HRTEN1 ALM1WKDAY ALMPOL ALM1MSK2 ALM1MSK1 ALM1MSK0 ALM1IF WKDAY2 WKDAY1 WKDAY0 21 ALM1DATE — — DATETEN1 DATETEN0 DATEONE3 DATEONE2 DATEONE1 DATEONE0 21 ALM1MTH — — — MTHTEN0 MTHONE3 MTHONE2 MTHONE1 MTHONE0 22 CONTROL OUT SQWEN ALM1EN ALM0EN EXTOSC CRSTRIM SQWFS1 SQWFS0 24 Legend: — = unimplemented location, read as ‘0’. Shaded cells are not used by alarms. 2012-2018 Microchip Technology Inc. DS20002292C-page 22
MCP7940M 4.5 Output Configurations TABLE 4-7: MFP OUTPUT MODES The MCP7940M features Square Wave Clock Output, SQWEN ALM0EN ALM1EN Mode Alarm Interrupt Output, and General Purpose Output General Purpose modes. All of the output functions are multiplexed onto 0 0 0 Output MFP according to Table 4-7. 0 1 0 If none of the output functions are being used, the MFP Alarm Interrupt 0 0 1 can safely be left floating. Output 0 1 1 Note: The MFP is an open-drain output and Square Wave Clock requires a pull-up resistor to VCC (typically 1 x x Output 10 k). FIGURE 4-7: MFP OUTPUT BLOCK DIAGRAM MCP7940M SQWFS<1:0> Oscillator X1 32.768 kHz 11 8.192 kHz 10X X2 EXTOSC Digital caler 4.0961 k HHzz 01MU Trim sts 00 0 ST o P 64 Hz 1 CRSTRIM ALM1EN,ALM0EN ALMPOL 11 1 MFP ALM1IF 1 10X U 0 0 01M OUT 00 SQWEN ALM0IF 1 0 2012-2018 Microchip Technology Inc. DS20002292C-page 23
MCP7940M REGISTER 4-14: CONTROL: RTCC CONTROL REGISTER (ADDRESS 0x07) R/W-1 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 OUT SQWEN ALM1EN ALM0EN EXTOSC CRSTRIM SQWFS1 SQWFS0 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7 OUT: Logic Level for General Purpose Output bit Square Wave Clock Output Mode (SQWEN = 1): Unused. Alarm Interrupt Output mode (ALM0EN = 1 or ALM1EN = 1): Unused. General Purpose Output mode (SQWEN = 0, ALM0EN = 0, and ALM1EN = 0): 1 = MFP signal level is logic high 0 = MFP signal level is logic low bit 6 SQWEN: Square Wave Output Enable bit 1 = Enable Square Wave Clock Output mode 0 = Disable Square Wave Clock Output mode bit 5 ALM1EN: Alarm 1 Module Enable bit 1 = Alarm 1 enabled 0 = Alarm 1 disabled bit 4 ALM0EN: Alarm 0 Module Enable bit 1 = Alarm 0 enabled 0 = Alarm 0 disabled bit 3 EXTOSC: External Oscillator Input bit 1 = Enable X1 pin to be driven by external 32.768 kHz source 0 = Disable external 32.768 kHz input bit 2 CRSTRIM: Coarse Trim Mode Enable bit Coarse Trim mode results in the MCP7940M applying digital trimming every 64 Hz clock cycle. 1 = Enable Coarse Trim mode. If SQWEN = 1, MFP will output trimmed 64 Hz(1) nominal clock signal. 0 = Disable Coarse Trim mode See Section 4.6 “Digital Trimming” for details bit 1-0 SQWFS<1:0>: Square Wave Clock Output Frequency Select bits If SQWEN = 1 and CRSTRIM = 0: Selects frequency of clock output on MFP 00 = 1 Hz(1) 01 = 4.096 kHz(1) 10 = 8.192 kHz(1) 11 = 32.768 kHz If SQWEN = 0 or CRSTRIM = 1: Unused. Note 1: The 8.192 kHz, 4.096 kHz, 64 Hz, and 1 Hz square wave clock output frequencies are affected by digital trimming. 2012-2018 Microchip Technology Inc. DS20002292C-page 24
MCP7940M 4.5.1 SQUARE WAVE OUTPUT MODE If ALMPOL = 1, the ALM0IF and ALM1IF flags are OR’d together and the result is output on MFP. If The MCP7940M can be configured to generate a ALMPOL = 0, the ALM0IF and ALM1IF flags are AND’d square wave clock signal on MFP. The input clock together, and the result is inverted and output on MFP frequency, FOSC, is divided according to the (Table 4-10). This provides the user with flexible SQWFS<1:0> bits as shown in Table 4-8. options for combining alarms. Note: All of the clock output rates are affected by Note: If ALMPOL = 0 and both alarms are digital trimming except for the 1:1 enabled, the MFP will only assert when postscaler value (SQWFS<1:0> = 11). both ALM0IF and ALM1IF are set. TABLE 4-8: CLOCK OUTPUT RATES TABLE 4-10: DUAL ALARM OUTPUT Nominal TRUTH TABLE SQWFS<1:0> Postscaler Frequency ALMPOL ALM0IF ALM1IF MFP 00 1:32,768 1 Hz 0 0 0 1 01 1:8 4.096 kHz 0 0 1 1 10 1:4 8.192 kHz 0 1 0 1 11 1:1 32.768 kHz 0 1 1 0 Note 1: Nominal frequency assumes FOSC is 1 0 0 0 32.768 kHz. 1 0 1 1 4.5.2 ALARM INTERRUPT OUTPUT 1 1 0 1 MODE 1 1 1 1 The MFP will provide an interrupt output when enabled 4.5.3 GENERAL PURPOSE OUTPUT alarms match and the square wave clock output is dis- abled. This prevents the user from having to poll the MODE alarm interrupt flag to check for a match. If the square wave clock output and both alarm mod- The ALMxIF flags control when the MFP is asserted, as ules are disabled, the MFP acts as a general purpose described in the following sections. output. The output logic level is controlled by the OUT bit. 4.5.2.1 Single Alarm Operation When only one alarm module is enabled, the MFP output is based on the corresponding ALMxIF flag and the ALMPOL flag. If ALMPOL = 1, the MFP output reflects the value of the ALMxIF flag. If ALMPOL = 0, the MFP output reflects the inverse of the ALMxIF flag (Table 4- 9). TABLE 4-9: SINGLE ALARM OUTPUT TRUTH TABLE ALMPOL ALMxIF(1) MFP 0 0 1 0 1 0 1 0 0 1 1 1 Note1: ALMxIF refers to the interrupt flag corre- sponding to the alarm module that is enabled. 4.5.2.2 Dual Alarm Operation When both alarm modules are enabled, the MFP out- put is determined by a combination of the ALM0IF, ALM1IF, and ALMPOL flags. 2012-2018 Microchip Technology Inc. DS20002292C-page 25
MCP7940M TABLE 4-11: SUMMARY OF REGISTERS ASSOCIATED WITH OUTPUT CONFIGURATION Register Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 on Page ALM0WKDAY ALMPOL ALM0MSK2 ALM0MSK1 ALM0MSK0 ALM0IF WKDAY2 WKDAY1 WKDAY0 21 ALM1WKDAY ALMPOL ALM1MSK2 ALM1MSK1 ALM1MSK0 ALM1IF WKDAY2 WKDAY1 WKDAY0 21 CONTROL OUT SQWEN ALM1EN ALM0EN EXTOSC CRSTRIM SQWFS1 SQWFS0 24 Legend: — = unimplemented location, read as ‘0’. Shaded cells are not used in output configuration. 2012-2018 Microchip Technology Inc. DS20002292C-page 26
MCP7940M 4.6 Digital Trimming occurs once per minute when CRSTRIM = 0. The SIGN bit specifies whether to add cycles or to subtract them. The MCP7940M features digital trimming to correct for The TRIMVAL<6:0> bits are used to specify by how inaccuracies of the external crystal or clock source, up many clock cycles to adjust. Each step in the to roughly ±129 PPM when CRSTRIM = 0. In addition TRIMVAL<6:0> value equates to adding or subtracting to compensating for intrinsic inaccuracies in the clock, two clock pulses to or from the 32.768 kHz clock signal. this feature can also be used to correct for error due to This results in a correction of roughly 1.017 PPM per temperature variation. This can enable the user to step when CRSTRIM = 0. Setting TRIMVAL<6:0> to achieve high levels of accuracy across a wide tempera- 0x00 disables digital trimming. ture operating range. Digital trimming consists of the MCP7940M periodically adding or subtracting clock cycles, resulting in small adjustments in the internal timing. The adjustment REGISTER 4-15: OSCTRIM: OSCILLATOR DIGITAL TRIM REGISTER (ADDRESS 0x08) R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 SIGN TRIMVAL6 TRIMVAL5 TRIMVAL4 TRIMVAL3 TRIMVAL2 TRIMVAL1 TRIMVAL0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is clear x = Bit is unknown bit 7 SIGN: Trim Sign bit 1 = Add clocks to correct for slow time 0 = Subtract clocks to correct for fast time bit 6-0 TRIMVAL<6:0>: Oscillator Trim Value bits When CRSTRIM = 0: 1111111 = Add or subtract 254 clock cycles every minute 1111110 = Add or subtract 252 clock cycles every minute • • • 0000010 = Add or subtract 4 clock cycles every minute 0000001 = Add or subtract 2 clock cycles every minute 0000000 = Disable digital trimming When CRSTRIM = 1: 1111111 = Add or subtract 254 clock cycles 128 times per second 1111110 = Add or subtract 252 clock cycles 128 times per second • • • 0000010 = Add or subtract 4 clock cycles 128 times per second 0000001 = Add or subtract 2 clock cycles 128 times per second 0000000 = Disable digital trimming 2012-2018 Microchip Technology Inc. DS20002292C-page 27
MCP7940M 4.6.1 CALIBRATION 4.6.1.2 Calibration by Observing Time Deviation In order to perform calibration, the number of error clock pulses per minute must be found and the corre- To calibrate the MCP7940M by observing the deviation sponding trim value must be loaded into over time, perform the following steps: TRIMVAL<6:0>. 1. Ensure TRIMVAL<6:0> is reset to 0x00. There are two methods for determining the trim value. 2. Load the timekeeping registers to synchronize The first method involves measuring an output fre- the MCP7940M with a known-accurate refer- quency directly and calculating the deviation from ideal. ence time. The second method involves observing the number of 3. Enable the crystal oscillator or external clock seconds gained or lost over a period of time. input by setting the ST bit or EXTOSC bit, Once the OSCTRIM register has been loaded, digital respectively. trimming will automatically occur every minute. 4. Observe how many seconds are gained or lost over a period of time (larger time periods offer 4.6.1.1 Calibration by Measuring Frequency more accuracy). To calibrate the MCP7940M by measuring the output 5. Calculate the PPM deviation (see Equation 4-3). frequency, perform the following steps: 1. Enable the crystal oscillator or external clock EQUATION 4-3: CALCULATING ERROR input by setting the ST bit or EXTOSC bit, PPM respectively. SecDeviation 2. Ensure TRIMVAL<6:0> is reset to 0x00. PPM = -----------------------------------1000000 ExpectedSec 3. Select an output frequency by setting SQWFS<1:0>. Where: 4. Set SQWEN to enable the square wave output. ExpectedSec = Number of seconds in chosen period 5. Measure the resulting output frequency using a SecDeviation = Number of seconds gained or lost calibrated measurement tool, such as a frequency counter. 6. Calculate the number of error clocks per minute • If the MCP7940M has gained time relative to (see Equation 4-2). the reference clock, then the oscillator is faster than ideal and the SIGN bit must be EQUATION 4-2: CALCULATING TRIM cleared. VALUE FROM MEASURED • If the MCP7940M has lost time relative to the FREQUENCY reference clock, then the oscillator is slower than ideal and the SIGN bit must be set. 32768 6. Calculate the trim value (see Equation 4-4). FIDEAL–FMEAS-------------------60 FIDEAL TRIMVAL<6:0> = ---------------------------------------------------------------------------------- 2 EQUATION 4-4: CALCULATING TRIM VALUE FROM ERROR Where: PPM FIDEAL = Ideal frequency based on SQWFS<1:0> PPM 3276860 FMEAS = Measured frequency TRIMVAL<6:0> = -------------------------------------------- 10000002 • If the number of error clocks per minute is neg- 7. Load the correct value into TRIMVAL<6:0>. ative, then the oscillator is faster than ideal and the SIGN bit must be cleared. • If the number of error clocks per minute is posi- Note1: Choosing a longer time period for observ- tive, then the oscillator is slower than ideal ing deviation will improve accuracy. and the SIGN bit must be set. 2: Large temperature variations during the 7. Load the correct value into TRIMVAL<6:0>. observation period can skew results. Note: Using a lower output frequency and/or averaging the measured frequency over a number of clock pulses will reduce the effects of jitter and improve accuracy. 2012-2018 Microchip Technology Inc. DS20002292C-page 28
MCP7940M 4.6.2 COARSE TRIM MODE By monitoring the MFP output frequency while in this mode, the user can easily observe the TRIMVAL<6:0> When CRSTRIM = 1, Coarse Trim mode is enabled. value affecting the clock timing. While in this mode, the MCP7940M will apply trimming at a rate of 128 Hz. If SQWEN is set, the MFP will out- Note: With Coarse Trim mode enabled, the put a trimmed 64 Hz nominal clock signal. TRIMVAL<6:0> value has a drastic effect Because trimming is applied at a rate of 128 Hz rather on timing. Leaving the mode enabled during normal operation will likely result in than once every minute, each step of the TRIMVAL<6:0> value has a significantly larger effect inaccurate time. on the resulting time deviation and output clock frequency. TABLE 4-12: SUMMARY OF REGISTERS ASSOCIATED WITH DIGITAL TRIMMING Register Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 on Page CONTROL OUT SQWEN ALM1EN ALM0EN EXTOSC CRSTRIM SQWFS1 SQWFS0 24 OSCTRIM SIGN TRIM- TRIM- TRIM- TRIMVAL3 TRIMVAL2 TRIM- TRIM- 27 VAL6 VAL5 VAL4 VAL1 VAL0 Legend: — = unimplemented location, read as ‘0’. Shaded cells are not used by digital trimming. 2012-2018 Microchip Technology Inc. DS20002292C-page 29
MCP7940M 5.0 ON-BOARD MEMORY location. The MCP7940M stores the data byte into memory and acknowledges again, and the master The MCP7940M has 64 bytes of SRAM for general generates a Stop condition (Figure 5-1). purpose usage. If an attempt is made to write to an address past 0x5F, Although the SRAM is a separate block from the RTCC the MCP7940M will not acknowledge the address or registers, they are accessed using the same control data bytes, and no data will be written. After a byte byte, ‘1101111X’. Write command, the internal Address Pointer will point to the address location following the one that was just 5.1 SRAM/RTCC Registers written. The RTCC registers are located at addresses 0x00 to 5.1.2 SRAM/RTCC REGISTER 0x1F, and the SRAM is located at addresses 0x20 to SEQUENTIAL WRITE 0x5F. The SRAM can be accessed while the RTCC registers are being internally updated. The SRAM is not The write control byte, address, and the first data byte initialized by a Power-On Reset (POR). are transmitted to the MCP7940M in the same way as in a byte write. But instead of generating a Stop condi- 5.1.1 SRAM/RTCC REGISTER BYTE tion, the master transmits additional data bytes. Upon WRITE receipt of each byte, the MCP7940M responds with an Acknowledge, during which the data is latched into Following the Start condition from the master, the con- memory and the Address Pointer is internally incre- trol code and the R/W bit (which is a logic low) are mented by one. As with the byte write operation, the clocked onto the bus by the master transmitter. This master ends the command by generating a Stop condi- indicates to the addressed slave receiver that the tion (Figure 5-2). address byte will follow after it has generated an Acknowledge bit during the ninth clock cycle. There- There is no limit to the number of bytes that can be writ- fore, the next byte transmitted by the master is the ten in a single command. However, because the RTCC address and will be written into the Address Pointer of registers and SRAM are separate blocks, writing past the MCP7940M. After receiving another Acknowledge the end of each block will cause the Address Pointer to bit from the MCP7940M, the master device transmits roll over to the beginning of the same block. Specifi- the data byte to be written into the addressed memory cally, the Address Pointer will roll over from 0x1F to 0x00, and from 0x5F to 0x20. FIGURE 5-1: SRAM/RTCC BYTE WRITE S BUS ACTIVITY T S CONTROL ADDRESS MASTER A T R BYTE BYTE DATA O T P SDA LINE S1 1 0 1111 0 0 P A A A BUS ACTIVITY C C C K K K FIGURE 5-2: SRAM/RTCC SEQUENTIAL WRITE S T S BUS ACTIVITY A CONTROL ADDRESS T MASTER R BYTE BYTE DATA BYTE 0 DATA BYTE N O T P SDA LINE S11 0 11110 0 P A A A A BUS ACTIVITY C C C C K K K K 2012-2018 Microchip Technology Inc. DS20002292C-page 30
MCP7940M 5.1.3 SRAM/RTCC REGISTER CURRENT ‘0’). After the address is sent, the master generates a ADDRESS READ Start condition following the Acknowledge. This termi- nates the write operation, but not before the internal The MCP7940M contains an address counter that Address Pointer is set. Then, the master issues the maintains the address of the last byte accessed, inter- control byte again but with the R/W bit set to a ‘1’. The nally incremented by one. Therefore, if the previous MCP7940M will then issue an Acknowledge and trans- read access was to address n (n is any legal address), mit the 8-bit data word. The master will not acknowl- the next current address read operation would access edge the transfer but it does generate a Stop condition data from address n + 1. which causes the MCP7940M to discontinue transmis- Upon receipt of the control byte with R/W bit set to ‘1’, sion (Figure 5-4). After a random Read command, the the MCP7940M issues an Acknowledge and transmits internal address counter will point to the address loca- the 8-bit data word. The master will not acknowledge tion following the one that was just read. the transfer but does generate a Stop condition and the MCP7940M discontinues transmission (Figure 5-3). 5.1.5 SRAM/RTCC REGISTER SEQUENTIAL READ FIGURE 5-3: SRAM/RTCC CURRENT Sequential reads are initiated in the same way as a ADDRESS READ random read except that after the MCP7940M trans- S mits the first data byte, the master issues an Acknowl- T S BUS ACTIVITY A CONTROL DATA T edge as opposed to the Stop condition used in a MASTER R BYTE BYTE O random read. This Acknowledge directs the T P MCP7940M to transmit the next sequentially SDA LINE S 1 1 0 1 1 1 1 1 P addressed 8-bit word (Figure 5-5). Following the final A N byte transmitted to the master, the master will NOT BUS ACTIVITY C O generate an Acknowledge but will generate a Stop con- K A dition. To provide sequential reads, the MCP7940M C K contains an internal Address Pointer which is incre- mented by one at the completion of each operation. 5.1.4 SRAM/RTCC REGISTER RANDOM This Address Pointer allows the entire memory block to READ be serially read during one operation. Because the RTCC registers and SRAM are separate Random read operations allow the master to access blocks, reading past the end of each block will cause any memory location in a random manner. To perform the Address Pointer to roll over to the beginning of the this type of read operation, first the address must be same block. Specifically, the Address Pointer will roll set. This is done by sending the address to the over from 0x1F to 0x00, and from 0x5F to 0x20. MCP7940M as part of a write operation (R/W bit set to FIGURE 5-4: SRAM/RTCC RANDOM READ S S BUS ACTIVITY T T S CONTROL ADDRESS CONTROL DATA MASTER A A T R BYTE BYTE R BYTE BYTE O T T P SDA LINE S 1 1 0 1 1 1 1 0 S 1 1 0 1 1 1 1 1 P A A A N BUS ACTIVITY C C C O K K K A C K FIGURE 5-5: SRAM/RTCC SEQUENTIAL READ CONTROL S BUS ACTIVITY T MASTER BYTE DATA n DATA n + 1 DATA n + 2 DATA n + X O P SDA LINE P A A A A N C C C C O BUS ACTIVITY K K K K A C K 2012-2018 Microchip Technology Inc. DS20002292C-page 31
MCP7940M 6.0 PACKAGING INFORMATION 6.1 Package Marking Information 8-Lead SOIC (3.90 mm) Example: XXXXXXXT 7940MI XXXXYYWW SN e 3 1419 NNN 13F 8-Lead TSSOP Example: XXXX 940M TYWW I419 NNN 13F 8-Lead MSOP Example: XXXXXT 7940MI YWWNNN 41913F 8-Lead PDIP (300 mil) Example: XXXXXXXX MCP7940M T/XXXNNN I/P e 3 13F YYWW 1419 8-Lead 2x3 TDFN Example: XXX AU1 YWW 419 NN 13 1st Line Marking Codes Part Number SOIC TSSOP MSOP TDFN PDIP MCP7940M 7940MT 940M 7940MT AU1 MCP7940M T = Temperature grade Legend: XX...X Customer-specific information Y Year code (last digit of calendar year) YY Year code (last 2 digits of calendar year) WW Week code (week of January 1 is week ‘01’) NNN Alphanumeric traceability code e3 JEDEC® designator for Matte Tin (Sn) * This package is RoHs compliant. The JEDEC designator ( e 3 ) can be found on the outer packaging for this package. Note: In the event the full Microchip part number cannot be marked on one line, it will be carried over to the next line, thus limiting the number of available characters for customer-specific information. 2012-2018 Microchip Technology Inc. DS20002292C-page 32
MCP7940M 8-Lead Plastic Small Outline (SN) - Narrow, 3.90 mm (.150 In.) Body [SOIC] Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging 2X 0.10 C A–B D A D NOTE 5 N E 2 E1 2 E1 E NOTE 1 1 2 e NX b B 0.25 C A–B D NOTE 5 TOP VIEW 0.10 C C A A2 SEATING PLANE 8X 0.10 C A1 SIDE VIEW h R0.13 h R0.13 H 0.23 L SEE VIEW C (L1) VIEW A–A VIEW C Microchip Technology Drawing No. C04-057-SN Rev D Sheet 1 of 2 2012-2018 Microchip Technology Inc. DS20002292C-page 33
MCP7940M 8-Lead Plastic Small Outline (SN) - Narrow, 3.90 mm (.150 In.) Body [SOIC] Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging Units MILLIMETERS Dimension Limits MIN NOM MAX Number of Pins N 8 Pitch e 1.27 BSC Overall Height A - - 1.75 Molded Package Thickness A2 1.25 - - Standoff § A1 0.10 - 0.25 Overall Width E 6.00 BSC Molded Package Width E1 3.90 BSC Overall Length D 4.90 BSC Chamfer (Optional) h 0.25 - 0.50 Foot Length L 0.40 - 1.27 Footprint L1 1.04 REF Foot Angle 0° - 8° Lead Thickness c 0.17 - 0.25 Lead Width b 0.31 - 0.51 Mold Draft Angle Top 5° - 15° Mold Draft Angle Bottom 5° - 15° Notes: 1. Pin 1 visual index feature may vary, but must be located within the hatched area. 2. § Significant Characteristic 3. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed 0.15mm per side. 4. Dimensioning and tolerancing per ASME Y14.5M BSC: Basic Dimension. Theoretically exact value shown without tolerances. REF: Reference Dimension, usually without tolerance, for information purposes only. 5. Datums A & B to be determined at Datum H. Microchip Technology Drawing No. C04-057-SN Rev D Sheet 2 of 2 2012-2018 Microchip Technology Inc. DS20002292C-page 34
MCP7940M 8-Lead Plastic Small Outline (SN) - Narrow, 3.90 mm Body [SOIC] Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging SILK SCREEN C Y1 X1 E RECOMMENDED LAND PATTERN Units MILLIMETERS Dimension Limits MIN NOM MAX Contact Pitch E 1.27 BSC Contact Pad Spacing C 5.40 Contact Pad Width (X8) X1 0.60 Contact Pad Length (X8) Y1 1.55 Notes: 1. Dimensioning and tolerancing per ASME Y14.5M BSC: Basic Dimension. Theoretically exact value shown without tolerances. Microchip Technology Drawing C04-2057-SN Rev B 2012-2018 Microchip Technology Inc. DS20002292C-page 35
MCP7940M (cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)(cid:10)(cid:6)(cid:11)(cid:12)(cid:13)(cid:14)(cid:8)(cid:15)(cid:16)(cid:13)(cid:17)(cid:8)(cid:18)(cid:16)(cid:19)(cid:13)(cid:17)(cid:20)(cid:8)(cid:18)(cid:21)(cid:6)(cid:10)(cid:10)(cid:8)(cid:22)(cid:23)(cid:12)(cid:10)(cid:13)(cid:17)(cid:5)(cid:8)(cid:24)(cid:18)(cid:15)(cid:25)(cid:8)(cid:26)(cid:8)(cid:27)(cid:28)(cid:27)(cid:8)(cid:21)(cid:21)(cid:8)(cid:29)(cid:30)(cid:7)(cid:31)(cid:8) (cid:15)(cid:18)(cid:18)(cid:22)(cid:9)! "(cid:30)(cid:12)(cid:5)# 1(cid:10)(cid:9)(cid:2)%(cid:11)(cid:14)(cid:2)&(cid:10) %(cid:2)(cid:8)!(cid:9)(cid:9)(cid:14)(cid:15)%(cid:2)(cid:12)(cid:28)(cid:8)2(cid:28)(cid:17)(cid:14)(cid:2)"(cid:9)(cid:28))(cid:7)(cid:15)(cid:17) ’(cid:2)(cid:12)(cid:16)(cid:14)(cid:28) (cid:14)(cid:2) (cid:14)(cid:14)(cid:2)%(cid:11)(cid:14)(cid:2)(cid:6)(cid:7)(cid:8)(cid:9)(cid:10)(cid:8)(cid:11)(cid:7)(cid:12)(cid:2)(cid:30)(cid:28)(cid:8)2(cid:28)(cid:17)(cid:7)(cid:15)(cid:17)(cid:2)(cid:22)(cid:12)(cid:14)(cid:8)(cid:7)$(cid:7)(cid:8)(cid:28)%(cid:7)(cid:10)(cid:15)(cid:2)(cid:16)(cid:10)(cid:8)(cid:28)%(cid:14)"(cid:2)(cid:28)%(cid:2) (cid:11)%%(cid:12)033)))(cid:20)&(cid:7)(cid:8)(cid:9)(cid:10)(cid:8)(cid:11)(cid:7)(cid:12)(cid:20)(cid:8)(cid:10)&3(cid:12)(cid:28)(cid:8)2(cid:28)(cid:17)(cid:7)(cid:15)(cid:17) D N E E1 NOTE1 1 2 b e c φ A A2 A1 L1 L 4(cid:15)(cid:7)% (cid:6)(cid:19)55(cid:19)(cid:6)*(cid:13)*(cid:26)(cid:22) (cid:21)(cid:7)&(cid:14)(cid:15) (cid:7)(cid:10)(cid:15)(cid:2)5(cid:7)&(cid:7)% (cid:6)(cid:19)6 67(cid:6) (cid:6)(cid:25)8 6!&((cid:14)(cid:9)(cid:2)(cid:10)$(cid:2)(cid:30)(cid:7)(cid:15) 6 9 (cid:30)(cid:7)%(cid:8)(cid:11) (cid:14) (cid:4)(cid:20):+(cid:2).(cid:22)/ 7(cid:31)(cid:14)(cid:9)(cid:28)(cid:16)(cid:16)(cid:2);(cid:14)(cid:7)(cid:17)(cid:11)% (cid:25) < < (cid:29)(cid:20)(cid:3)(cid:4) (cid:6)(cid:10)(cid:16)"(cid:14)"(cid:2)(cid:30)(cid:28)(cid:8)2(cid:28)(cid:17)(cid:14)(cid:2)(cid:13)(cid:11)(cid:7)(cid:8)2(cid:15)(cid:14) (cid:25)(cid:3) (cid:4)(cid:20)9(cid:4) (cid:29)(cid:20)(cid:4)(cid:4) (cid:29)(cid:20)(cid:4)+ (cid:22)%(cid:28)(cid:15)"(cid:10)$$(cid:2) (cid:25)(cid:29) (cid:4)(cid:20)(cid:4)+ < (cid:4)(cid:20)(cid:29)+ 7(cid:31)(cid:14)(cid:9)(cid:28)(cid:16)(cid:16)(cid:2)=(cid:7)"%(cid:11) * :(cid:20)(cid:23)(cid:4)(cid:2).(cid:22)/ (cid:6)(cid:10)(cid:16)"(cid:14)"(cid:2)(cid:30)(cid:28)(cid:8)2(cid:28)(cid:17)(cid:14)(cid:2)=(cid:7)"%(cid:11) *(cid:29) (cid:23)(cid:20),(cid:4) (cid:23)(cid:20)(cid:23)(cid:4) (cid:23)(cid:20)+(cid:4) (cid:6)(cid:10)(cid:16)"(cid:14)"(cid:2)(cid:30)(cid:28)(cid:8)2(cid:28)(cid:17)(cid:14)(cid:2)5(cid:14)(cid:15)(cid:17)%(cid:11) (cid:21) (cid:3)(cid:20)(cid:24)(cid:4) ,(cid:20)(cid:4)(cid:4) ,(cid:20)(cid:29)(cid:4) 1(cid:10)(cid:10)%(cid:2)5(cid:14)(cid:15)(cid:17)%(cid:11) 5 (cid:4)(cid:20)(cid:23)+ (cid:4)(cid:20):(cid:4) (cid:4)(cid:20)(cid:5)+ 1(cid:10)(cid:10)%(cid:12)(cid:9)(cid:7)(cid:15)% 5(cid:29) (cid:29)(cid:20)(cid:4)(cid:4)(cid:2)(cid:26)*1 1(cid:10)(cid:10)%(cid:2)(cid:25)(cid:15)(cid:17)(cid:16)(cid:14) (cid:3) (cid:4)> < 9> 5(cid:14)(cid:28)"(cid:2)(cid:13)(cid:11)(cid:7)(cid:8)2(cid:15)(cid:14) (cid:8) (cid:4)(cid:20)(cid:4)(cid:24) < (cid:4)(cid:20)(cid:3)(cid:4) 5(cid:14)(cid:28)"(cid:2)=(cid:7)"%(cid:11) ( (cid:4)(cid:20)(cid:29)(cid:24) < (cid:4)(cid:20),(cid:4) "(cid:30)(cid:12)(cid:5)(cid:11)# (cid:29)(cid:20) (cid:30)(cid:7)(cid:15)(cid:2)(cid:29)(cid:2)(cid:31)(cid:7) !(cid:28)(cid:16)(cid:2)(cid:7)(cid:15)"(cid:14)#(cid:2)$(cid:14)(cid:28)%!(cid:9)(cid:14)(cid:2)&(cid:28)(cid:18)(cid:2)(cid:31)(cid:28)(cid:9)(cid:18)’(cid:2)(!%(cid:2)&! %(cid:2)((cid:14)(cid:2)(cid:16)(cid:10)(cid:8)(cid:28)%(cid:14)"(cid:2))(cid:7)%(cid:11)(cid:7)(cid:15)(cid:2)%(cid:11)(cid:14)(cid:2)(cid:11)(cid:28)%(cid:8)(cid:11)(cid:14)"(cid:2)(cid:28)(cid:9)(cid:14)(cid:28)(cid:20) (cid:3)(cid:20) (cid:21)(cid:7)&(cid:14)(cid:15) (cid:7)(cid:10)(cid:15) (cid:2)(cid:21)(cid:2)(cid:28)(cid:15)"(cid:2)*(cid:29)(cid:2)"(cid:10)(cid:2)(cid:15)(cid:10)%(cid:2)(cid:7)(cid:15)(cid:8)(cid:16)!"(cid:14)(cid:2)&(cid:10)(cid:16)"(cid:2)$(cid:16)(cid:28) (cid:11)(cid:2)(cid:10)(cid:9)(cid:2)(cid:12)(cid:9)(cid:10)%(cid:9)! (cid:7)(cid:10)(cid:15) (cid:20)(cid:2)(cid:6)(cid:10)(cid:16)"(cid:2)$(cid:16)(cid:28) (cid:11)(cid:2)(cid:10)(cid:9)(cid:2)(cid:12)(cid:9)(cid:10)%(cid:9)! (cid:7)(cid:10)(cid:15) (cid:2) (cid:11)(cid:28)(cid:16)(cid:16)(cid:2)(cid:15)(cid:10)%(cid:2)(cid:14)#(cid:8)(cid:14)(cid:14)"(cid:2)(cid:4)(cid:20)(cid:29)+(cid:2)&&(cid:2)(cid:12)(cid:14)(cid:9)(cid:2) (cid:7)"(cid:14)(cid:20) ,(cid:20) (cid:21)(cid:7)&(cid:14)(cid:15) (cid:7)(cid:10)(cid:15)(cid:7)(cid:15)(cid:17)(cid:2)(cid:28)(cid:15)"(cid:2)%(cid:10)(cid:16)(cid:14)(cid:9)(cid:28)(cid:15)(cid:8)(cid:7)(cid:15)(cid:17)(cid:2)(cid:12)(cid:14)(cid:9)(cid:2)(cid:25)(cid:22)(cid:6)*(cid:2)-(cid:29)(cid:23)(cid:20)+(cid:6)(cid:20) .(cid:22)/0 .(cid:28) (cid:7)(cid:8)(cid:2)(cid:21)(cid:7)&(cid:14)(cid:15) (cid:7)(cid:10)(cid:15)(cid:20)(cid:2)(cid:13)(cid:11)(cid:14)(cid:10)(cid:9)(cid:14)%(cid:7)(cid:8)(cid:28)(cid:16)(cid:16)(cid:18)(cid:2)(cid:14)#(cid:28)(cid:8)%(cid:2)(cid:31)(cid:28)(cid:16)!(cid:14)(cid:2) (cid:11)(cid:10))(cid:15)(cid:2))(cid:7)%(cid:11)(cid:10)!%(cid:2)%(cid:10)(cid:16)(cid:14)(cid:9)(cid:28)(cid:15)(cid:8)(cid:14) (cid:20) (cid:26)*10 (cid:26)(cid:14)$(cid:14)(cid:9)(cid:14)(cid:15)(cid:8)(cid:14)(cid:2)(cid:21)(cid:7)&(cid:14)(cid:15) (cid:7)(cid:10)(cid:15)’(cid:2)! !(cid:28)(cid:16)(cid:16)(cid:18)(cid:2))(cid:7)%(cid:11)(cid:10)!%(cid:2)%(cid:10)(cid:16)(cid:14)(cid:9)(cid:28)(cid:15)(cid:8)(cid:14)’(cid:2)$(cid:10)(cid:9)(cid:2)(cid:7)(cid:15)$(cid:10)(cid:9)&(cid:28)%(cid:7)(cid:10)(cid:15)(cid:2)(cid:12)!(cid:9)(cid:12)(cid:10) (cid:14) (cid:2)(cid:10)(cid:15)(cid:16)(cid:18)(cid:20) (cid:6)(cid:7)(cid:8)(cid:9)(cid:10)(cid:8)(cid:11)(cid:7)(cid:12)(cid:13)(cid:14)(cid:8)(cid:11)(cid:15)(cid:10)(cid:16)(cid:10)(cid:17)(cid:18)(cid:21)(cid:9)(cid:28))(cid:7)(cid:15)(cid:17)/(cid:4)(cid:23)(cid:27)(cid:4)9:. 2012-2018 Microchip Technology Inc. DS20002292C-page 36
MCP7940M Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging 2012-2018 Microchip Technology Inc. DS20002292C-page 37
MCP7940M Note: For the mostcurrent package drawings,please seetheMicrochip Packaging Specification located at http://www.microchip.com/packaging 2012-2018 Microchip Technology Inc. DS20002292C-page 38
MCP7940M Note: For the mostcurrent package drawings,please seetheMicrochip Packaging Specification located at http://www.microchip.com/packaging 2012-2018 Microchip Technology Inc. DS20002292C-page 39
MCP7940M Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging 2012-2018 Microchip Technology Inc. DS20002292C-page 40
MCP7940M 8-Lead Plastic Dual In-Line (P) - 300 mil Body [PDIP] Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging D A N B E1 NOTE 1 1 2 TOP VIEW E C A A2 PLANE L c A1 e eB 8X b1 8X b .010 C SIDE VIEW END VIEW Microchip Technology Drawing No. C04-018D Sheet 1 of 2 2012-2018 Microchip Technology Inc. DS20002292C-page 41
MCP7940M 8-Lead Plastic Dual In-Line (P) - 300 mil Body [PDIP] Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging ALTERNATE LEAD DESIGN (VENDOR DEPENDENT) DATUM A DATUM A b b e e 2 2 e e Units INCHES Dimension Limits MIN NOM MAX Number of Pins N 8 Pitch e .100 BSC Top to Seating Plane A - - .210 Molded Package Thickness A2 .115 .130 .195 Base to Seating Plane A1 .015 - - Shoulder to Shoulder Width E .290 .310 .325 Molded Package Width E1 .240 .250 .280 Overall Length D .348 .365 .400 Tip to Seating Plane L .115 .130 .150 Lead Thickness c .008 .010 .015 Upper Lead Width b1 .040 .060 .070 Lower Lead Width b .014 .018 .022 Overall Row Spacing § eB - - .430 Notes: 1. Pin 1 visual index feature may vary, but must be located within the hatched area. 2. § Significant Characteristic 3. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed .010" per side. 4. Dimensioning and tolerancing per ASME Y14.5M BSC: Basic Dimension. Theoretically exact value shown without tolerances. Microchip Technology Drawing No. C04-018D Sheet 2 of 2 2012-2018 Microchip Technology Inc. DS20002292C-page 42
MCP7940M Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging 2012-2018 Microchip Technology Inc. DS20002292C-page 43
MCP7940M Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging 2012-2018 Microchip Technology Inc. DS20002292C-page 44
MCP7940M (cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)(cid:10)(cid:6)(cid:11)(cid:12)(cid:13)(cid:14)(cid:8)$(cid:23)(cid:6)(cid:10)(cid:8)%(cid:10)(cid:6)(cid:12)&(cid:8)"(cid:30)(cid:8)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)(cid:6)(cid:14)(cid:20)(cid:6)’(cid:5)(cid:8)(cid:24)("(cid:25)(cid:8)(cid:26)(cid:8))*+*,(cid:28)-.(cid:8)(cid:21)(cid:21)(cid:8)(cid:29)(cid:30)(cid:7)(cid:31)(cid:8) (cid:15)$%"! "(cid:30)(cid:12)(cid:5)# 1(cid:10)(cid:9)(cid:2)%(cid:11)(cid:14)(cid:2)&(cid:10) %(cid:2)(cid:8)!(cid:9)(cid:9)(cid:14)(cid:15)%(cid:2)(cid:12)(cid:28)(cid:8)2(cid:28)(cid:17)(cid:14)(cid:2)"(cid:9)(cid:28))(cid:7)(cid:15)(cid:17) ’(cid:2)(cid:12)(cid:16)(cid:14)(cid:28) (cid:14)(cid:2) (cid:14)(cid:14)(cid:2)%(cid:11)(cid:14)(cid:2)(cid:6)(cid:7)(cid:8)(cid:9)(cid:10)(cid:8)(cid:11)(cid:7)(cid:12)(cid:2)(cid:30)(cid:28)(cid:8)2(cid:28)(cid:17)(cid:7)(cid:15)(cid:17)(cid:2)(cid:22)(cid:12)(cid:14)(cid:8)(cid:7)$(cid:7)(cid:8)(cid:28)%(cid:7)(cid:10)(cid:15)(cid:2)(cid:16)(cid:10)(cid:8)(cid:28)%(cid:14)"(cid:2)(cid:28)%(cid:2) (cid:11)%%(cid:12)033)))(cid:20)&(cid:7)(cid:8)(cid:9)(cid:10)(cid:8)(cid:11)(cid:7)(cid:12)(cid:20)(cid:8)(cid:10)&3(cid:12)(cid:28)(cid:8)2(cid:28)(cid:17)(cid:7)(cid:15)(cid:17) 2012-2018 Microchip Technology Inc. DS20002292C-page 45
MCP7940M APPENDIX A: REVISION HISTORY TABLE 6-1: BIT NAME CHANGES Old Bit Name New Bit Name Revision A (02/2012) OSCON OSCRUN Original release of this document. LP LPYR SQWE SQWEN Revision B (06/2014) ALM0 ALM0EN Updated overall content for improved clarity. Added ALM1 ALM1EN detailed descriptions of registers. Updated block dia- RS0 SQWFS0 gram and application schematic. RS1 SQWFS1 Defined names for all bits and registers, and renamed RS2 CRSTRIM the bits shown in Table 6-1 for clarification. CALIBRATION TRIMVAL<6:0> Renamed the DC characteristics shown in Table 6-2 for clarification. ALM0POL ALMPOL Updated 8-Lead PDIP Package. ALM1POL ALMPOL ALM0C<2:0> ALM0MSK<2:0> ALM1C<2:0> ALM1MSK<2:0> TABLE 6-2: DC CHARACTERISTIC NAME CHANGES Old Name Old Symbol New Name New Symbol Operating current SRAM ICC Read SRAM/RTCC register operating current ICCREAD ICC Write ICCWRITE Operating current IVCC Timekeeping current ICCT Standby current ICCS VCC data retention current (oscillator off) ICCDAT Revision C (07/2018) Updated Section 4.5.1 Square Wave Output Mode. 2012-2018 Microchip Technology Inc. DS20002292C-page 46
MCP7940M THE MICROCHIP WEBSITE CUSTOMER SUPPORT Microchip provides online support via our WWW site at Users of Microchip products can receive assistance www.microchip.com. This website is used as a means through several channels: to make files and information easily available to • Distributor or Representative customers. Accessible by using your favorite Internet • Local Sales Office browser, the website contains the following information: • Field Application Engineer (FAE) • Technical Support • Product Support – Data sheets and errata, application notes and sample programs, design Customers should contact their distributor, resources, user’s guides and hardware support representative or Field Application Engineer (FAE) for documents, latest software releases and archived support. Local sales offices are also available to help software customers. A listing of sales offices and locations is • General Technical Support – Frequently Asked included in the back of this document. Questions (FAQ), technical support requests, Technical support is available through the website online discussion groups, Microchip consultant at: http://microchip.com/support program member listing • Business of Microchip – Product selector and ordering guides, latest Microchip press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives CUSTOMER CHANGE NOTIFICATION SERVICE Microchip’s customer notification service helps keep customers current on Microchip products. Subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest. To register, access the Microchip website at www.microchip.com. Under “Support”, click on “Customer Change Notification” and follow the registration instructions. 2012-2018 Microchip Technology Inc. DS20002292C-page 47
MCP7940M PRODUCT IDENTIFICATION SYSTEM To order or obtain information, e.g., on pricing or delivery, refer to the factory or the listed sales office. Not every possible ordering combination is listed below. PART NO. X /XX Examples: Device Temperature Package a) MCP7940M-I/SN: Industrial Temperature, Range SOIC package. b) MCP7940MT-I/SN: Industrial Temperature, Device: MCP7940M = 1.8V - 5.5V I2C™ Serial RTCC SOIC package, Tape and Reel. MCP7940MT= 1.8V - 5.5V I2C Serial RTCC c) MCP7940MT-I/MNY: Industrial Tempera- (Tape and Reel) ture, TDFN package, Tape and Reel d) MCP7940M-I/P: Industrial Temperature, PDIP package. Temperature I = -40°C to +85°C Range: e) MCP7940M-I/MS: Industrial Temperature MSOP package. f) MCP7940M-I/ST: Industrial Temperature, Package: SN = 8-Lead Plastic Small Outline (3.90 mm body) TSSOP package. ST = 8-Lead Plastic Thin Shrink Small Outline g) MCP7940MT-I/ST: Industrial Temperature, (4.4 mm) TSSOP package, Tape and Reel. MS = 8-Lead Plastic Micro Small Outline MNY(1)= 8-Lead Plastic Dual Flat, No Lead P = 8-Lead Plastic PDIP (300mil body) Note 1: "Y" indicates a Nickel Palladium Gold (NiPdAu) finish. 2012-2018 Microchip Technology Inc. DS20002292C-page 48
Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. • Microchip is willing to work with the customer who is concerned about the integrity of their code. • Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.” Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Information contained in this publication regarding device Trademarks applications and the like is provided only for your convenience The Microchip name and logo, the Microchip logo, AnyRate, AVR, and may be superseded by updates. It is your responsibility to AVR logo, AVR Freaks, BitCloud, chipKIT, chipKIT logo, ensure that your application meets with your specifications. CryptoMemory, CryptoRF, dsPIC, FlashFlex, flexPWR, Heldo, MICROCHIP MAKES NO REPRESENTATIONS OR JukeBlox, KeeLoq, Kleer, LANCheck, LINK MD, maXStylus, WARRANTIES OF ANY KIND WHETHER EXPRESS OR maXTouch, MediaLB, megaAVR, MOST, MOST logo, MPLAB, IMPLIED, WRITTEN OR ORAL, STATUTORY OR OptoLyzer, PIC, picoPower, PICSTART, PIC32 logo, Prochip OTHERWISE, RELATED TO THE INFORMATION, Designer, QTouch, SAM-BA, SpyNIC, SST, SST Logo, INCLUDING BUT NOT LIMITED TO ITS CONDITION, SuperFlash, tinyAVR, UNI/O, and XMEGA are registered QUALITY, PERFORMANCE, MERCHANTABILITY OR trademarks of Microchip Technology Incorporated in the U.S.A. FITNESS FOR PURPOSE. Microchip disclaims all liability and other countries. arising from this information and its use. Use of Microchip ClockWorks, The Embedded Control Solutions Company, devices in life support and/or safety applications is entirely at EtherSynch, Hyper Speed Control, HyperLight Load, IntelliMOS, the buyer’s risk, and the buyer agrees to defend, indemnify and mTouch, Precision Edge, and Quiet-Wire are registered hold harmless Microchip from any and all damages, claims, trademarks of Microchip Technology Incorporated in the U.S.A. suits, or expenses resulting from such use. No licenses are Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any conveyed, implicitly or otherwise, under any Microchip Capacitor, AnyIn, AnyOut, BodyCom, CodeGuard, intellectual property rights unless otherwise stated. CryptoAuthentication, CryptoAutomotive, CryptoCompanion, CryptoController, dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, EtherGREEN, In-Circuit Serial Programming, ICSP, INICnet, Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo, memBrain, Mindi, MiWi, motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, PowerSmart, PureSilicon, QMatrix, REAL ICE, Ripple Blocker, SAM-ICE, Serial Quad I/O, SMART-I.S., SQI, SuperSwitcher, SuperSwitcher II, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. Microchip received ISO/TS-16949:2009 certification for its worldwide SQTP is a service mark of Microchip Technology Incorporated in headquarters, design and wafer fabrication facilities in Chandler and the U.S.A. Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company’s quality system processes and procedures Silicon Storage Technology is a registered trademark of are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping Microchip Technology Inc. in other countries. devices, Serial EEPROMs, microperipherals, nonvolatile memory and GestIC is a registered trademark of Microchip Technology analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies. © 2018, Microchip Technology Incorporated, All Rights Reserved. ISBN: 978-1-5224-3341-5 2012-2018 Microchip Technology Inc. DS20002292C-page 49
Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office Australia - Sydney India - Bangalore Austria - Wels 2355 West Chandler Blvd. Tel: 61-2-9868-6733 Tel: 91-80-3090-4444 Tel: 43-7242-2244-39 Chandler, AZ 85224-6199 China - Beijing India - New Delhi Fax: 43-7242-2244-393 Tel: 480-792-7200 Tel: 86-10-8569-7000 Tel: 91-11-4160-8631 Denmark - Copenhagen Fax: 480-792-7277 China - Chengdu India - Pune Tel: 45-4450-2828 Technical Support: Tel: 86-28-8665-5511 Tel: 91-20-4121-0141 Fax: 45-4485-2829 http://www.microchip.com/ support China - Chongqing Japan - Osaka Finland - Espoo Tel: 86-23-8980-9588 Tel: 81-6-6152-7160 Tel: 358-9-4520-820 Web Address: www.microchip.com China - Dongguan Japan - Tokyo France - Paris Tel: 86-769-8702-9880 Tel: 81-3-6880- 3770 Tel: 33-1-69-53-63-20 Atlanta Fax: 33-1-69-30-90-79 Duluth, GA China - Guangzhou Korea - Daegu Tel: 678-957-9614 Tel: 86-20-8755-8029 Tel: 82-53-744-4301 Germany - Garching Tel: 49-8931-9700 Fax: 678-957-1455 China - Hangzhou Korea - Seoul Austin, TX Tel: 86-571-8792-8115 Tel: 82-2-554-7200 Germany - Haan Tel: 49-2129-3766400 Tel: 512-257-3370 China - Hong Kong SAR Malaysia - Kuala Lumpur Boston Tel: 852-2943-5100 Tel: 60-3-7651-7906 Germany - Heilbronn Tel: 49-7131-67-3636 Westborough, MA China - Nanjing Malaysia - Penang Tel: 774-760-0087 Tel: 86-25-8473-2460 Tel: 60-4-227-8870 Germany - Karlsruhe Fax: 774-760-0088 China - Qingdao Philippines - Manila Tel: 49-721-625370 Chicago Tel: 86-532-8502-7355 Tel: 63-2-634-9065 Germany - Munich Itasca, IL China - Shanghai Singapore Tel: 49-89-627-144-0 Tel: 630-285-0071 Tel: 86-21-3326-8000 Tel: 65-6334-8870 Fax: 49-89-627-144-44 Fax: 630-285-0075 Germany - Rosenheim China - Shenyang Taiwan - Hsin Chu Dallas Tel: 86-24-2334-2829 Tel: 886-3-577-8366 Tel: 49-8031-354-560 Addison, TX Israel - Ra’anana China - Shenzhen Taiwan - Kaohsiung Tel: 972-818-7423 Tel: 972-9-744-7705 Tel: 86-755-8864-2200 Tel: 886-7-213-7830 Fax: 972-818-2924 Italy - Milan China - Suzhou Taiwan - Taipei Detroit Tel: 86-186-6233-1526 Tel: 886-2-2508-8600 Tel: 39-0331-742611 Novi, MI Fax: 39-0331-466781 Tel: 248-848-4000 TCehl:i n8a6 --2 W7-u5h9a8n0-5300 TTehla: i6la6n-2d- 6-9 B4a-1n3g5k1ok Italy - Padova Houston, TX Tel: 39-049-7625286 Tel: 281-894-5983 TCehl:i n8a6 --2 X9i-a8n833-7252 TVeiel:t 8n4a-m28 -- 5H4o4 C8-h2i1 M00inh Netherlands - Drunen Indianapolis Tel: 31-416-690399 Noblesville, IN China - Xiamen Fax: 31-416-690340 Tel: 86-592-2388138 Tel: 317-773-8323 Norway - Trondheim Fax: 317-773-5453 China - Zhuhai Tel: 47-7289-7561 Tel: 317-536-2380 Tel: 86-756-3210040 Poland - Warsaw Los Angeles Tel: 48-22-3325737 Mission Viejo, CA Romania - Bucharest Tel: 949-462-9523 Tel: 40-21-407-87-50 Fax: 949-462-9608 Tel: 951-273-7800 Spain - Madrid Tel: 34-91-708-08-90 Raleigh, NC Fax: 34-91-708-08-91 Tel: 919-844-7510 Sweden - Gothenberg New York, NY Tel: 46-31-704-60-40 Tel: 631-435-6000 Sweden - Stockholm San Jose, CA Tel: 46-8-5090-4654 Tel: 408-735-9110 Tel: 408-436-4270 UK - Wokingham Tel: 44-118-921-5800 Canada - Toronto Fax: 44-118-921-5820 Tel: 905-695-1980 Fax: 905-695-2078 2012-2018 Microchip Technology Inc. DS20002292C-page 50 10/25/17