MICROCHIP MCP79510-IMS

MCP7952X/MCP7951X
3V SPI Real-Time Clock Calendar with Battery Switchover
Device Selection Table
MCP79520
SRAM
(Bytes)
EEPROM
(Kbits)
64
2
Unique ID
Blank
MCP79510
64
1
Blank
MCP79521
64
2
EUI-48™
MCP79511
64
1
EUI-48™
MCP79522
64
2
EUI-64™
MCP79512
64
1
EUI-64™
Timekeeping Features:
• Real-Time Clock/Calendar:
- Hours, Minutes, Seconds, Hundredth of
Seconds, Day of Week, Month, Year, Leap
Year
• Crystal Oscillator requires External 32,768 kHz
Tuning Fork Crystal and Load Capacitors.
• Clock Out Function:
- 1Hz, 4.096 kHz, 8.192 kHz, 32.768 kHz
• 2 Programmable Alarms
• Programmable open drain output – Alarm or
Interrupt
• On-Chip Digital Trimming/Calibration:
- +/- 255 PPM range in 1 PPM steps
• Power-Fail Time-Stamp @ Battery Switchover:
- Logs time when VCC fails and VCC is restored
• 64-Byte Battery-Backed SRAM
• 2 Kbit and 1 Kbit EEPROM Memory:
- Software block write-protect (¼, ½, or entire
array)
- Write Page mode (up to 8 bytes)
- Endurance: 1M erase/write cycles
• 128-Bit Unique ID in Protected Area of EEPROM:
- Available blank or preprogrammed
- EUI-48™ or EUI-64™ MAC address
- Unlock sequence for user programming
Operating Ranges:
• SPI Clock Speed up to 5 MHz
• Operating Temperature Ranges:
- Industrial (I Temp): -40°C to +85°C.
• Packages include 10-Lead MSOP and TDFN
Package Types (not to scale)
MSOP/TDFN
X1
1
X2
2
VBAT
3
CS
4
VSS
5
MCP795XX
Part Number
User Memory:
10
Vcc
9
MFP
8
SCK
7
SO
6
SI
Low-Power Features:
• Wide Operating Voltage:
- VCC: 1.8V to 3.6V
- VBAT: 1.3V to 3.6V
• Low Operating Current:
- VCC Standby Current < 1uA @ 3V
- VBAT Timekeeping Current: <700nA @ 1.8V
• Automatic Battery Switchover from VCC to VBAT:
- Backup power for timekeeping and SRAM
retention
 2012 Microchip Technology Inc.
Note:
Preliminary
MCP795XX is used in this document as a
generic part number for the MCP7951X,
MCP7952X devices.
DS22300A-page 1
MCP7952X/MCP7951X
Description:
The MCP795XX is a low-power Real-Time Clock/
Calendar (RTCC) that uses digital trimming compensation for an accurate clock/calendar, an interrupt output to support alarms and events, a power sense
circuit that automatically switches to the backup supply, nonvolatile memory for safe data storage and several enhanced features that support system
requirements.
Along with a low-cost 32,768 kHz crystal, this RTCC
tracks time using several internal registers and then
communicates the data over a 5 MHz SPI bus that is
fast enough to support a programmable millisecond
alarm.
The device is fully accessible through the serial interface, while VCC is between 1.8V and 3.6V, but can
operate down to 1.3V through the backup supply connected to the VBAT input for timekeeping and SRAM
retention only.
As part of the power sense circuit, a time saver
function is implemented to store the time when main
power is lost and again, when power is restored to log
the duration of a power failure.
Along with the on-board serial EEPROM and batterybacked SRAM, a 128-bit protected space is available
for a unique ID. This space can be ordered
preprogrammed with a MAC address, or blank for the
user to program.
This clock/calendar automatically adjusts for months
with fewer than 31 days including corrections for leap
years. The clock operates in either 24-hour or 12-hour
format with AM/PM indicator and settable alarm(s).
Using the external crystal, the MFP pin can be set to
generate a number of output frequencies.
FIGURE 1-1:
BLOCK DIAGRAM
X1
VCC
CLKOUT Divider
OSC
VBAT
MFP
VBAT
SWITCHOVER
X2
EEPROM
SCK
ID
VSS
SO
ALARMS
CS
DS22300A-page 2
SRAM
SPI
TIME-STAMP
SI
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
1.0
ELECTRICAL CHARACTERISTICS
Absolute Maximum Ratings (†)
VCC.............................................................................................................................................................................6.5V
All inputs and outputs w.r.t. VSS ................................................................................................................. -0.6V to +6.5V
Storage temperature ...............................................................................................................................-65°C to +150°C
Ambient temperature under bias............................................................................................................... -40°C to +85°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
DC CHARACTERISTICS
Param.
No.
Sym.
D001
VIH1
D002
VIL1
D003
VIL2
D004
VOL
D005
VOL
D006
VOH
Characteristic
Industrial (I):
TAMB = -40°C to +85°C
Min.
Max.
Units
High-level input
voltage
.7 VCC
VCC+1
V
Low-level input
voltage
-0.3
0.3VCC
V
VCC = 1.8V to 3.6V
Test Conditions
VCC2.5V
-0.3
0.2VCC
V
VCC < 2.5V
Low-level output
voltage
—
0.4
V
IOL = 2.1 mA
—
0.2
V
IOL = 1.0 mA, VCC < 2.5V
High-level output
voltage
VCC -0.5
—
V
IOH = -400 A
D007
ILI
Input leakage current
±1
A
CS = VCC, VIN = VSS TO VCC
D008
ILO
Output leakage
current
±1
A
CS = VCC, VOUT = VSS TO VCC
D009
CINT
—
7
pF
TAMB = 25°C, CLK = 1.0 MHz
VCC = 5.0V (Note 1)
Internal Capacitance
(all inputs and
outputs)
D010
ICC Read Operating Current
—
3
mA
VCC = 3.6V; FCLK = 5 MHz
SO = Open
D011
IDD write Write Current
—
5
mA
VCC = 3.6V
—
700
nA
VBAT = 1.8V @ 25°C (Note 2)
1.7
V
1.5V typical at TAMB = 25°C
s
From VTRIP (max) to VTRIP (min)
D012
IBAT
VBAT Current
D013
VTRIP
VBAT Change Over
1.3
D014
VCCFT
VCC Fall Time
300
VCC Rise Time
D015
VCCRT
s
From VTRIP (min) to VTRIP (max)
D016
VBAT
VBAT Voltage Range
1.3
3.6
V
—
D017
ICCS
Standby Current
—
1
A
—
0
Note 1: This parameter is periodically sampled and not 100% tested.
2: With oscillator running.
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 3
MCP7952X/MCP7951X
TABLE 1-2:
AC CHARACTERISTICS
AC CHARACTERISTICS
Param.
No.
Sym.
1
FCLK
Clock Frequency
2
TCSS
3
Characteristic
Industrial (I):
TAMB = -40°C to +85°C VCC = 1.8V to 3.6V
Min.
Max.
Units
Test Conditions
—
—
5
3
MHz
MHz
2.5V Vcc  3.6V
1.8V Vcc  2.5V
CS Setup Time
100
150
—
—
ns
ns
2.5V Vcc  3.6V
1.8V Vcc  2.5V
TCSH
CS Hold Time
100
150
—
—
ns
ns
2.5V Vcc  3.6V
1.8V Vcc  2.5V
4
TCSD
CS Disable Time
50
—
ns
—
5
Tsu
Data Setup Time
20
30
—
—
ns
ns
2.5V Vcc  3.6V
1.8V Vcc  2.5V
6
THD
Data Hold Time
40
50
—
—
ns
ns
2.5V Vcc  3.6V
1.8V Vcc  2.5V
7
TR
CLK Rise Time
—
100
ns
(Note 1)
8
TF
CLK Fall Time
—
100
ns
(Note 1)
9
THI
Clock High Time
100
150
—
—
ns
ns
2.5V Vcc  3.6V
1.8V Vcc  2.5V
10
TLO
Clock Low Time
100
150
—
—
ns
ns
2.5V Vcc  3.6V
1.8V Vcc  2.5V
11
TCLD
Clock Delay Time
50
—
ns
—
12
TCLE
Clock Enable Time
50
—
ns
—
13
TV
Output Valid from Clock
Low
—
—
100
160
ns
ns
2.5V Vcc  3.6V
1.8V Vcc  2.5V
14
THO
Output Hold Time
0
—
ns
(Note 1)
15
TDIS
Output Disable Time
—
—
80
160
ns
ns
2.5V Vcc  3.6V (Note 1)
1.8V Vcc  2.5V (Note 1)
16
TWC
ms
(Note 3)
17
—
Internal Write Cycle Time
Endurance
—
5
1,000,000
—
E/W (Note 2)
Cycles
Note 1: This parameter is periodically sampled and not 100% tested.
2: This parameter is not tested but ensured by characterization. For endurance estimates in a specific
application, please consult the Total Endurance™ Model which can be obtained from Microchip’s web site:
www.microchip.com.
3: TWC begins on the rising edge of CS after a valid write sequence and ends when the internal write cycle
is complete.
DS22300A-page 4
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
FIGURE 1-1:
SERIAL INPUT TIMING
4
CS
12
2
7
SCK
6
MSB In
LSB In
High-Impedance
SO
FIGURE 1-2:
3
9
5
SI
8
10
11
SERIAL OUTPUT TIMING
CS
9
3
10
SCK
13
SO
SI
 2012 Microchip Technology Inc.
14
MSB Out
15
LSB Out
Don’t Care
Preliminary
DS22300A-page 5
MCP7952X/MCP7951X
2.0
PIN DESCRIPTION
The descriptions of the pins are listed in Table 2-1.
2.6
FIGURE 2-1:
10
Vcc
The X1 and X2 pins connect to the on-board oscillator
block. X1 is the input to the module and X2 is the output of the module. The device can be run from an
external CMOS signal by feeding into the X1 pin. If
driving X1 the X2 pin should be a No Connect.
9
MFP
2.7
8
SCK
7
SO
6
SI
DEVICE PINOUTS
1
X2
2
VBAT
3
CS
4
VSS
5
MCP795XX
MSOP/TDFN
X1
X1, X2
VBAT
The VBAT pin is a secondary supply input to maintain
the Clock and SRAM contents when VCC is removed.
TABLE 2-1:
Pin Name
2.1
Chip Select (CS)
A low level on this pin selects the device. A high level
deselects the device and forces it into Standby mode.
However, a programming cycle which is already initiated or in progress will be completed, regardless of the
CS input signal. If CS is brought high during a program
cycle, the device will go in Standby mode as soon as
the programming cycle is complete. When the device is
deselected, SO goes into the high-impedance state,
allowing multiple parts to share the same SPI bus. A
low-to-high transition on CS after a valid write
sequence initiates an internal write cycle. After powerup, a low level on CS is required prior to any sequence
being initiated.
2.2
PIN DESCRIPTIONS
Pin Function
VSS
X1
X2
VBAT
VCC
SI
SCK
Ground
Xtal Input, External Oscillator Input
Xtal Output
Battery Backup Input (3V Typ)
+1.8V to +3.6V Power Supply
Serial Input
Serial Clock
CS
Chip Select
MFP
SO
Multifunction Pin
Serial Output
Serial Output (SO)
The SO pin is used to transfer data out of the
MCP795XX. During a read cycle, data is shifted out on
this pin after the falling edge of the serial clock.
2.3
Serial Input (SI)
The SI pin is used to transfer data into the device. It
receives instructions, addresses and data. Data is
latched on the rising edge of the serial clock.
2.4
Serial Clock (SCK)
The SCK is used to synchronize the communication
between a master and the MCP795XX. Instructions,
addresses or data present on the SI pin are latched on
the rising edge of the clock input, while data on the SO
pin is updated after the falling edge of the clock input.
2.5
Multifunction Pin (MFP)
The MFP pin is shared with the clock divider and the
alarms. This pin requires an external pull-up to VCC or
VBAT. The pin remains low until such time that the interrupt flag in the register is cleared by software. This pin
has a maximum sink current of 10mA.
DS22300A-page 6
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
2.8
RTCC Memory Map
The RTCC registers are contained in addresses 0x00h0x1fh. 64 bytes of user-accessable SRAM are located
in the address range 0x20-0x5f. The SRAM memory is
a separate block from the RTCC control and Configuration registers. All SRAM locations are battery-backedup during a VCC power fail. Unused locations are not
accessible.
• Addresses 0x00h-0x07h are the RTCC Time and
Date registers. These are read/write registers.
Care must be taken when writing to these registers with the oscillator running.
• Incorrect data can appear in the Time and Date
registers if a write is attempted during the time
frame where these internal registers are being
incremented. The user can minimize the
likelihood of data corruption by ensuring that any
writes to the Time and Date registers occur before
the contents of the second register reach a value
of 0x59H.
FIGURE 2-2:
• Addresses 0x08h-0x0Bh are the device Configuration and Calibration registers.
• Addresses 0x0ch-0x11h are the Alarm 0 registers.
These are used to set up the Alarm 0, the interrupt pin and the Alarm 0 compare.
• Addresses 0x12h-0x17h are the Alarm 1 registers. These are used to set up the Alarm 1, the
interrupt pin and the Alarm 1 compare, Alarm 1
offers a enhanced resolution of tenth and
hundredths of seconds.
• Addresses 0x18h-0x1Fh are used for the powerdown and power-up time-stamp feature. The
detailed memory map is shown in Table 4-1. No
error checking is provided when loading Time and
Date registers.
MEMORY MAP
RTCC Register/SRAM
0x00
EEPROM
0x00
Time and Date
0x07
0x09
0x0B
0x0C
Configuration and Calibration
Alarm 0
EEPROM
Memory
0x11
0x12
Alarm 1
0x17
0x18
0x1F
0x20
Time-Stamp
0xFF
Note: 1K EEPROM Max address is 0x7F.
Unique ID
SRAM (64 Bytes)
0x00
0x07
0x08
Unique ID Location 1
EUI-48/64
Unique ID Location 2
0x5F
 2012 Microchip Technology Inc.
0x0F
Preliminary
DS22300A-page 7
MCP7952X/MCP7951X
3.0
SPI BUS OPERATION
The MCP795XX contains an 8-bit instruction register.
The MCP795XX is designed to interface directly with
the Serial Peripheral Interface (SPI) port of many of
today’s popular microcontroller families, including
Microchip’s PIC® microcontrollers. It may also interface
with microcontrollers that do not have a built-in SPI port
by using discrete I/O lines programmed properly in software to match the SPI protocol.
TABLE 3-1:
The device is accessed via the SI pin, with data being
clocked in on the rising edge of SCK. The CS pin must
be low for the entire operation.
Table 3-1 contains a list of the possible instruction
bytes and format for device operation. All instructions,
addresses, and data are transferred MSb first, LSb last.
Data (SI) is sampled on the first rising edge of SCK
after CS goes low.
INSTRUCTION SET SUMMARY
Instruction Name
Instruction Format
Description
EEREAD
0000 0011
Read data from EE memory array beginning at selected address
EEWRITE
0000 0010
Write data to EE memory array beginning at selected address
EEWRDI
0000 0100
Reset the write enable latch (disable write operations)
EEWREN
0000 0110
Set the write enable latch (enable write operations)
SRREAD
0000 0101
Read STATUS register
SRWRITE
0000 0001
Write STATUS register
READ
0001 0011
Read RTCC/SRAM array beginning at selected address
WRITE
0001 0010
Write RTCC/SRAM data to memory array beginning at selected
address
UNLOCK
0001 0100
Unlock ID Locations
IDWRITE
0011 0010
Write to the ID Locations
IDREAD
0011 0011
Read the ID Locations
CLRRAM
0101 0100
Clear RAM Location to ‘0’
3.1
Read Sequence
The device is selected by pulling CS low. The various
8-bit read instructions are transmitted to the
MCP795XX followed by an 8-bit address. See
Figure 3-1 for more details.
After the correct instruction and address are sent, the
data stored in the memory at the selected address is
shifted out on the SO pin. Data stored in the memory at
FIGURE 3-1:
the next address can be read sequentially by continuing to provide clock pulses to the slave. The internal
Address Pointer automatically increments to the next
higher address after each byte of data is shifted out.
When the highest address is reached, the address
counter rolls over to the first valid address allowing the
read cycle to be continued indefinitely. The read operation is terminated by raising the CS pin (Figure 1-1).
EEREAD SEQUENCE
CS
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
SCK
Instruction
SI
0
0
0
0
0
Address Byte
0
1
1 A7 A6 A5 A4 A3 A2 A1 A0
Data Out
High-Impedance
7
SO
3.2
Nonvolatile Memory Write
Sequence
DS22300A-page 8
6
5
4
3
2
1
0
Prior to any attempt to write data to the nonvolatile
memory (EEPROM, Unique ID and STATUS register)
in the MCP795XX, the write enable latch must be set
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
by issuing the EEWREN instruction (Figure 3-4). This is
done by setting CS low and then clocking out the
proper instruction into the MCP795XX. After all eight
bits of the instruction are transmitted, CS must be
driven high to set the write enable latch. If the write
operation is initiated immediately after the EEWREN
instruction without CS driven high, data will not be written to the array since the write enable latch was not
properly set.
applied to the chip, the address counter will roll back to
the first address of the page and overwrite any data that
previously existed in those locations.
For the data to be actually written to the array, the CS
must be brought high after the Least Significant bit (D0)
of the nth data byte has been clocked in. If CS is driven
high at any other time, the write operation will not be
completed. Refer to Figure 3-2 and Figure 3-3 for more
detailed illustrations on the byte write sequence and
the page write sequence, respectively. While the nonvolatile memory write is in progress, the STATUS register may be read to check the status of the WIP, WEL,
BP1 and BP0 bits. Attempting to read a memory array
location will not be possible during a write cycle. Polling
the WIP bit in the STATUS register is recommended in
order to determine if a write cycle is in progress. When
the nonvolatile memory write cycle is completed, the
write enable latch is reset.
After setting the write enable latch, the user may proceed by driving CS low, issuing either an EEWRITE,
IDWRITE or a SWRITE instruction, followed by the
remainder of the address, and then the data to be written. Up to 8 bytes of data can be sent to the device
before a write cycle is necessary. The only restriction is
that all of the bytes must reside in the same page. Additionally, a page address begins with XXXX 0000 and
ends with XXXX X111. If the internal address counter
reaches XXXX X111 and clock signals continue to be
FIGURE 3-2:
BYTE EEWRITE SEQUENCE
CS
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
SCK
Instruction
SI
0
0
0
0
0
Address Byte
0
Data Byte
0 A7 A6 A5 A4 A3 A2 A1 A0
1
Twc
7
6
5
4
3
2
1
0
High-Impedance
SO
FIGURE 3-3:
PAGE EEWRITE SEQUENCE
CS
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
SCK
Address Byte
Instruction
SI
0
0
0
0
0
0 1
Data Byte 1
0 A7 A6 A5 A4 A3 A2 A1 A0 7
6
5
4
3
2
1
0
CS
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
SCK
Data Byte 2
SI
7
6
5
4
 2012 Microchip Technology Inc.
3
2
Data Byte 3
1
0
7
6
5
4
3
2
Preliminary
Data Byte n (8 max)
1
0
7
6
5
4
3
2
1
0
DS22300A-page 9
MCP7952X/MCP7951X
3.3
Write Enable (EEWREN) and Write
Disable (EEWRDI)
The following is a list of conditions under which the
write enable latch will be reset:
•
•
•
•
•
The MCP795XX contains a write enable latch.
This latch must be set before any EEWRITE,
SRWRITE and IDWRITE operation will be completed
internally. The EEWREN instruction will set the latch, and
the EEWRDI will reset the latch.
FIGURE 3-4:
Power-up
EEWRDI instruction successfully executed
SRWRITE instruction successfully executed
EEWRITE instruction successfully executed
IDWRITE instruction successfully executed
WRITE ENABLE SEQUENCE (EEWREN)
CS
0
1
2
3
4
5
6
7
SCK
0
SI
0
0
0
1
1
0
High-Impedance
SO
FIGURE 3-5:
0
WRITE DISABLE SEQUENCE (EEWRDI)
CS
0
1
2
3
4
5
6
7
SCK
SI
0
0
0
0
0
1
0
0
High-Impedance
SO
DS22300A-page 10
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
4.0
RTCC FUNCTIONALITY
4.0.1
RTCC REGISTER MAP
All of the RTCC registers are backed up from the VBAT
supply when VCC is not available, provided that the
VBATEN bit is set. Any unused bits or non implemented addresses read back as ‘0’. No error checking
is provided for any of the RTCC, the user may load
any value.
The RTCC register space runs from 0x00 through to
0x1F. Any read or write that is started within the RTCC
register address space will wrap to the beginning of
the RTCC registers.
TABLE 4-1:
Address
The RTCC register map is shown in Table 4-1.
RTCC REGISTER MAP
BIT 7
BIT 6
BIT 5
BIT 4
BIT 3
BIT 2
BIT 1
BIT 0
FUNCTION
RANGE
Time and Configuration Registers
00h
01h
Tenth Seconds
ST
02h
03h
CALSGN
Seconds
Seconds
00-59
Minutes
Minutes
00-59
Hours
1-12 + AM/PM
00 - 23
Day
1-7
Date
01-31
05h
10 Hour
Hour
VBAT
VBATEN
Day
10 Date
06h
LP
07h
10 Year
OUT
SQWE
Date
10 Month
Month
Year
ALM1
ALM0
09h
EXTOSC
RS2
RS1
CALIBRATION
0Ah
Reserved for future use
0Bh
Reserved for future use
00-99
10 Minutes
OSCON
04h
Hundredths of
seconds
10 Seconds
10 Hour
AM/PM
12/24
08h
Hundredths of Seconds
RS0
Month
01-12
Year
00-99
Control Reg.
Calibration
Alarm 0 Registers
0Ch
10 Seconds
Seconds
Seconds
0Dh
10 Minutes
Minutes
Minutes
00-59
Hours
1-12 + AM/PM
00-23
0Eh
0Fh
12/24
10 Hour
AM/PM
ALM0C2
ALM0C1
10h
10 Hours
ALM0C0
Hour
ALM0IF
Day
10 Date
Date
10 Month
11h
Month
00-59
Day
1-7
Date
01-31
Month
01-12
Hundredths
of Seconds
00-99
00-59
Alarm 1 Registers
12h
Tenth Seconds
Hundredths of seconds
13h
10 Seconds
Seconds
Seconds
14h
10 Minutes
Minutes
Minutes
00-59
Hours
1-12 + AM/PM
00-23
Day
1-7
Date
01-31
12/24
10 Hour
AM/PM
ALM1C2
ALM1C1
15h
16h
10 Hours
ALM1C0
Hour
ALM1IF
10 Date
17h
Day
Date
Power-Down Time-Stamp Registers
18h
10 Minutes
19h
12/24
10 Hour
AM/PM
Minutes
10 Hours
10 Date
1Ah
1Bh
Day
1Ch
10 Minutes
Hour
Date
10 Month
Month
Power-Up Time-Stamp Registers
1Dh
12/24
10 Hours
10 Date
1Eh
1Fh
Minutes
10 Hour
AM/PM
Day
 2012 Microchip Technology Inc.
Hour
Date
10 Month
Preliminary
Month
DS22300A-page 11
MCP7952X/MCP7951X
5.0
TIME AND CONFIGURATION REGISTERS
REGISTER 5-1:
HUNDREDTHS OF SECONDS 0X00
R/W
R/W
Tenth Seconds
Hundredths of Seconds
bit 7
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7-4
TENTH SECONDS<3:0>: Tenth Seconds
bit 3-0
HUNDREDTHS OF SECONDS<3:0>: Hundredths of Seconds
Note 1:
Contains the BCD Tens and Hundredths of Seconds.
REGISTER 5-2:
R/W
R/W
ST
bit 7
SECONDS 0X01
R/W
10 Seconds
bit 6
Seconds
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7
ST: Start Oscillator bit
ST is the oscillator Start bit in the MCP795XX devices. Setting this bit to ‘1’ starts the oscillator and
clearing this bit to ‘0’ stops the on-board oscillator.
bit 6-4
10 SECONDS<2:0>: 10 Seconds
bit 3-0
SECONDS<3:0>: Seconds
Note 1:
Contains the BCD seconds and 10 seconds. The range is 00 to 59.
REGISTER 5-3:
MINUTES 0X02
U-0
R/W
R/W
—
10 Minutes
Minutes
bit 7
bit 6
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7
Unimplemented: Read as ‘0’
bit 6-4
10 MINUTES<2:0>: 10 Minutes
bit 3-0
MINUTES<3:0>: Minutes
Note 1:
U = Unimplemented bit, read as ‘0’
Contains the BCD minutes and 10 minutes. The range is 00 to 59.
DS22300A-page 12
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
REGISTER 5-4:
HOUR 0X03
R/W
R/W
R/W
R/W
R/W
CALSGN
12/24
10 Hour
AM/PM
10 Hour
Hour
bit 7
bit 6
bit 5
bit 4
bit 3
bit 0
Legend:
R = Readable bit
bit 7
W = Writable bit
U = Unimplemented bit, read as ‘0’
CALSGN: Calibration Sign bit
Bit 7 is the sign bit (CALSGN) for the calibration. Clearing this bit produces a positive calibration,
setting this bit produces a negative calibration.
bit 6
12/24: Clearing this bit to ‘0’ enables 24-hour format, setting this bit to ‘1’ enables 12-hour format.
bit 5
10 HOUR: AM/PM bit for 12-hour time
bit 4
10 HOUR
bit 3-0
HOUR<3:0>
Note 1:
Contains the BCD hour in bits <3:0>. Bits <5:4> contain either the 10-hour in BCD for 24-hour format or
the AM/PM indicator and the 10-hour bit for 12-hour format. Bit 5 determines the hour format.
REGISTER 5-5:
DAY 0X04
U-0
U-0
R
R/W
R/W
R/W
—
—
OSCON
VBAT
VBATEN
Day
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7-6
Unimplemented: Read as ‘0’
bit 5
OSCON: Oscillator On bit
This bit is set and cleared by hardware. If this bit is set, the oscillator is running; if
clear, the oscillator is not running. This bit does not indicate that the oscillator is running at the correct
frequency. The bit will wait 32 oscillator cycles before the bit is set.
bit 4
VBAT: External Battery Switched Flag bit
This bit is set by hardware when the VCC fails and the VBAT is used to power the oscillator and the
RTCC registers. This bit is cleared by software.
bit 3
VBATEN: External Battery Enable bit
If this bit is set the internal circuitry is connected to the VBAT pin. If this bit is ‘0’ then the VBAT pin is
disconnected and the only current drain on the external battery is the VBAT pin leakage.
DAY<2:0>
bit 2-0
Note 1:
Contains the BCD day. The range is 1-7. Also, additional bits are used for configuration and status.
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 13
MCP7952X/MCP7951X
REGISTER 5-6:
DATE 0X05
U-0
U-0
R/W
R/W
—
—
10 Date
Date
bit 7
bit 6
bit 5
bit 4
bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7-6
Unimplemented: Read as ‘0’
bit 5-4
10 DATE<1:0>
bit 3-0
DATE<3:0>
Note 1:
Contains the BCD Date and 10 Date. The range is 01-31.
REGISTER 5-7:
U-0
MONTH 0X06
U-0
—
bit 7
U = Unimplemented bit, read as ‘0’
R
—
R/W
LP
bit 6
bit 5
R/W
10 Month
bit 4
Month
bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7-6
Unimplemented: Read as ‘0’
bit 5
LP: Leap Year, set during a leap year and is read-only
bit 4
10 MONTH
bit 3-0
MONTH<3:0>
Note 1:
Contains the BCD month. Bit 4 contains the 10 month.
REGISTER 5-8:
YEAR 0X07
R/W
R/W
10 Year
bit 7
Year
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7-4
10 YEAR<3:0>
bit 3-0
YEAR<3:0>
Note 1:
U = Unimplemented bit, read as ‘0’
Contains the BCD Year and 10 Year. The Range is 00-99.
DS22300A-page 14
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
REGISTER 5-9:
CONTROL REG 0X08
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
OUT
SQWE
ALM1
ALM0
EXTOSC
RS2
RS1
RS0
bit 2
bit 1
bit 7
bit 6
bit 5
bit 4
bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7
OUT: Output Polarity of MFP bit
This bit sets the logic level on the MFP pin when not using this as a square wave output.
bit 6
SQWE: Squarewave Enable bit
Setting this bit enables the divided output from the crystal oscillator.
bit 5-4
ALM<1:0>: Alarm Configuration bits
These bits determine which alarms are active
- 00 – No Alarms are active
- 01 – Alarm 0 is active
- 10 – Alarm 1 is active
- 11 – Both Alarms are active
bit 3
EXTOSC: External Oscillator Input bit
Enable bit. Setting this bit will allow an external 32.768 kHz signal to drive the RTCC registers,
eliminating the need for an external crystal.
bit 2-0
RS<2:0>: Calibration Mode bits
Sets the internal divider for the 32.768 kHz oscillator to be driven to the MFP pin. The following
frequencies are available. The output is responsive to the Calibration register.
- 000 – 1 Hz
- 001 – 4.096 kHz
- 010 – 8.192 kHz
- 011 – 32.768 kHz
- 1XX – enables the Cal output function. Cal output appears on MFP if SQWE is set (1 Hz
nominal).
Note 1:
When RS2 is set to enable the Cal output function, the RTCC counters will continue to increment.
REGISTER 5-10:
CALIBRATION 0X09
R/W
CALIBRATION
bit 7
bit 0
Legend:
R = Readable bit
bit 7-0
Note 1:
W = Writable bit
U = Unimplemented bit, read as ‘0’
CALIBRATION VALUE<7:0>: Calibration Value bits
This is an 8-bit register that is used to add or subtract clocks from the RTCC counter every minute. The
CALSGN (0x03:7) is the sign bit and indicates if the count should be added or subtracted. The 8 bits in the
Calibration register, with each bit adding or subtracting two clocks, gives the user the ability to add or subtract up to 510 clocks per minute.
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 15
MCP7952X/MCP7951X
6.0
ALARM 0 REGISTERS
REGISTER 6-1:
SECONDS 0X0C
U-0
R/W
R/W
—
10 Seconds
Seconds
bit 7
bit 6
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7
Unimplemented: Read as ‘0’
bit 6-4
10 SECONDS<2:0>: 10 Seconds
bit 3-0
SECONDS<3:0>: Seconds
Note:
This contains the seconds match for the Alarm 0.
REGISTER 6-2:
MINUTES 0X0D
U-0
R/W
R/W
—
10 Minutes
Minutes
bit 7
bit 6
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7
Unimplemented: Read as ‘0’
bit 6-4
10 MINUTES<2:0>: 10 Seconds
bit 3-0
Note:
MINUTES<3:0>: Seconds
This contains the minutes match for the Alarm 0.
REGISTER 6-3:
HOURS 0X0E
U-0
R/W
—
bit 7
12/24
bit 6
10 Hour
AM/PM
bit 5
R/W
10 Hour
Hour
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7
Unimplemented: Read as ‘0’
bit 6
12/24: This is a copy of bit 6 in the Hours register (0x03)
bit 5
10 HOUR AM/PM
bit 4
10 HOUR
bit 3-0
Note:
HOUR<3:0>
This contains the minutes match for the Alarm 0.
DS22300A-page 16
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
REGISTER 6-4:
DAY 0X0F
R/W
R/W
—
bit 7
ALM0C2
bit 6
ALM0C1
bit 5
ALM0C0
bit 4
R/W
R/W
ALM0IF
Day
bit 3
bit 2
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7
Unimplemented: Read as ‘0’
bit 6-4
ALM0C<2:0>: Alarm 0 Configuration bits
Sets the condition on what the alarm will trigger. The following options are available:
- 000 – Seconds match
- 001 – Minutes match
- 010 – Hours match (logic takes into account 12/24 operation)
- 011 – Day match. Generates interrupt at 12:00:00 AM
- 100 – Date match
- 101 – Unimplemented, do not use
- 110 – Unimplemented, do not use
- 111 – Seconds, Minutes, Hour, Day, Date and Month
bit 3
ALM0IF: Alarm 0 Interrupt Flag bit
This bit is set by hardware when an alarm condition has been generated. The bit must be cleared in
software.
DAY<2:0>
bit 2-0
Note 1:
Contains the BCD day. The range is 1-7. Also, additional bits are used for configuration and status.
REGISTER 6-5:
U-0
U-0
—
bit 7
DATE 0X10
R/W
—
bit 6
R/W
10 Date
bit 5
bit 4
Date
bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7-6
Unimplemented: Read as ‘0’
bit 5-4
10 DATE<1:0>
bit 3-0
DATE<3:0>
 2012 Microchip Technology Inc.
U = Unimplemented bit, read as ‘0’
Preliminary
DS22300A-page 17
MCP7952X/MCP7951X
REGISTER 6-6:
MONTH 0X11
U-0
U-0
U-0
R/W
R/W
—
—
—
10 Month
Month
bit 7
bit 6
bit 5
bit 4
bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7-5
Unimplemented: Read as ‘0’
bit 4
10 MONTH
bit 3-0
MONTH<3:0>
Note 1:
U = Unimplemented bit, read as ‘0’
Month match is only available on Alarm 0.
DS22300A-page 18
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
7.0
ALARM 1 REGISTERS
REGISTER 7-1:
HUNDREDTHS OF SECONDS 0X12
R/W
R/W
Tenth Seconds
Hundredths of Seconds
bit 7
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7-4
TENTH SECONDS<3:0>: Tenth Seconds
bit 3-0
HUNDREDTHS OF SECONDS<3:0>: Hundredths of Seconds
Note 1:
Hundredths and Tenth seconds only available on Alarm 1.
REGISTER 7-2:
SECONDS 0X13
U-0
R/W
—
bit 7
R/W
10 Seconds
bit 6
Seconds
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7
Unimplemented: Read as ‘0’
bit 6-4
10 SECONDS<2:0>: 10 Seconds
bit 3-0
SECONDS<3:0>: Seconds
REGISTER 7-3:
U = Unimplemented bit, read as ‘0’
MINUTES 0X14
U-0
R/W
R/W
—
10 Minutes
Minutes
bit 7
bit 6
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7
Unimplemented: Read as ‘0’
bit 6-4
10 MINUTES<2:0>: 10 Minutes
bit 3-0
MINUTES<3:0>: Minutes
 2012 Microchip Technology Inc.
U = Unimplemented bit, read as ‘0’
Preliminary
DS22300A-page 19
MCP7952X/MCP7951X
REGISTER 7-4:
HOURS 0X15
U-0
R/W
—
bit 7
12/24
bit 6
R/W
10 Hour
AM/PM
10 Hour
bit 5
Hour
bit 4 bit 3
bit 0
Legend:
R = Readable bit
bit 7
W = Writable bit
U = Unimplemented bit, read as ‘0’
Unimplemented: Read as ‘0’
bit 6
12/24
bit 5
10 HOUR AM/PM
bit 4
10 HOUR
bit 3-0
HOUR<3:0>
REGISTER 7-5:
DAY 0X16
R/W
R/W
—
bit 7
ALM1C2
bit 6
R/W
ALM1C1
bit 5
ALM1C0
bit 4
R/W
ALM1IF
bit 3
Day
bit 2
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7
Unimplemented: Read as ‘0’
bit 6-4
ALM1C<2:0>: Alarm 1 Configuration bits
Sets the condition on what the Alarm will trigger. The following options are available:
- 000 – Seconds match
- 001 – Minutes match
- 010 – Hours match (logic takes into account 12/24 operation)
- 011 – Day match. Generates interrupt at 12:00:00 AM
- 100 – Date match
- 101 – Unimplemented, do not use
- 110 – Unimplemented, do not use
- 111 – Seconds, Minutes, Hour, Day, Date and Month
bit 3
ALM1IF: Alarm 1 Interrupt Flag bit
This bit is set by hardware when an alarm condition has been generated. The bit must be cleared in
software.
DAY<2:0>
bit 2-0
DS22300A-page 20
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
REGISTER 7-6:
DATE 0X17
U-0
U-0
R/W
R/W
—
—
10 Date
Date
bit 7
bit 6
bit 5
bit 4
bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7-6
Unimplemented: Read as ‘0’
bit 5-4
10 DATE<1:0>
bit 3-0
DATE<3:0>
 2012 Microchip Technology Inc.
U = Unimplemented bit, read as ‘0’
Preliminary
DS22300A-page 21
MCP7952X/MCP7951X
8.0
POWER-DOWN TIME-STAMP REGISTERS
Note:
It is strongly recommended that the timesaver function only be used when the oscillator is running. This
will ensure accurate functionality.
REGISTER 8-1:
MINUTES 0X18
U-0
R/W
—
bit 7
R/W
10 Minutes
Minutes
bit 6
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7
Unimplemented: Read as ‘0’
bit 6-4
10MINUTES<2:0>: 10 Minutes
bit 3-0
MINUTES<3:0>: Minutes
REGISTER 8-2:
HOURS 0X19
U-0
R/W
—
bit 7
U = Unimplemented bit, read as ‘0’
12/24
bit 6
R/W
10 Hour
AM/PM
10 Hour
bit 5
Hour
bit 4 bit 3
bit 0
Legend:
R = Readable bit
bit 7
W = Writable bit
U = Unimplemented bit, read as ‘0’
Unimplemented: Read as ‘0’
bit 6
12/24: This is a copy of the status of the bit in register 0x03:6 at the time of the event
bit 5
10 HOUR AM/PM
bit 4
10 HOUR
bit 3-0
HOUR<3:0>
REGISTER 8-3:
DATE 0X1A
U-0
U-0
R/W
R/W
—
—
10 Date
Date
bit 7
bit 6
bit 5
bit 4
bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7-6
Unimplemented: Read as ‘0’
bit 5-4
10 DATE<1:0>
bit 3-0
DATE<3:0>
DS22300A-page 22
U = Unimplemented bit, read as ‘0’
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
REGISTER 8-4:
bit 7
MONTH 0X1B
R/W
R/W
R/W
Day
10 Month
Month
bit 6
bit 5
bit 4
bit 3
bit 0
Legend:
R = Readable bit
bit 7-5
DAY<2:0>
bit 4
10 MONTH
bit 3-0
MONTH<3:0>
Note 1:
W = Writable bit
U = Unimplemented bit, read as ‘0’
Month match is only available on Alarm 0.
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 23
MCP7952X/MCP7951X
9.0
POWER-UP TIME REGISTERS
Note:
It is strongly recommended that the timesaver function only be used when the oscillator is running. This
will ensure accurate functionality.
REGISTER 9-1:
MINUTES 0X1C
U-0
R/W
—
bit 7
R/W
10 Minutes
Minutes
bit 6
bit 4 bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
bit 7
Unimplemented: Read as ‘0’
bit 6-4
10 MINUTES<2:0>: 10 Minutes
bit 3-0
MINUTES<3:0>: Minutes
REGISTER 9-2:
HOURS 0X1D
U-0
R/W
—
bit 7
12/24
bit 6
R/W
10 Hour
AM/PM
10 Hour
bit 5
Hour
bit 4 bit 3
bit 0
Legend:
R = Readable bit
bit 7
W = Writable bit
U = Unimplemented bit, read as ‘0’
Unimplemented: Read as ‘0’
bit 6
12/24: This is a copy of the status of the bit in register 0x03:6 at the time of the event
bit 5
10 HOUR AM/PM
bit 4
10 HOUR
bit 3-0
HOUR<3:0>
REGISTER 9-3:
DATE 0X1E
U-0
U-0
R/W
R/W
—
—
10 Date
Date
bit 7
bit 6
bit 5
bit 4
bit 3
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7-6
Unimplemented: Read as ‘0’
bit 5-4
10 DATE<1:0>
bit 3-0
DATE<3:0>
DS22300A-page 24
U = Unimplemented bit, read as ‘0’
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
REGISTER 9-4:
bit 7
MONTH 0X1F
R/W
R/W
R/W
Day
10 Month
Month
bit 6
bit 5
bit 4
bit 3
bit 0
Legend:
R = Readable bit
bit 7-5
DAY<2:0>
bit 4
10 MONTH
bit 3-0
MONTH<3:0>
 2012 Microchip Technology Inc.
W = Writable bit
U = Unimplemented bit, read as ‘0’
Preliminary
DS22300A-page 25
MCP7952X/MCP7951X
9.1
Features
9.1.1
CALIBRATION
The Calibration register (0x09h) allows a number of
RTCC counts to be added or subtracted (CALSGN bit
located at 0x03:7) each minute. This allows for
calibration to reduce the PPM error due to oscillator
shift. This register is volatile.
The frequencies listed in the table presume an input
clock source of exactly 32.768 kHz. In terms of the
equivalent number of input clock cycles, the table
becomes:
RS2
RS1
RS0
Output Signal
0
0
0
0
0
0
1
1
0
1
0
1
32768
8
4
1
The CALSGN bit determines if calibration is positive or
negative.
A value of 0x00 in the Calibration register will result in
no calibration.
The calibration is linear, with one bit representing two
RTC clocks.
The MCP795XX utilizes digital calibration to correct for
the inaccuracies of the input clock source (either
external or crystal). Calibration is enabled by setting
the value of the Calibration register at address 08H.
Calibration is achieved by adding or subtracting a
number of input clock cycles per minute in order to
achieve ppm level adjustments in the internal timing
function of the MCP795XX.
The CALSGN bit is the calibration sign bit, with a ‘1’
indicating subtraction and a ‘0’ indicating addition. The
eight bits in the Calibration register indicate the
number of input clock cycles (multiplied by two) that
are subtracted or added per minute to the internal
timing function.
The internal timing function can be monitored using
the MFP output pin by setting bit 6 (SQWE) and bits
<2:0> (RS2, RS1, RS0) of the Control register at
address 07H. Note that the MFP output waveform is
disabled when the MCP795XX is running in VBAT
mode. With the SQWE bit set to ‘1’, there are two
methods that can be used to observe the internal
timing function of the MCP795XX:
Method 1. RS2 bit set to ‘0’
With the RS2 bit set to ‘0’, the RS1 and RS0 bits
enable the following internal timing signals to be
output on the MFP pin:
RS2
RS1
RS0
0
0
0
0
0
0
1
1
0
1
0
1
DS22300A-page 26
Output Signal
1 Hz
4.096 kHz
8.192 kHz
32.768 kHz
With regards to the calibration function, the Calibration
register setting has no impact upon the MFP output
clock signal when bits RS1 and RS0 are set to ‘11’.
The setting of the Calibration register to a non-zero
value enables the calibration function which can be
observed on the MFP output pin. The calibration
function can be expressed in terms of the number of
input clock cycles added/subtracted from the internal
timing function.
With bits RS1 and RS0 set to ‘00’, the calibration
function can be expressed as:
=
(32768 +/- (2 * CALREG)) Tinput
Toutput
=
clock period of MFP output signal
Tinput
=
clock period of input signal
CALREG
=
decimal value of Calibration
register setting and the sign is
determined by the CALSGN bit.
Toutput
where:
Since the calibration is done once per minute (i.e.,
when the internal minute counter is incremented), only
one cycle in sixty of the MFP output waveform is
affected by the calibration setting. Also note that the
duty cycle of the MFP output waveform will not
necessarily be at 50% when the calibration setting is
applied.
With bits RS1 and RS0 set to ‘01’ or ‘10’, the
calibration function can not be expressed in terms of
the input clock period. In the case where the MSB of
the Calibration register is set to ‘0’, the waveform
appearing at the MFP output pin will be “delayed”, once
per minute, by twice the number of input clock cycles
defined in the Calibration register. The MFP waveform
will appear as shown in Figure 9-1.
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
In the case where the MSB of the Calibration register
is set to ‘1’, the MFP output waveforms that appear
when bits RS1 and RS0 are set to ‘01’ or ‘10’ are not
as responsive to the setting of the Calibration register.
For example, when outputting the 4.096 kHz
waveform (RS1, RS0 set to ‘01’), the output waveform
is generated using only eight input clock cycles.
Consequently, attempting to subtract more than eight
input clock cycles from this output does not have a
meaningful affect on the resulting waveform. Any
affect on the output will appear as a modification in
both the frequency and duty cycle of the waveform
appearing on the MFP output pin.
Method 2. RS2 bit set to ‘1’
With the RS2 bit set to ‘1’, the following internal timing
signal is output on the MFP pin:
RS2
RS1
RS0
Output Signal
1
x
x
1.0 Hz
The frequency listed in the table presumes an input
clock source of exactly 32.768 kHz. In terms of the
equivalent number of input clock cycles, the table
becomes:
RS2
RS1
RS0
Output Signal
1
x
x
32768
Unlike the method previously described, the
calibration setting is continuously applied and affects
every cycle of the output waveform. This results in the
modulation of the frequency of the output waveform
based upon the setting of the Calibration register.
Using this setting, the calibration function can be
expressed as:
=
(32768 +/- (2 * CALREG)) Tinput
Toutput
=
clock period of MFP output signal
Tinput
=
clock period of input signal
CALREG
=
decimal value of Calibration
register setting and the sign is
determined by the CALSGN bit.
Toutput
where:
Since the calibration is done every cycle, the frequency
of the output MFP waveform is constant.
FIGURE 9-1:
MFP WAVEFORM
Delay
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 27
MCP7952X/MCP7951X
9.1.2
MULTIFUNCTION PIN (MFP)
TABLE 9-1:
Pin 9 is a multifunction pin and supports the following
functions:
• The value of the OUT bit determines the logic.
• Level of the I/O. This is only available when
operating from VCC.
• Alarm Outputs – Available in VBAT mode
• FOUT mode – Driven from a FOSC divider – Not
available in VBAT mode.
Read/Write
Access
Powered
By
VCC < VTRIP, VCC < VBAT
VCC > VTRIP, VCC < VBAT
VCC > VTRIP, VCC > VBAT
No
Yes
Yes
VBAT
VCC
VCC
9.1.4
UNIQUE ID LOCATIONS
When the unique ID locations are preprogrammed from
the factory with either an EUI-48 or EUI-64, the EUI
code is programmed into location 0x00-0x07. Locations 0x08-0x0F are blank (0x0F).
VBAT SWITCHOVER
If the VBAT feature is not used, the VBAT pin should be
connected to GND. A low value series resistor and
Schottky diode are recommended between the
external battery and the VBAT pin to reduce inrush
current and also to prevent any leakage current
reaching the external VBAT source.
Note:
The VTRIP point is defined as 1.5V typical. When VDD
falls below 1.5V the system will continue to operate
the RTCC and SRAM using the VBAT supply. There is
~50mV hyst in the trip point changeover. The following
conditions apply:
FIGURE 9-2:
Supply
Condition
For more information on VBAT conditions see the RTCC
Best Practices Application Note, AN1365 (DS01365).
The internal control logic for the MFP is connected to
the switched internal supply bus. This allows operation
in VBAT mode. The Alarm Output is the only mode that
operates in VBAT mode, other modes are suspended.
9.1.3
VBAT CHANGOVER
CONDITIONS
For EUI-64, the data is located in address
0x00-0x07. For EUI-48 locations, 0x020x07 contain the data. 0x00/01 contain
0xFF.
To read the unique ID location the IDREAD command
is given with the starting address. Valid addresses are
0x00 through 0x0F. All 16 bytes can be read out in a
single command by clocking the device. Trying to
access locations past 0x0F will result in the address
wrapping within these 16 bytes.
IDREAD COMMAND SEQUENCE
CS
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
SCK
Instruction
SI
0
0
1
1
0
Address Byte
0
1
1
0
0
0
0
3
2
1
Don’t Care
0
Data Out
High-Impedance
7
SO
6
5
4
3
2
1
0
Address range is 0x00-0x0F, address counter will wrap within this range.
To write to the unique ID locations, the IDWRITE command is used. The device must be write enabled and
the correct unlock sequence must have been performed. See Section 10.1.4, Write to the Unlock
Register for more details.
DS22300A-page 28
The ID locations can be written to using the IDWRITE
command. The valid address is between 0x00 and
0x0F. The entire 16 bytes must be written in two
groups of 8 bytes. A maximum of 8 bytes can be
written at once.
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
FIGURE 9-3:
IDWRITE COMMAND SEQUENCE
CS
0
1
2
3
4
5
6
7
8
9 10 11 13 14 15 16 17 18 19 20 21 22 23 24
SCK
Instruction
SI
0
0
1
1
0
Address Byte
0
1
0
0
0
0
3
0
2
Data Byte 1
1
0
7
6
5
4
3
2
1
0
CS
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
SCK
Data Byte 2
SI
7
6
5
4
 2012 Microchip Technology Inc.
3
Data Byte 3
2
1
0
7
6
5
4
3
Data Byte n (8 max)
2
Preliminary
1
0
7
6
5
4
3
2
1
0
DS22300A-page 29
MCP7952X/MCP7951X
9.1.5
POWER-FAIL TIME-STAMP
The MCP795XX family of RTCC devices feature a
power-fail time-stamp feature. This feature will save the
time at which VCC crosses the VTRIP voltage and is
shown in Figure 9-4. To use this feature, a VBAT supply
must be present and the oscillator must also be running. There are two separate sets of registers that are
used to record this information:
• The second set of registers, located at 0x1Ch
through 0x1Fh, are loaded at the time when VCC
is restored and the RTCC switches to VCC.
The power-fail time-stamp registers are cleared when
the VBAT bit is cleared in software.
Note:
• The first set located at 0x18h through 0x1Bh are
loaded at the time when VCC falls below VTRIP
and the RTCC operates on the VBAT. The VBAT
(register 0x03h bit 4) bit is also set at this time.
FIGURE 9-4:
It is strongly recommended that the timesaver function only be used when the
oscillator is running. This will ensure accurate functionality.
POWER-FAIL GRAPH
VCC
VTRIP(max)
VTRIP(min)
Power-Down
Time-Stamp
Power-Up
Time-Stamp
VCCRT
VCCFT
9.1.6
READ STATUS REGISTER
(SRREAD)
The Read Status Register (SRREAD) instruction provides access to the STATUS register. The STATUS
register may be read at any time, even during a write
cycle. The STATUS register is formatted as follows:
7
—
X
6
—
X
5
—
X
4
—
X
3
R/W
BP1
2
R/W
BP0
1
R
WEL
0
R
WIP
via the WREN or WRDI commands, regardless of the
state of write protection on the STATUS register. This
bit is read-only.
The Block Protection (BP0 and BP1) bits indicate
which blocks are currently write-protected. These bits
are set by the user issuing the WRSR instruction. These
bits are nonvolatile.
See Figure 9-5 for the RDSR timing sequence.
*
Note:
Once a Write Status Register is initiated
and a Read Status Register is attempted
the new values for the nonvolatile bits will
be read regardless of whether the values
have been actually programmed into the
device. (i.e., The values are moved to the
latches prior to the write operation).
The Write-In-Process (WIP) bit indicates whether the
MCP795XX is busy with a nonvolatile memory write
operation. When set to a ‘1’, a write is in progress,
when set to a ‘0’, no write is in progress. This bit is
read-only.
The Write Enable Latch (WEL) bit indicates the status of the write enable latch. When set to a ‘1’, the
latch allows writes to the nonvolatile memory, when
set to a ‘0’, the latch prohibits writes to the nonvolatile
memory. The state of this bit can always be updated
DS22300A-page 30
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
FIGURE 9-5:
READ STATUS REGISTER TIMING SEQUENCE
CS
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SCK
Instruction
SI
SO
0
0
0
0
0
High-Impedance
1
0
1
Data from STATUS Register
7
6
5
4
3
2
1
0
* Data should be able to continuously be read from the STATUS register without toggling CS, for updating of
the WIP and WEL bits.
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 31
MCP7952X/MCP7951X
9.1.7
WRITE STATUS REGISTER
(SRWRITE)
The Write Status Register (SRWRITE) instruction
allows the user to select one of four levels of protection for the array by writing to the appropriate bits in
the STATUS register. The array is divided up into four
segments. The user has the ability to write-protect
none, one, two, or all four of the segments of the array.
The partitioning is controlled as shown in Table 9-2.
See Figure 9-6 for the SRWRITE timing sequence.
TABLE 9-2:
ARRAY PROTECTION
Array Addresses
Write-Protected
(2 kbit shown)
BP1
BP0
0
0
none
0
1
upper 1/4
(C0h-FFh)
1
0
upper 1/2
(80h-FFh)
1
1
all
(00h-FFh)
FIGURE 9-6:
WRITE STATUS REGISTER TIMING SEQUENCE
CS
TWC
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
1
0
SCK
Instruction
SI
0
0
0
0
0
Data to STATUS Register
0
0
1
7
6
5
4
3
2
High-Impedance
SO
DS22300A-page 32
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
9.1.8
DATA PROTECTION
• Access to the array during an internal EEPROM
write cycle is ignored and programming is continued
• Block protect bits are ignored for UID writes
The following protection has been implemented to prevent inadvertent writes to the array:
• The write enable latch is reset on power-up
• A Write Enable instruction must be issued to set
the write enable latch
• After a byte write, page write, unique ID write, or
STATUS register write, the write enable latch is
reset
• CS must be set high after the proper number of
clock cycles to start an internal write cycle
FIGURE 9-7:
9.1.9
CLEAR RAM INSTRUCTION
The Clear Ram instruction is a 2-byte command that
will reset the internal SRAM to the known value. Using
this command, all locations in the SRAM are set to 00h
and the data value contained in the second byte of the
command is ignored.
CLRRAM
CS
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15
SCK
Instruction
SI
0
1
0
1
0
Data
1
0
0 A7 6
5
4
3
2
1
A0
High-Impedance
SO
9.2
Crystal Specification and
Selection
The MCP795XX has been designed to operate with a
standard 32.768 kHz tuning fork crystal. The on-board
oscillator has been characterized to operate with a
crystal of maximum ESR of 70K Ohms.
Crystals with a comparable specification are also suitable for use with the MCP795XX.
The table below is given as design guidance and a
starting point for crystal and capacitor selection.
Manufacturer
Crystal
Capacitance
Part Number
CX1 Value
CX2 Value
Micro Crystal
CM7V-T1A
7pF
10pF
12pF
Citizen
CM200S-32.768KDZB-UT
6pF
10pF
8 pF
Please work with your crystal vendor.
EQUATION 9-1:
C load
• Stray Board Capacitance
The recommended board layout for the oscillator area
is shown in Figure 9-8. This actual board shows the
crystal and the load capacitors. In this example, C2 is
CX1, C1 is CX2 and the crystal is designated as Y1.
CX2  CX1
= ----------------------------- + C stray
CX2 + CX1
The following must also be taken into consideration:
• Pin capacitance (to be included in Cx2 and Cx1)
 2012 Microchip Technology Inc.
When calculating the effective load capacitance,
Equation 9-1 can be used.
Preliminary
DS22300A-page 33
MCP7952X/MCP7951X
FIGURE 9-8:
BOARD LAYOUT
Gerber files are available on request. Please contact
your Microchip Sales representative.
It is required that the final application should be tested
with the chosen crystal and capacitor combinations
across all operating and environmental conditions.
Please also consult with the crystal specification to
observe correct handling and reflow conditions and for
information on ideal capacitor values.
For more information please see the RTCC Best
Practices AN1365 (DS01365).
DS22300A-page 34
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
10.0
ON-BOARD MEMORY
10.1.2
The part is selected by pulling CS low. The 8-bit READ
instruction is transmitted to the MCP79520 followed by
the 8-bit address (A7 through A0). After the correct
READ instruction and address are sent, the data stored
in the memory at the selected address is shifted out on
the SO pin. The data stored in the memory at the next
address can be read sequentially by continuing to provide clock pulses. The internal Address Pointer is automatically incremented to the next higher address after
each byte of data is shifted out.
The MCP795XX has both on-board EEPROM memory
and battery-backed SRAM. The SRAM is arranged as
64 bytes and is retained when VCC supply is removed.
The EEPROM is organized as 256 or 128 bytes. The
EEPROM is nonvolatile and does not require VBAT supply for retention.
10.1
SRAM
The SRAM array is a battery-backed-up array of 64
bytes. The SRAM is accessed using the Read and
Write commands, starting at address 0x20h.
As the RTCC registers are separate from the SRAM
array, when reading the RTCC registers set the
address will wrap back to the start of the RTCC registers. Also when an address within the SRAM array is
loaded the internal Address Pointer will wrap back to
the start of the SRAM array. The READ instruction can
be used to read the registers and array indefinitely by
continuing to clock the device. The read operation is
terminated by raising the CS pin (Figure 10-1).
Upon power-up the SRAM locations are in an undefined state but can be set to a known value using the
CLRRAM instruction (Figure 9-7).
10.1.1
READ SEQUENCE
SRAM/RTCC OPERATION
The MCP795XX contains a Real-Time Clock and Calendar. The RTCC registers and SRAM array are
accessed using the same commands. The RTCC registers and SRAM array are powered internally from the
switched supply that is either connected to VCC or VBAT
supply. No external read/write operations are permitted
when the device is running from the VBAT supply.
10.1.3
WRITE SEQUENCE
As the RTCC registers and SRAM array do not require
the WREN sequence like the nonvolatile memory, the
user may proceed by setting the CS low, issuing the
WRITE instruction, followed by the address, and then
the data to be written. As no write cycle is required for
the RTCC registers and SRAM array the entire contents can be written in a single command.
Table 3-1 contains a list of the possible instruction
bytes and format for device operation.
For the last data byte to be written to the RTCC registers and SRAM array, the CS must be brought high
after the last byte has been clocked in. If CS is brought
high at any other time, the last byte will not be written.
Refer to Figure 10-2 for more detailed illustrations on
the write sequence.
FIGURE 10-1:
READ SEQUENCE
CS
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
SCK
Address Byte
Instruction
SI
0
0
0
1
0
0
1
1 A7 6
5
4
3
2
1
A0
Don’t Care
Data Out
High-Impedance
7
SO
6
5
4
3
2
1
0
The address will rollover to the start of either the RTCC registers or SRAM array.
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 35
MCP7952X/MCP7951X
FIGURE 10-2:
WRITE SEQUENCE
CS
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
SCK
Instruction
SI
0
0
0
0
0
Data Byte
Address Byte
0 1
0 A7 6
5
4
3
2
1
A0
7
6
5
4
3
2
1
0
High-Impedance
SO
10.1.4
WRITE TO THE UNLOCK REGISTER
The following is a list of strict conditions which have to
be followed before the unique locations can be written
to:
The MCP795XX contains a protected area of 64 bits
that can be used to hold a unique ID, such as a serial
number or MAC address code. To gain write access to
these locations, a specific sequence is required. Any
deviation from this sequence will reset the lock on
these locations. Once these locations have been
unlocked they have to be written to in the next command by issuing the correct command. A write to a different location will lock the ID locations and clear the
WEL bit.
• EEWREN instruction successfully executed
• UNLOCK 0x55 instruction successfully executed
• UNLOCK 0xAA instruction successfully executed
To issue each UNLOCK instruction the Unlock command is sent followed by 0x55. Then in a separate
command the Unlock command is issued followed by
0xAA. It is a requirement that each command be separate, that is CS must toggle between each command.
Information on how to read and write the ID locations
is detailed in Section 9.1.4, Unique ID Locations.
FIGURE 10-3:
UNLOCK SEQUENCE
CS
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15
SCK
Instruction
SI
0
0
0
1
0
Data
1
0
0
7
6
5
4
3
2
1
0
High-Impedance
SO
DS22300A-page 36
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
11.0
PACKAGING INFORMATION
11.1
Package Marking Information
10-Lead MSOP (3x3 mm)
Example
79520I
210ABC
Example
10-Lead TDFN
520I
XX
XX
YY1135
WW
abc
N NN
XX XX
YY W W
NNN
PIN 1
PIN 1
Part Number
MSOP
TDFN
MCP79520
79520I
520I
MCP79510
79510I
510I
MCP79521
79521I
521I
MCP79511
79511I
511I
MCP79522
79522I
522I
79512I
512I
MCP79512
Note:
Legend: XX...X
Y
YY
WW
NNN
e3
*
Note:
1st Line Marking Codes
T = Temperature grade
NN = Alphanumeric traceability code
Customer-specific information
Year code (last digit of calendar year)
Year code (last 2 digits of calendar year)
Week code (week of January 1 is week ‘01’)
Alphanumeric traceability code
Pb-free JEDEC designator for Matte Tin (Sn)
This package is Pb-free. The Pb-free JEDEC designator ( e3 )
can be found on the outer packaging for this package.
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 Microchip Technology Inc.
Preliminary
DS22300A-page 37
MCP7952X/MCP7951X
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DS22300A-page 38
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 39
MCP7952X/MCP7951X
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DS22300A-page 40
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 41
MCP7952X/MCP7951X
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DS22300A-page 42
Preliminary
 2012 Microchip Technology Inc.
MCP7952X/MCP7951X
APPENDIX A:
REVISION HISTORY
Revision A (04/2012)
Initial Release.
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 43
MCP7952X/MCP7951X
NOTES:
DS22300A-page 44
Preliminary
 2012 Microchip Technology Inc.
MCP7952XX/MCP7951XX
THE MICROCHIP WEB SITE
CUSTOMER SUPPORT
Microchip provides online support via our WWW site at
www.microchip.com. This web site is used as a means
to make files and information easily available to
customers. Accessible by using your favorite Internet
browser, the web site contains the following
information:
Users of Microchip products can receive assistance
through several channels:
• Product Support – Data sheets and errata,
application notes and sample programs, design
resources, user’s guides and hardware support
documents, latest software releases and archived
software
• General Technical Support – Frequently Asked
Questions (FAQ), technical support requests,
online discussion groups, Microchip consultant
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
•
•
•
•
•
Distributor or Representative
Local Sales Office
Field Application Engineer (FAE)
Technical Support
Development Systems Information Line
Customers
should
contact
their
distributor,
representative or field application engineer (FAE) for
support. Local sales offices are also available to help
customers. A listing of sales offices and locations is
included in the back of this document.
Technical support is available through the web site
at: http://microchip.com/support
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 web site at
www.microchip.com. Under “Support”, click on
“Customer Change Notification” and follow the
registration s.
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 45
MCP7952XX/MCP7951XX
READER RESPONSE
It is our intention to provide you with the best documentation possible to ensure successful use of your Microchip
product. If you wish to provide your comments on organization, clarity, subject matter, and ways in which our
documentation can better serve you, please FAX your comments to the Technical Publications Manager at
(480) 792-4150.
Please list the following information, and use this outline to provide us with your comments about this document.
TO:
Technical Publications Manager
RE:
Reader Response
Total Pages Sent ________
From: Name
Company
Address
City / State / ZIP / Country
Telephone: (_______) _________ - _________
FAX: (______) _________ - _________
Application (optional):
Would you like a reply?
Y
N
Device: MCP7952XX/MCP7951XX
Literature Number: DS22300A
Questions:
1. What are the best features of this document?
2. How does this document meet your hardware and software development needs?
3. Do you find the organization of this document easy to follow? If not, why?
4. What additions to the document do you think would enhance the structure and subject?
5. What deletions from the document could be made without affecting the overall usefulness?
6. Is there any incorrect or misleading information (what and where)?
7. How would you improve this document?
DS22300A-page 46
Preliminary
 2012 Microchip Technology Inc.
MCP7952XX/MCP7951XX
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.
MCP795
1
0
T
Base Part
Memory
Unique
ID
T/R
–
I
Temp Package
Range
Base Part No.:
MCP795 = SPI RTCC
Memory:
1
2
= 1 Kbit EE, 64 Bytes SRAM
= 2 Kbits EE, 64 Bytes SRAM
ID/MAC Address:
0
1
2
= Blank
= EUI-48™ MAC Address
= EUI-64™ MAC Address
T/R:
Blank = Tube
T
= Tape and Reel
Temperature
Range:
I
Package:
MS = 10-Pin MSOP
MN = 10-Pin TDFN
=
/XX
Examples:
a)
b)
c)
d)
e)
f)
MCP79510-I/MS: 1K EEPROM, Blank ID,
Industrial Temperature, MSOP Package
MCP79512-I/MS: 1K EEPROM, EUI-64™,
Industrial Temperature, MSOP Package
MCP79511T-I/MN: 1K EEPROM, EUI-48™,
Industrial Temperature, Tape and Reel, TDFN
Package
MCP79520-I/MS: 2K EEPROM, Blank ID,
Industrial Temperature, MSOP Package
MCP79522-I/MS: 2K EEPROM, EUI-64™,
Industrial Temperature, MSOP Package
MCP79521T-I/MN: 2K EEPROM, EUI-48™,
Industrial Temperature, Tape and Reel, TDFN
Package
-40C to +85C
 2012 Microchip Technology Inc.
Preliminary
DS22300A-page 47
MCP7952XX/MCP7951XX
NOTES:
DS22300A-page 48
Preliminary
 2012 Microchip Technology Inc.
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
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
PIC32 logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, chipKIT,
chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net,
dsPICworks, dsSPEAK, ECAN, ECONOMONITOR,
FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP,
Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB,
MPLINK, mTouch, Omniscient Code Generation, PICC,
PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE,
rfLAB, Select Mode, Total Endurance, TSHARC,
UniWinDriver, WiperLock and ZENA are trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
© 2012, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 9781620761984
QUALITY MANAGEMENT SYSTEM
CERTIFIED BY DNV
== ISO/TS 16949 ==
 2012 Microchip Technology Inc.
Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
Preliminary
DS22300A-page 49
Worldwide Sales and Service
AMERICAS
ASIA/PACIFIC
ASIA/PACIFIC
EUROPE
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technical Support:
http://www.microchip.com/
support
Web Address:
www.microchip.com
Asia Pacific Office
Suites 3707-14, 37th Floor
Tower 6, The Gateway
Harbour City, Kowloon
Hong Kong
Tel: 852-2401-1200
Fax: 852-2401-3431
India - Bangalore
Tel: 91-80-3090-4444
Fax: 91-80-3090-4123
India - New Delhi
Tel: 91-11-4160-8631
Fax: 91-11-4160-8632
Austria - Wels
Tel: 43-7242-2244-39
Fax: 43-7242-2244-393
Denmark - Copenhagen
Tel: 45-4450-2828
Fax: 45-4485-2829
India - Pune
Tel: 91-20-2566-1512
Fax: 91-20-2566-1513
France - Paris
Tel: 33-1-69-53-63-20
Fax: 33-1-69-30-90-79
Japan - Osaka
Tel: 81-66-152-7160
Fax: 81-66-152-9310
Germany - Munich
Tel: 49-89-627-144-0
Fax: 49-89-627-144-44
Atlanta
Duluth, GA
Tel: 678-957-9614
Fax: 678-957-1455
Boston
Westborough, MA
Tel: 774-760-0087
Fax: 774-760-0088
Chicago
Itasca, IL
Tel: 630-285-0071
Fax: 630-285-0075
Cleveland
Independence, OH
Tel: 216-447-0464
Fax: 216-447-0643
Dallas
Addison, TX
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Farmington Hills, MI
Tel: 248-538-2250
Fax: 248-538-2260
Indianapolis
Noblesville, IN
Tel: 317-773-8323
Fax: 317-773-5453
Los Angeles
Mission Viejo, CA
Tel: 949-462-9523
Fax: 949-462-9608
Santa Clara
Santa Clara, CA
Tel: 408-961-6444
Fax: 408-961-6445
Toronto
Mississauga, Ontario,
Canada
Tel: 905-673-0699
Fax: 905-673-6509
Australia - Sydney
Tel: 61-2-9868-6733
Fax: 61-2-9868-6755
China - Beijing
Tel: 86-10-8569-7000
Fax: 86-10-8528-2104
Japan - Yokohama
Tel: 81-45-471- 6166
Fax: 81-45-471-6122
China - Chengdu
Tel: 86-28-8665-5511
Fax: 86-28-8665-7889
Korea - Daegu
Tel: 82-53-744-4301
Fax: 82-53-744-4302
China - Chongqing
Tel: 86-23-8980-9588
Fax: 86-23-8980-9500
China - Hangzhou
Tel: 86-571-2819-3187
Fax: 86-571-2819-3189
Korea - Seoul
Tel: 82-2-554-7200
Fax: 82-2-558-5932 or
82-2-558-5934
China - Hong Kong SAR
Tel: 852-2401-1200
Fax: 852-2401-3431
Malaysia - Kuala Lumpur
Tel: 60-3-6201-9857
Fax: 60-3-6201-9859
China - Nanjing
Tel: 86-25-8473-2460
Fax: 86-25-8473-2470
Malaysia - Penang
Tel: 60-4-227-8870
Fax: 60-4-227-4068
China - Qingdao
Tel: 86-532-8502-7355
Fax: 86-532-8502-7205
Philippines - Manila
Tel: 63-2-634-9065
Fax: 63-2-634-9069
China - Shanghai
Tel: 86-21-5407-5533
Fax: 86-21-5407-5066
Singapore
Tel: 65-6334-8870
Fax: 65-6334-8850
China - Shenyang
Tel: 86-24-2334-2829
Fax: 86-24-2334-2393
Taiwan - Hsin Chu
Tel: 886-3-5778-366
Fax: 886-3-5770-955
China - Shenzhen
Tel: 86-755-8203-2660
Fax: 86-755-8203-1760
Taiwan - Kaohsiung
Tel: 886-7-536-4818
Fax: 886-7-330-9305
China - Wuhan
Tel: 86-27-5980-5300
Fax: 86-27-5980-5118
Taiwan - Taipei
Tel: 886-2-2500-6610
Fax: 886-2-2508-0102
China - Xian
Tel: 86-29-8833-7252
Fax: 86-29-8833-7256
Thailand - Bangkok
Tel: 66-2-694-1351
Fax: 66-2-694-1350
Netherlands - Drunen
Tel: 31-416-690399
Fax: 31-416-690340
Spain - Madrid
Tel: 34-91-708-08-90
Fax: 34-91-708-08-91
UK - Wokingham
Tel: 44-118-921-5869
Fax: 44-118-921-5820
China - Xiamen
Tel: 86-592-2388138
Fax: 86-592-2388130
China - Zhuhai
Tel: 86-756-3210040
Fax: 86-756-3210049
DS22300A-page 50
Italy - Milan
Tel: 39-0331-742611
Fax: 39-0331-466781
11/29/11
Preliminary
 2012 Microchip Technology Inc.