2011 Microchip Technology Inc. Preliminary DS22280A-page 1
MCP795WXX/MCP795BXX
Device Selection Table
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
32 kHz Boot-up Clock at Power-up (MCP795BXX)
2 Programmable Alarms – Supports IRQ or WDO
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
Low-Power Features:
Wide Operating Voltage:
-V
CC: 1.8V to 5.5V
-VBAT: 1.3V to 5.5V
Low Operating Current:
-V
CC Standby Current < 1uA @ 3V
-V
BAT Timekeeping Current: <700nA @ 1.8V
Automatic Battery Switchover from VCC to VBAT:
- Backup power for timekeeping and SRAM
retention
User Memory:
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
Enhanced Features:
SPI Clock Speed up to 10 MHz
Programmable Watchdog Timer:
- Dedicated watchdog output pin
- Dual retrigger using SPI bus or EVHS digital
input
Dual Configurable Event Detect Inputs:
- High-Speed Digital Event Detect (EVHS) with
pulse count for 1st, 4th,16th or 32nd event
- Low-Speed Event Detect (EVLS) with
programmable debounce delays of 31 msec
and 500 msec
- Edge triggered (rising or falling)
- Operates from VCC or VBAT
Operating Temperature Ranges:
- Industrial (I Temp): -40°C to +85°C.
Packages include 14-Lead SOIC and TSSOP
Part Number 32 kHz
Boot-up
SRAM
(Bytes)
EEPROM
(Kbits)
Unique
ID
MCP795W20 No 64 2 Blank
MCP795W10 No 64 1 Blank
MCP795W21 No 64 2 EUI-48
MCP795W11 No 64 1 EUI-48
MCP795W22 No 64 2 EUI-64
MCP795W12 No 64 1 EUI-64
MCP795B20 Yes 64 2 Blank
MCP795B10 Yes 64 1 Blank
MCP795B21 Yes 64 2 EUI-48
MCP795B11 Yes 64 1 EUI-48
MCP795B22 Yes 64 2 EUI-64
MCP795B12 Yes 64 1 EUI-64
Note:
Watchdog Timer and Event Detects in all devices.
X1
X2
V
BAT
WDO
Vcc
CLKOUT/BOOT
EVHS
EVLS
1
2
3
4
14
13
12
11
MCP795XXX
SOIC/TSSOP
IRQ
CS
V
SS
SCK
SI
SO
5
6
7
10
9
8
Note: MCP795XXX is used in this document as a
generic part number for the MCP795WXX,
MCP795BXX devices.
SPI Real-Time Clock Calendar with
Enhanced Features and Battery Switchover
MCP795WXX/MCP795BXX
DS22280A-page 2 Preliminary 2011 Microchip Technology Inc.
Description:
The MCP795XXX is a low-power Real-Time Clock/
Calendar (RTCC) that uses digital trimming compen-
sation for an accurate clock/calendar, an interrupt out-
put to support alarms and events, a power sense
circuit that automatically switches to the backup sup-
ply, non-volatile 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 10 MHz SPI bus that is
fast enough to support a programmable millisecond
alarm.
The device is fully accessible through the serial inter-
face, while VCC is between 1.8V and 5.5V, but can
operate down to 1.3V through the backup supply con-
nected 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 onboard serial EEPROM and battery-
backed 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 CLKOUT pin can be set
to generate a number of output frequencies. In
addition, the MCP795BXX devices support a 32 kHz
clock output at power-up on the CLKOUT/BOOT pin
by using the same crystal driving the RTCC device.
For versatility, a digital event detect with a
programmable pulse count can identify the 1st, 4th,
16th or 32nd pulse before sending an interrupt. A
second event detect with built-in debounce input filter
was also implemented to support noisy mechanical
switches.
Since many microcontrollers do not have an integrated
Watchdog Timer, this peripheral has been imple-
mented in the RTCC. For many applications, this
function must be performed outside the microcontroller
for increased robustness.
FIGURE 1-1: BLOCK DIAGRAM
X1
X2
VBAT
/WDO
/IRQ
/CS
Vss
Vcc
CLKOUT/
BOOT
EVHS
EVLS
SCK
SI
SO
OSC
CLKOUT Divider
EVENT
DETECT
WDT
SPI
EEPROM
SRAM
TI ME-STAMP
ID
ALARMS VBAT
SWITCHOVER
2011 Microchip Technology Inc. Preliminary DS22280A-page 3
MCP795WXX/MCP795BXX
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
TABLE 1-1: DC CHARACTERISTICS
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.
DC CHARACTERISTICS Industrial (I): TAMB = -40°C to +85°C VCC = 1.8V to 5.5V
Param.
No. Sym. Characteristic Min. Max. Units Test Conditions
D001 VIH1High-level input
voltage
.7 VCC VCC+1 V
D002 VIL1Low-level input
voltage
-0.3 0.3VCC VVCC2.5V
D003 VIL2-0.3 0.2VCC VVCC < 2.5V
D004 VOL Low-level output
voltage
—0.4VIOL = 2.1 mA
D005 VOL —0.2VIOL = 1.0 mA, VCC < 2.5V
D006 VOH High-level output
voltage
VCC -0.5 V IOH = -400 A
D007 ILI Input leakage current ±1 ACS = VCC, VIN = VSS TO VCC
D008 ILO Output leakage
current
±1 ACS = VCC, VOUT = VSS TO VCC
D009 CINT Internal Capacitance
(all inputs and
outputs)
—7pFTAMB = 25°C, CLK = 1.0 MHz
VCC = 5.0V (Note 1)
D010 ICC Read Operating Current 3 mA VCC = 5.5V; FCLK = 10.0 MHz
SO = Open
D011 IDD write Write Current 5 mA VCC = 5.5V
D012 IBAT VBAT Current 700 nA VBAT = 1.8V @ 25°C (Note 2)
D013 VTRIP VBAT Change Over 1.3 1.7 V 1.5V typical at TAMB = 25°C
D014 VCCFT VCC Fall Time 300 sFrom VTRIP (max) to VTRIP (min)
D015 VCCRT VCC Rise Time 0 sFrom VTRIP (min) to VTRIP (max)
D016 VBAT VBAT Voltage Range 1.3 5.5 V
D017 ICCS Standby Current 1 A—
Note 1: This parameter is periodically sampled and not 100% tested.
2: With oscillator running.
MCP795WXX/MCP795BXX
DS22280A-page 4 Preliminary 2011 Microchip Technology Inc.
TABLE 1-2: AC CHARACTERISTICS
AC CHARACTERISTICS Industrial (I): TAMB = -40°C to +85°C VCC = 1.8V to 5.5V
Param.
No. Sym. Characteristic Min. Max. Units Test Conditions
1F
CLK Clock Frequency
10
5
3
MHz
MHz
MHz
4.5V Vcc 5.5V
2.5V Vcc 4.5V
1.8V Vcc 2.5V
2TCSS CS Setup Time 50
100
150
ns
ns
ns
4.5V Vcc 5.5V
2.5V Vcc 4.5V
1.8V Vcc 2.5V
3TCSH CS Hold Time 50
100
150
ns
ns
ns
4.5V Vcc 5.5V
2.5V Vcc 4.5V
1.8V Vcc 2.5V
4TCSD CS Disable Time 50 ns
5 Tsu Data Setup Time 10
20
30
ns
ns
ns
4.5V Vcc 5.5V
2.5V Vcc 4.5V
1.8V Vcc 2.5V
6T
HD Data Hold Time 20
40
50
ns
ns
ns
4.5V Vcc 5.5V
2.5V Vcc 4.5V
1.8V Vcc 2.5V
7T
RCLK Rise Time 100 ns (Note 1)
8TFCLK Fall Time 100 ns (Note 1)
9THI Clock High Time 50
100
150
ns
ns
ns
4.5V Vcc 5.5V
2.5V Vcc 4.5V
1.8V Vcc 2.5V
10 TLO Clock Low Time 50
100
150
ns
ns
ns
4.5V Vcc 5.5V
2.5V Vcc 4.5V
1.8V Vcc 2.5V
11 TCLD Clock Delay Time 50 ns
12 TCLE Clock Enable Time 50 ns
13 TVOutput Valid from Clock
Low
50
100
160
ns
ns
ns
4.5V Vcc 5.5V
2.5V Vcc 4.5V
1.8V Vcc 2.5V
14 THO Output Hold Time 0 ns (Note 1)
15 TDIS Output Disable Time
40
80
160
ns
ns
ns
4.5V Vcc 5.5V (Note 1)
2.5V Vcc 4.5V (Note 1)
1.8V Vcc 2.5V (Note 1)
16 TWC Internal Write Cycle Time 5 ms (Note 3)
17 Endurance 1,000,000 E/W
Cycles
(Note 2)
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.
2011 Microchip Technology Inc. Preliminary DS22280A-page 5
MCP795WXX/MCP795BXX
FIGURE 1-1: SERIAL INPUT TIMING
FIGURE 1-2: SERIAL OUTPUT TIMING
CS
SCK
SI
SO
65
8
711
3
LSB In
MSB In
High-Impedance
12
4
2
10
9
CS
SCK
SO
10
9
13
MSB Out LSB Out
3
15
Don’t Care
SI
14
MCP795WXX/MCP795BXX
DS22280A-page 6 Preliminary 2011 Microchip Technology Inc.
2.0 PIN DESCRIPTION
The descriptions of the pins are listed in Tabl e 2- 1.
FIGURE 2-1: DEVICE PINOUTS
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 initi-
ated 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 power-
up, a low level on CS is required prior to any sequence
being initiated.
2.2 Serial Output (SO)
The SO pin is used to transfer data out of the
MCP795XXX. During a read cycle, data is shifted out
on this pin after the falling edge of the serial clock.
2.3 Watchdog Output (WDO)
This pin is a hardware open drain from the internal
watchdog circuit. This pin requires an external pull-up
to VCC. When a watchdog overflow occurs the onboard
N-Channel will pulse this pin low. The pulse duration is
user selectable (Address 0x0A:4). This pin has a max-
imum sink current of 10mA.
2.4 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.5 Serial Clock (SCK)
The SCK is used to synchronize the communication
between a master and the MCP795XXX. 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.6 Interrupt Output (IRQ)
The IRQ pin is shared with the onboard event detect
and the Alarms. This pin requires an external pull-up to
VCC or VBAT. The onboard N-Channel will pull the pin
low during an event detection or an alarm. The pin
remains low until such time that the interrupt flag in the
register is cleared by software. This pin has a maxi-
mum sink current of 10mA.
2.7 X1, X2
The X1 and X2 pins connect to the onboard oscillator
block. X1 is the input to the module and X2 is the out-
put 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.
2.8 VBAT
The VBAT pin is a secondary supply input to maintain
the Clock and SRAM contents when VCC is removed.
2.9 CLKOUT/BOOT
The CLKOUT is a push-pull output that can be used to
generate a squarewave or is used for the boot-up clock
output at power-up. Please refer to Section 9.1.2,
Clockout Function for more details.
2.10 EVHS and EVLS
The EVHS and EVLS are inputs for the High and Low
Speed Event Detection circuit.
TABLE 2-1: PIN DESCRIPTIONS
X1
X2
V
BAT
WDO
Vcc
CLKOUT/BOOT
EVHS
EVLS
1
2
3
4
14
13
12
11
MCP795XXX
SOIC/TSSOP
IRQ
CS
V
SS
SCK
SI
SO
5
6
7
10
9
8
Pin Name Pin Function
VSS Ground
X1 Xtal Input, External Oscillator Input
X2 Xtal Output
VBAT Battery Backup Input (3V Typ)
VCC +1.8V to +5.5V Power Supply
SI Serial Input
WDO Watchdog Output
SCK Serial Clock
CLKOUT/
BOOT
Clock Out (Boot Clock on
MCP795BXX)
CS Chip Select
IRQ Interrupt Ouput
EVHS High-Speed Event Detect Input
EVLS Low-Speed Event Detect Input
SO Serial Output
2011 Microchip Technology Inc. Preliminary DS22280A-page 7
MCP795WXX/MCP795BXX
2.11 RTCC Memory Map
The RTCC registers are contained in addresses 0x00h-
0x1fh. 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 Configura-
tion registers. All SRAM locations are battery-backed-
up 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 regis-
ters 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.
Addresses 0x08h-0x0Bh are the device Configu-
ration, Calibration, Watchdog Configuration and
Event Detect Configuration registers.
Addresses 0x0ch-0x11h are the Alarm 0 registers.
These are used to set up the Alarm 0, the inter-
rupt pin and the Alarm 0 compare.
Addresses 0x12h-0x17h are the Alarm 1 regis-
ters. 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 Power-
Down 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.
FIGURE 2-2: MEMORY MAP
0x00
0x07
Time and Date
Configuration and Calibration
Alarm 0
Alarm 1
Time-Stamp
SRAM (64 Bytes)
0x09
0x0B
0x0C
0x11
0x12
0x17
0x18
0x1F
0x20
0x5F
0x00
EEPROM
Memory
0x00
0x07
0x08
0x0F
RTCC Register/SRAM EEPROM
Unique ID Location 2
Unique ID Location 1
EUI-48/64
Unique ID
0xFF
Note: 1K EEPROM Max address is 0x7F.
MCP795WXX/MCP795BXX
DS22280A-page 8 Preliminary 2011 Microchip Technology Inc.
3.0 SPI BUS OPERATION
The MCP795XXX 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 soft-
ware to match the SPI protocol.
The MCP795XXX contains an 8-bit instruction register.
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.
TABLE 3-1: INSTRUCTION SET SUMMARY
3.1 Read Sequence
The device is selected by pulling CS low. The various
8-bit read instructions are transmitted to the
MCP795XXX 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
the next address can be read sequentially by continu-
ing 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 oper-
ation is terminated by raising the CS pin (Figure 1-1).
FIGURE 3-1: EEREAD SEQUENCE
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
CLRWDT 0100 0100 Clear Watchdog TImer
CLRRAM 0101 0100 Clear RAM Location to ‘0
SO
SI
SCK
CS
0 2345678910111
01000001A7A6A5A4A1A0
76543210
Data Out
High-Impedance
A3A2
Address Byte
12 13 14 15 16 17 18 19 20 21 22 23
Instruction
2011 Microchip Technology Inc. Preliminary DS22280A-page 9
MCP795WXX/MCP795BXX
3.2 Nonvolatile Memory Write
Sequence
Prior to any attempt to write data to the nonvolatile
memory (EEPROM, Unique ID and STATUS register)
in the MCP795XXX, the write enable latch must be set
by issuing the EEWREN instruction (Figure 3-4). This is
done by setting CS low and then clocking out the
proper instruction into the MCP795XXX. 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 writ-
ten to the array since the write enable latch was not
properly set.
After setting the write enable latch, the user may pro-
ceed 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 writ-
ten. 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. Addi-
tionally, 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
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 non-
volatile memory write is in progress, the STATUS reg-
ister 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.
FIGURE 3-2: BYTE EEWRITE SEQUENCE
FIGURE 3-3: PAGE EEWRITE SEQUENCE
SO
SI
CS
0 2345678910111
00000001 A
6A5A4A1
A3A2
Address Byte
12 13 14 15 16 17 18 19 20 21 22 23
Instruction Data Byte
A06
7543 210
High-Impedance
Twc
SCK
A7
SI
CS
91011
00000001 76543210
Data Byte 1
SCK
0 23456718
SI
CS
33 34 35 38 39
76543210
Data Byte n (8 max)
SCK
24 26 27 28 29 30 3125 32
76543210
Data Byte 3
76543210
Data Byte 2
36 37
Instruction Address Byte
A7A6A5A4A3A1A0
A2
12 13 14 15 16 17 18 19 20 21 22 23
MCP795WXX/MCP795BXX
DS22280A-page 10 Preliminary 2011 Microchip Technology Inc.
3.3 Write Enable (EEWREN) and Write
Disable (EEWRDI)
The MCP795XXX 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.
The following is a list of conditions under which the
write enable latch will be reset:
Power-up
EEWRDI instruction successfully executed
SRWRITE instruction successfully executed
EEWRITE instruction successfully executed
IDWRITE instruction successfully executed
FIGURE 3-4: WRITE ENABLE SEQUENCE (EEWREN)
FIGURE 3-5: WRITE DISABLE SEQUENCE (EEWRDI)
SCK
0 2345671
SI
High-Impedance
SO
CS
010000 01
SCK
0 2345671
SI
High-Impedance
SO
CS
010000 0
0
2011 Microchip Technology Inc. Preliminary DS22280A-page 11
MCP795WXX/MCP795BXX
4.0 RTCC FUNCTIONALITY
4.0.1 RTCC REGISTER MAP
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.
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 imple-
mented addresses read back as ‘0’. No error checking
is provided for any of the RTCC, the user may load
any value.
The RTCC register map is shown in Ta b l e 4 - 1 .
TABLE 4-1: RTCC REGISTER MAP
Address BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 FUNCTION RANGE
Time and Configuration Registers
00h Tenth Seconds Hundredths of Seconds Hundredths of
seconds
00-99
01h ST (CT) 10 Seconds Seconds Seconds 00-59
02h 10 Minutes Minutes Minutes 00-59
03h CALSGN
12/24
10 Hour
AM/PM
10 Hour Hour Hours 1-12 + AM/PM
00 - 23
04h OSCON VBAT VBATEN Day Day 1-7
05h 10 Date Date Date 01-31
06h LP 10 Month Month Month 01-12
07h 10 Year Year Year 00-99
08h OUT SQWE ALM1 ALM0 EXTOSC RS2 RS1 RS0 Control Reg.
09h CALIBRATION Calibration
0Ah WDTEN WDTIF WDDEL WDTPLS WD3 WD2 WD1 WD0 Watchdog
0Bh EVHIF EVLIF EVEN1 EVEN0 EVWDT EVLDB EVHS1 EVHS0 Event Detect
Alarm 0 Registers
0Ch 10 Seconds Seconds Seconds 00-59
0Dh 10 Minutes Minutes Minutes 00-59
0Eh
12/24
10 Hour
AM/PM
10 Hours Hour Hours 1-12 + AM/PM
00-23
0Fh ALM0PIN ALM0C2 ALM0C1 ALM0C0 ALM0IF Day Day 1-7
10h 10 Date Date Date 01-31
11h 10 Month Month Month 01-12
Alarm 1 Registers
12h Tenth Seconds Hundredths of seconds Hundredths
of Seconds
00-99
13h 10 Seconds Seconds Seconds 00-59
14h 10 Minutes Minutes Minutes 00-59
15h
12/24
10 Hour
AM/PM
10 Hours Hour Hours 1-12 + AM/PM
00-23
16h ALM1PIN ALM1C2 ALM1C1 ALM1C0 ALM1IF Day Day 1-7
17h 10 Date Date Date 01-31
Power-down Time-stamp Registers
18h 10 Minutes Minutes
19h
12/24
10 Hour
AM/PM
10 Hours Hour
1Ah 10 Date Date
1Bh Day 10 Month Month
Power-Up Time-stamp Registers
1Ch 10 Minutes Minutes
1Dh
12/24
10 Hour
AM/PM
10 Hours Hour
1Eh 10 Date Date
1Fh Day 10 Month Month
MCP795WXX/MCP795BXX
DS22280A-page 12 Preliminary 2011 Microchip Technology Inc.
5.0 TIME AND CONFIGURATION REGISTERS
REGISTER 5-1: HUNDREDTHS OF SECONDS 0X00
REGISTER 5-2: SECONDS 0X01
REGISTER 5-3: MINUTES 0X02
RW RW
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
bit 3-0 Hundredths of Seconds
Note: Contains the BCD Tens and Hundredths of seconds
RW RW RW
ST (CT) 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 ST (CT)
Setting this bit 1’ starts the oscillator and clearing this bit0’ stops the on-board oscillator. For the
MCP795BXX devices the ST bit is replaced by the CT bit. Setting this bit starts the timekeeping registers
counting.
bit 6-4 10 Seconds
bit 3-0 Seconds
Note: Contains the BCD seconds and 10 seconds. The range is 00 to 59.
URW RW
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
bit 6-4 10 Minutes
bit 3-0 Minutes
Note: Contains the BCD minutes and 10 minutes. The range is 00 to 59.
2011 Microchip Technology Inc. Preliminary DS22280A-page 13
MCP795WXX/MCP795BXX
REGISTER 5-4: HOUR 0X03
REGISTER 5-5: DAY 0X04
RW RW RW RW RW
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 W = Writable Bit U = Unimplemented bit, Read as ‘0’
bit 7 CALSGN
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 bit1’ enables 12-hour format.
bit 5 10 Hour (AM/PM bit for 12-hour time)
bit 4 10 Hour
bit 3-0 Hour
Note: 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.
UURRWRW RW
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 bit, read as ‘0
bit 5 Bit 5 is the OSCON bit. This 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 fre-
quency. The bit will wait 32 oscillator cycles before the bit is set.
bit 4 Bit 4 is the VBAT 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 Bit 3 is the VBATEN 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.
bit 2-0 Day
Note: Contains the BCD day. The range is 1-7. Also, additional bits are used for configuration and Status.
MCP795WXX/MCP795BXX
DS22280A-page 14 Preliminary 2011 Microchip Technology Inc.
REGISTER 5-6: DATE 0X05
REGISTER 5-7: MONTH 0X06
REGISTER 5-8: YEAR 0X07
UU RW RW
10 Date Date
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-6 Unimplemented bit, read as ‘0’
bit 5-4 10 Date
bit 3-0 Date
Note: Contains the BCD Date and 10 Date. The range is 01-31.
UURRW RW
LP 10 Month Month
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-6 Unimplemented bit, read as ‘0’
bit 5 Bit 5 is the Leap Year bit, this is set during a leap year and is read-only.
bit 4 10 Month
bit 3-0 Month
Note: Contains the BCD month. Bit 4 contains the 10 month.
RW RW
10 Year Year
bit 7 bit 4 bit 3 bit 0
Legend: R = Readable Bit W = Writable Bit U = Unimplemented bit, Read as ‘0’
bit 7-4 10 Year
bit 3-0 Year
Note: Contains the BCD Year and 10 Year. The Range is 00-99.
2011 Microchip Technology Inc. Preliminary DS22280A-page 15
MCP795WXX/MCP795BXX
REGISTER 5-9: CONTROL REG 0X08
REGISTER 5-10: CALIBRATION 0X09
RW RW RW RW RW RW RW RW
OUT SQWE ALM1 ALM0 EXTOSC RS2 RS1 RS0
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’
bit 7 Bit 7 is the OUT bit, this sets the logic level on the CLKOUT when not using this as a square wave output.
bit 6 Bit 6 is the SQWE bit, setting this bit enables the divided output from the crystal oscillator.
bit 5:4 ALM1 Bits <5:4> 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 Bit 3 is the EXTOSC 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 RS2 Bits <2:0> set the internal divider for the 32.768 kHz oscillator to be driven to the CLKOUT. The fol-
lowing 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 CLKOUT if SQWE is set (1 Hz nominal).
Note: When RS2 is set to enable the Cal Output function, the RTCC counters will continue to increment.
RW
CALIBRATION
bit 7 bit 0
Legend: R = Readable Bit W = Writable Bit U = Unimplemented bit, Read as ‘0’
bit 7-0 Calibration Value
Note: 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.
MCP795WXX/MCP795BXX
DS22280A-page 16 Preliminary 2011 Microchip Technology Inc.
REGISTER 5-11: WATCHDOG 0X0A
RW RW RW RW RW RW RW RW
WDTEN WDTIF WDDEL WDTPLS WD3 WD2 WD1 WD0
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’
bit 7 Bit 7 is a read/write bit that is set by the user and can be cleared by the user of the hardware. This bit is
set to enable the WDT function and cleared to disable the function. This bit is cleared by the hardware
when the VCC supply is not present, it is not set again when VCC is present.
bit 6 Bit 6 is a read/write bit that is set in hardware when the WDT times out and the WD pin is asserted. This
bit must be cleared in software to restart the WDT.
bit 5 Bit 5 is a read/write bit and is set to enable a 64-second delay before the WDT starts to count. If this bit is
set and the WDTIF bit is cleared then there will be a 64 second delay before the WDT starts to count. This
bit should be set before the WDTEN bit is set.
bit 4 Bit 4 is a read/write bit that is used to select the pulse width on the WD pin when the WDT times out.
- 0 – 122 us Pulse
- 1 – 125 ms Pulse
bit 3:0 Bits <3:0> are read/write bits that are used to set the WDT time-out period as below (all times are based
off the uncalibrated crystal reference). Bit 3 should be cleared and is reserved for future use:
- 000 – 977 us
- 001 – 15.6 ms
- 010 – 62.5 ms
- 011 – 125 ms
- 100 – 1s
- 101 – 16s
- 110 – 32s
- 111 – 64s
Note: Please see Section 9.1.3, Watchdog Timer for more information.
2011 Microchip Technology Inc. Preliminary DS22280A-page 17
MCP795WXX/MCP795BXX
REGISTER 5-12: EVENT DETECT 0X0B
RW RW RW RW RW RW RW RW
EVHIF EVLIF EVEN1 EVEN0 EVWDT EVLDB EVHS1 EVHS0
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’
bit 7 When the configured number of high speed events has occurred the IRQ pin is asserted and the EVHIF
bit is set in hardware. The clear the IRQ pin and reset the EVHIF bit must be cleared in software.
bit 6 When an event occurs on the low-speed pin this IRQ pin is asserted and the EVLIF bit is set. This bit must
be cleared by software to reset the module and clear the IRQ pin.
bit 5:4 <1:0> These two bits determine what combination of the high and low-speed modules are enabled.
- 00 – Both modules are Off
- 01 – Low-speed module enabled, high speed disabled
- 10 – Low-speed module disabled, high speed enabled
- 11 – Both modules are enabled
bit 3 Setting this bit overrides any setting for the High-Speed Event Detection and allows the EVHS pin to clear
the Watchdog Timer. This is edge triggered. Either and H-L or L-H transition will clear the WDT.
bit 2 This is the Low-Speed Event Debounce setting. Depending on the state of this bit the low-speed pin will
have to remain at the same state for the following periods to be considered valid.
- 0 – 31.25 ms
- 1 – 500 ms
bit 1:0 EVHS <1:0> These bits determine how many high-speed events must occur before the EVHIF bit is set.
All of these events must occur within 250 ms (based on the uncalibrated 32.768 kHz clock).
- 00 – 1st Event
- 01 – 4th Event
- 10 – 16th Event
- 11 – 32nd Event
Note: Please see Section 9.1.4, Event Detection for more information.
MCP795WXX/MCP795BXX
DS22280A-page 18 Preliminary 2011 Microchip Technology Inc.
6.0 ALARM 0 REGISTERS
REGISTER 6-1: SECONDS 0X0C
REGISTER 6-2: MINUTES 0X0D
REGISTER 6-3: HOURS 0X0E
RW RW RW
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
bit 6-4 10 Seconds
bit 3-0 Seconds
Note: This contains the seconds match for the Alarm 0.
RW RW RW
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
bit 6-4 10 Minutes
bit 3-0 Minutes
Note: This contains the minutes match for the Alarm 0.
RW RW RW
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 W = Writable Bit U = Unimplemented bit, Read as ‘0’
bit 7 Unimplemented
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 Hour
2011 Microchip Technology Inc. Preliminary DS22280A-page 19
MCP795WXX/MCP795BXX
REGISTER 6-4: DAY 0X0F
REGISTER 6-5: DATE 0X10
RW RW RW RW
ALM0PIN ALM0C2 ALM0C1 ALM0C0 ALM0IF Day
bit 7 bit6 bit 4 bit 3 bit 2 bit 0
Legend: R = Readable Bit W = Writable Bit U = Unimplemented bit, Read as ‘0’
bit 7 Bit 7 configures the pin that is used for the Alarm 0 output. If this bit is clear the IRQ pin is used. If set, the
WDO pin is used. If the WDT is enabled then a valid Alarm will assert the WDO pin for 122 us.
BIT 6:4 Bits <6:4> 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 Bit 3 is the ALM0IF bit. This is set by hardware when an alarm condition has be generated. The bit must
be cleared in software.
bit 2-0 Day
U U RW RW RW
10 Date Date
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-6 Unimplemented
bit 5-4 10 Date
bit 3-0 Date
MCP795WXX/MCP795BXX
DS22280A-page 20 Preliminary 2011 Microchip Technology Inc.
REGISTER 6-6: MONTH 0X11
UUURW RW
10 Month Month
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-5 Unimplemented
bit 4 10 Month
bit 3-0 Month
Note: Month match is only available on Alarm 0.
2011 Microchip Technology Inc. Preliminary DS22280A-page 21
MCP795WXX/MCP795BXX
7.0 ALARM 1 REGISTERS
REGISTER 7-1: HUNDREDTHS OF SECONDS 0X12
REGISTER 7-2: SECONDS 0X13
REGISTER 7-3: MINUTES 0X14
RW RW
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
bit 3-0 Hundredths of Seconds
Note: Hundredths and Tenth seconds only available on Alarm 1.
URW RW
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
bit 6-4 10 Seconds
bit 3-0 Seconds
URW RW
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
bit 6-4 10 Minutes
bit 3-0 Minutes
MCP795WXX/MCP795BXX
DS22280A-page 22 Preliminary 2011 Microchip Technology Inc.
REGISTER 7-4: HOURS 0X15
REGISTER 7-5: DAY 0X16
U RWRWRW RW
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 W = Writable Bit U = Unimplemented bit, Read as ‘0’
bit 7 Unimplemented
bit 6 12/24
bit 5 10 Hour AM/PM
bit 4 10 Hour
bit 3-0 Hour
RW RW RW RW RW RW
ALM1PIN ALM1C2 ALM1C1 ALM1C0 ALM1IF 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 Bit 7 configures the pin that is used for the Alarm 0 output. If this bit is clear the IRQ pin is used. If set, the
WDO pin is used. If the WDT is enabled then a valid Alarm will assert the WDO pin for 122 us.
BIT 6:4 Bits <6:4> 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 – Hundredths/Tenth of Seconds
110 – Unimplemented do not use
111 – Seconds, Minutes, Hour, Day and Date
bit 3 Bit 3 is the ALM1IF bit. This is set by hardware when an alarm condition has be generated. The bit must
be cleared in software.
bit 2-0 Day
2011 Microchip Technology Inc. Preliminary DS22280A-page 23
MCP795WXX/MCP795BXX
REGISTER 7-6: DATE 0X17
UU RW RW
10 Date Date
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-6 Unimplemented
bit 5-4 10 Date
bit 3-0 Date
MCP795WXX/MCP795BXX
DS22280A-page 24 Preliminary 2011 Microchip Technology Inc.
8.0 POWER-DOWN TIME-STAMP REGISTERS
REGISTER 8-1: MINUTES 0X18
REGISTER 8-2: HOUR 0X19
REGISTER 8-3: DATE 0X1A
Note: It is strongly recommended that the timesaver function only be used when the oscillator is running. This
will ensure accurate functionality.
URW RW
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
bit 6-4 10 Minutes
bit 3-0 Minutes
U RWRWRW RW
12/24 10 Hour
AM/PM
10 Hours Hour
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 Unimplemented
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
U U RW RW RW
10 Date Date
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-6 Unimplemented
bit 5-4 10 Date
bit 3-0 Date
2011 Microchip Technology Inc. Preliminary DS22280A-page 25
MCP795WXX/MCP795BXX
REGISTER 8-4: MONTH 0X1B
RW RW RW RW RW
Day 10 Month Month
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-5 Day
bit 4 10 Month
bit 3-0 Month
MCP795WXX/MCP795BXX
DS22280A-page 26 Preliminary 2011 Microchip Technology Inc.
9.0 POWER-UP TIME REGISTERS
REGISTER 9-1: MINUTES 0X1C
REGISTER 9-2: HOUR 0X1D
Note: It is strongly recommended that the timesaver function only be used when the oscillator is running. This
will ensure accurate functionality.
URW RW
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
bit 6-4 10 Minutes
bit 3-0 Minutes
U RWRWRW RW
12/24 10 Hour
AM/PM
10 Hours Hour
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 Unimplemented
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
2011 Microchip Technology Inc. Preliminary DS22280A-page 27
MCP795WXX/MCP795BXX
REGISTER 9-3: DATE 0X1E
REGISTER 9-4: MONTH 0X1F
U U RW RW RW
10 Date Date
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-6 Unimplemented
bit 5-4 10 Date
bit 3-0 Date
RW RW RW RW RW
Day 10 Month Month
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-5 Day
bit 4 10 Month
bit 3-0 Month
MCP795WXX/MCP795BXX
DS22280A-page 28 Preliminary 2011 Microchip Technology Inc.
9.1 Features
9.1.1 CALIBRATION
The Calibration register (0x09h) allows a number of
RTCC counts to be added or subtracted (Cal Sign 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 CALSIGN 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 MCP795XXX 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 MCP795XXX.
The CALSGN bit is the 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 CLKOUT output pin by setting bit 6 (SQWE) and
bits <2:0> (RS2, RS1, RS0) of the Control register at
address 07H. Note that the CLKOUT output waveform
is disabled when the MCP795XXX 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 MCP795XXX:
A. 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 CLKOUT pin:
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:
With regards to the calibration function, the Calibration
register setting has no impact upon the CLKOUT
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 CLKOUT 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:
Since the calibration is done once per minute (i.e.
when the internal minute counter is incremented), only
one cycle in sixty of the CLKOUT output waveform is
affected by the calibration setting. Also note that the
duty cycle of the CLKOUT 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 CLKOUT output pin will be “delayed”,
once per minute, by twice the number of input clock
cycles defined in the Calibration register. The CLKOUT
waveform will appear as shown in Figure 9-1.
RS2 RS1 RS0 Output Signal
000 1 Hz
001 4.096 kHz
010 8.192 kHz
011 32.768 kHz
RS2 RS1 RS0 Output Signal
000 32768
001 8
010 4
011 1
Toutput =(32768 +/- (2 * CALREG)) Tinput
where:
Toutput = clock period of CLKOUT output
signal
Tinput = clock period of input signal
CALREG = decimal value of calibration
register setting and the sign is
determined by the CALSGN bit.
2011 Microchip Technology Inc. Preliminary DS22280A-page 29
MCP795WXX/MCP795BXX
In the case where the MSB of the Calibration register
is set to ‘1’, the CLKOUT 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 CLKOUT output pin.
B.RS2 bit set to ‘1
With the RS2 bit set to ‘1’, the following internal timing
signal is output on the CLKOUT pin:
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:
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:
Since the calibration is done every cycle, the frequency
of the output CLKOUT waveform is constant.
FIGURE 9-1: CLKOUT WAVEFORM
RS2 RS1 RS0 Output Signal
1xx 1.0 Hz
RS2 RS1 RS0 Output Signal
1xx 32768
Toutput = (32768 +/- (2 * CALREG)) Tinput
where:
Toutput = clock period of CLKOUT output
signal
Tinput = clock period of input signal
CALREG = decimal value of calibration
register setting and the sign is
determined by the CALSGN bit.
Delay
MCP795WXX/MCP795BXX
DS22280A-page 30 Preliminary 2011 Microchip Technology Inc.
9.1.2 CLOCKOUT FUNCTION
The MCP795W20 features a push-pull pin CLKOUT
that can supply a digital signal based on a division of
the main 32.768 kHz clock. If this function is not used
the pin may be directly controlled using the OUT bit in
the Control register (0x08). In VBAT mode, CLKOUT is
logic low. In VDD POR condition, the CLKOUT is tri-
stated. For the MCP795BXX devices, this pin functions
as a Power-up Boot clock. A 32.768 kHz clock is
enabled upon application of VCC.
9.1.3 WATCHDOG TIMER
The on-board Watchdog Timer is configured by loading
the register at address 0x0A. The WDT is not available
when the MCP795XXX is operating from the VBAT sup-
ply. When in this condition, the WDT is disabled by the
hardware and must be re-enabled when VCC is
restored. The output of the WDT is based on the un-
calibrated 32.768 kHz oscillator.
Description of WDT Bits:
Bit 7 is a read/write bit that is set and cleared by
software. This bit is set to enable the WDT func-
tion and cleared to disable the function. A VCC
power fail will cause this bit to be cleared and not
re-enabled when VCC is restored.
Bit 6 is a read/write bit that is set in hardware
when the WDT times out and the WDO pin is
asserted. This bit must be cleared in software to
restart the WDT.
Bit 5 is a read/write bit and is set to enable a 64-
second delay before the WDT starts to count. If
this bit is set and the WDTIF bit is cleared then
there will be a 64-second delay before the WDT
starts to count. This bit should be set before the
WDTEN bit is set.
Bit 4 is a read/write bit that is used to select the
pulse width on the WDO pin when the WDT times
out.
-0 – 122 us Pulse
-1 – 125 ms Pulse
Bits <3:0> are read/write bits that are used to set
the WDT time-out period as below (all times are
based off the uncalibrated crystal reference). Bit 3
should be cleared and is reserved for future use:
-000 – 977 us
-001– 15.6 ms
-010 – 62.5 ms
-011 – 125 ms
-100 – 1s
-101 – 16s
-110 – 32s
-111 – 64s
To reset the WDT the CLRWDT instruction must be
issued over the SPI interface, as shown in Figure 9-7.
If the WDT is not cleared with the CLRWDT command
before time-out then the WDO pin will assert and the
WDTIF bit will be set. The WDTIF bit must be cleared
by software to restart the WDT.
9.1.4 EVENT DETECTION
The on-chip event detection consists of two separate
detection circuits.
The high-speed circuit is designed to operate with a
digital signal from the output of an external signal con-
ditioning circuit. The input is edge triggered, and will
generate an interrupt when the correct number of
events has occurred.
The low-speed circuit is designed to operate directly
with mechanical switches and support built-in switch
debounce.
Registers associated with the event detection module:
EVHIF – When the configured number of high
speed events has occurred the IRQ pin is
asserted and the EVHIF bit is set. This bit must be
cleared by software to reset the module and clear
the IRQ pin.
EVLIF – When an event occurs on the low-speed
pin this IRQ pin is asserted and the EVLIF bit is
set. This bit must be cleared by software to reset
the module and clear the IRQ pin.
EVEN<1:0> – These two bits determine what
combination of the high and low-speed modules
are enabled.
-00 – Both modules are off
-01 – Only low-speed module enabled
-10 – Only high-speed module disabled
-11 – Both modules are enabled
EVWDT – setting this bit overrides any setting for
the High-Speed Event Detection and allows the
EVHS pin to clear the Watchdog Timer. This is
edge triggered. Either H-L or L-H transition will
clear the WDT.
EVLDB – This is the low-speed event debounce
setting. Depending on the state of this bit the low-
speed pin will have to remain at the same state for
the following periods to be considered valid.
-0 – 31.25 ms
-1 – 500 ms
2011 Microchip Technology Inc. Preliminary DS22280A-page 31
MCP795WXX/MCP795BXX
The debounce will only operate if the clock is running
and these timings are based on the uncalibrated
32.768 kHz clock.
EVHS<1:0> – These bits determine how many
high-speed events must occur before the EVHIF
bit is set. All of these events must occur within
250 ms.
-00 – 1st Event
-01 – 4th Event
-10 – 16th Event
-11 – 32nd Event
9.1.5 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.
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:
For more information on VBAT conditions see the RTCC
Best Practices Application Note, AN1365 (DS01365).
9.1.6 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. Loca-
tions 0x08-0x0F are blank (0x0F).
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.
FIGURE 9-2: IDREAD COMMAND SEQUENCE
To write to the unique ID locations, the IDWRITE com-
mand is used. The device must be write enabled and
the correct unlock sequence must have been per-
formed. See Section 10.1.4, Write to the Unlock
Register for more details.
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.
TABLE 9-1: VBAT CHANGOVER
CONDITIONS
Supply
Condition
Read/Write
Access
Powered
By
VCC < VTRIP, VCC < VBAT No VBAT
VCC > VTRIP, VCC < VBAT Yes VCC
VCC > VTRIP, VCC > VBAT Yes VCC
Note: For EUI-64, the data is located in address
0x00-0x07. For EUI-48 locations, 0x02-
0x07 contain the data. 0x00/01 contain
0xFF.
SO
SI
SCK
CS
0 23456789101112131415161718192021221
010110010000
10
76543210
Instruction Address Byte
Data Out
High-Impedance
23
32 Don’t Care
Address range is 0x00-0x0F, address counter will wrap within this range.
MCP795WXX/MCP795BXX
DS22280A-page 32 Preliminary 2011 Microchip Technology Inc.
FIGURE 9-3: IDWRITE COMMAND SEQUENCE
SI
CS
91011 1415161718192021222324
0001100 1 000021076543210
Instruction Address Byte Data Byte 1
SCK
0 23456718
SI
CS
34 35 36 39 40
76543210
Data Byte n (8 max)
SCK
25 27 28 29 30 31 3226 33
76543210
Data Byte 3
76543210
Data Byte 2
37 38
3
13
2011 Microchip Technology Inc. Preliminary DS22280A-page 33
MCP795WXX/MCP795BXX
9.1.7 POWER-FAIL TIME-STAMP
The MCP795XXX 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 run-
ning. There are two separate sets of registers that are
used to record this information:
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.
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.
FIGURE 9-4: POWER-FAIL GRAPH
9.1.8 READ STATUS REGISTER
(SRREAD)
The Read Status Register (SRREAD) instruction pro-
vides 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:
*
The Write-In-Process (WIP) bit indicates whether the
MCP795XXX 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 sta-
tus 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
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: It is strongly recommended that the time-
saver function only be used when the
oscillator is running. This will ensure accu-
rate functionality
VCC
VTRIP(max)
VTRIP(min)
VCCFT
VCCRT
Power-Down
Time-Stamp
Power-Up
Time-Stamp
7 654 3 2 1 0
———R/W R/W R R
X XXXBP1 BP0WELWIP
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).
MCP795WXX/MCP795BXX
DS22280A-page 34 Preliminary 2011 Microchip Technology Inc.
FIGURE 9-5: READ STATUS REGISTER TIMING SEQUENCE
SO
SI
CS
91011 12131415
11000000
7654 2 10
Instruction
Data from STATUS Register
High-Impedance
SCK
0 23456718
3
* Data should be able to continuously be read from the STATUS register without toggling CS, for updating of
the WIP and WEL bits.
2011 Microchip Technology Inc. Preliminary DS22280A-page 35
MCP795WXX/MCP795BXX
9.1.9 WRITE STATUS REGISTER
(SRWRITE)
The Write Status Register (SRWRITE) instruction
allows the user to select one of four levels of protec-
tion 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
FIGURE 9-6: WRITE STATUS REGISTER TIMING SEQUENCE
BP1 BP0
Array Addresses
Write-Protected
(2 kbit shown)
00 none
01 upper 1/4
(C0h-FFh)
10 upper 1/2
(80h-FFh)
11 all
(00h-FFh)
SO
SI
CS
91011 12131415
01000000
7654 210
Instruction Data to STATUS Register
High-Impedance
SCK
0 23456718
3
TWC
MCP795WXX/MCP795BXX
DS22280A-page 36 Preliminary 2011 Microchip Technology Inc.
9.1.10 DATA PROTECTION
The following protection has been implemented to pre-
vent 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
Access to the array during an internal EEPROM
write cycle is ignored and programming is contin-
ued
Block protect bits are ignored for UID writes
9.1.11 CLEAR WATCHDOG INSTRUCTION
The Clear Watchdog command resets the internal
Watchdog Timer.
FIGURE 9-7: CLRWDT
9.1.12 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.
FIGURE 9-8: CLRRAM
SCK
0 2345671
SI
High-Impedance
SO
011000 00
CS
SO
SI
SCK
CS
0 234567891011121314151
1001010 A7 6 5 4 1A0
Instruction Data
High-Impedance
32
0
2011 Microchip Technology Inc. Preliminary DS22280A-page 37
MCP795WXX/MCP795BXX
9.2 Crystal Specification and
Selection
The MCP795XXX 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 suit-
able for use with the MCP795XXX.
The table below is given as design guidance and a
starting point for crystal and capacitor selection.
EQUATION 9-1:
The following must also be taken into consideration:
Pin capacitance (to be included in Cx2 and Cx1)
Stray Board Capacitance
The recommended board layout for the oscillator area
is shown in Figure 9-9. 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.
When calculating the effective load capacitance,
Equation 9-1 can be used.
FIGURE 9-9: 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).
Manufacturer Part Number Crystal
Capacitance 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.
Cload
CX2 CX1
CX2 CX1+
----------------------------- C stray
+=
MCP795WXX/MCP795BXX
DS22280A-page 38 Preliminary 2011 Microchip Technology Inc.
10.0 ON-BOARD MEMORY
The MCP795XXX has both on-board EEPROM mem-
ory and battery-backed SRAM. The SRAM is arranged
as 64 x 8 bytes and is retained when VCC supply is
removed. The EEPROM is organized as 256/128 x 8
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.
Upon power-up the SRAM locations are in an unde-
fined state but can be set to a known value using the
CLRRAM instruction (Figure 9-8).
10.1.1 SRAM/RTCC OPERATION
The MCP795XXX contains a Real-Time Clock and Cal-
endar. The RTCC registers and SRAM array are
accessed using the same commands. The RTCC reg-
isters 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.
Table 1-2 contains a list of the possible instruction
bytes and format for device operation.
10.1.2 READ SEQUENCE
The part is selected by pulling CS low. The 8-bit READ
instruction is transmitted to the MCP795W20 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 pro-
vide clock pulses. The internal Address Pointer is auto-
matically incremented to the next higher address after
each byte of data is shifted out.
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 regis-
ters. 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).
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 con-
tents can be written in a single command.
For the last data byte to be written to the RTCC regis-
ters 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
SO
SI
SCK
CS
0 23456789101112131415161718192021221
01010001A7 6 5 4 1A0
76543210
Instruction Address Byte
Data Out
High-Impedance
23
32 Don’t Care
The address will rollover to the start of either the RTCC registers or SRAM array.
2011 Microchip Technology Inc. Preliminary DS22280A-page 39
MCP795WXX/MCP795BXX
FIGURE 10-2: WRITE SEQUENCE
10.1.4 WRITE TO THE UNLOCK REGISTER
The MCP795XXX 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 com-
mand by issuing the correct command. A write to a dif-
ferent location will lock the ID locations and clear the
WEL bit.
The following is a list of strict conditions which have to
be followed before the unique locations can be written
to:
EEWREN instruction successfully executed
UNLOCK 0x55 instruction successfully executed
UNLOCK 0xAA instruction successfully executed
To issue each Unlock instruction the UNLOCK com-
mand 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 com-
mand.
Information on how to read and write the ID locations
is detailed in Section 9.1.6, Unique ID Locations.
FIGURE 10-3: UNLOCK SEQUENCE
SO
SI
SCK
CS
0 23456789101112131415161718192021221
0001000 A7 6 5 4 1A076543210
Instruction Address Byte Data Byte
High-Impedance
23
32
1
SO
SI
SCK
CS
0 234567891011121314151
1001000 7654 10
Instruction Data
High-Impedance
32
0
MCP795WXX/MCP795BXX
DS22280A-page 40 Preliminary 2011 Microchip Technology Inc.
11.0 PACKAGING INFORMATION
11.1 Package Marking Information
Part Number
1st Line Marking Codes
SOIC TSSOP
MCP795W20 MCP795W20 795W20T
MCP795W10 MCP795W10 795W10T
MCP795W21 MCP795W21 795W21T
MCP795W11 MCP795W11 795W11T
MCP795W22 MCP795W22 795W22T
MCP795W12 MCP795W12 795W12T
MCP795B20 MCP795B20 795B20T
MCP795B10 MCP795B10 795B10T
MCP795B21 MCP795B21 795B21T
MCP795B11 MCP795B11 795B11T
MCP795B22 MCP795B22 795B22T
MCP795B12 MCP795B12 795B12T
Note: T = Temperature grade
NN = Alphanumeric traceability code
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
Pb-free JEDEC designator for Matte Tin (Sn)
*This package is Pb-free. The Pb-free JEDEC designator ( )
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.
3
e
14-Lead SOIC (.150”)
XXXXXXXXXXX
XXXXXXXXXXX
YYWWNNN
Example
MCP795W20
-I/SL
1144017
14-Lead TSSOP
XXXXXXXX
YYWW
NNN
Example
795W20T
1144
017
2011 Microchip Technology Inc. Preliminary DS22280A-page 41
MCP795WXX/MCP795BXX
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
MCP795WXX/MCP795BXX
DS22280A-page 42 Preliminary 2011 Microchip Technology Inc.
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
2011 Microchip Technology Inc. Preliminary DS22280A-page 43
MCP795WXX/MCP795BXX
 

MCP795WXX/MCP795BXX
DS22280A-page 44 Preliminary 2011 Microchip Technology Inc.
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
2011 Microchip Technology Inc. Preliminary DS22280A-page 45
MCP795WXX/MCP795BXX
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
MCP795WXX/MCP795BXX
DS22280A-page 46 Preliminary 2011 Microchip Technology Inc.
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
2011 Microchip Technology Inc. Preliminary DS22280A-page 47
MCP795WXX/MCP795BXX
APPENDIX A: REVISION HISTORY
Revision A (11/2011)
Initial Release.
MCP795WXX/MCP795BXX
DS22280A-page 48 Preliminary 2011 Microchip Technology Inc.
NOTES:
2011 Microchip Technology Inc. Preliminary DS22280A-page 49
MCP795WXX/MCP795BXX
THE MICROCHIP WEB SITE
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:
Product Support – Data sheets and errata,
application notes and sample programs, design
resources, users 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
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 instructions.
CUSTOMER SUPPORT
Users of Microchip products can receive assistance
through several channels:
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
MCP795WXX/MCP795BXX
DS22280A-page 50 Preliminary 2011 Microchip Technology Inc.
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: (_______) _________ - _________
Application (optional):
Would you like a reply? Y N
Device: Literature Number:
Questions:
FAX: (______) _________ - _________
DS22280AMCP795WXX/MCP795BXX
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?
2011 Microchip Technology Inc. Preliminary DS22280A-page 51
MCP795WXX/MCP795BXX
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 I/SN
PackageTemp
Range
Base Part
Base Part No.: MCP794 = I2C™ RTCC
MCP795 = SPI RTCC
Additional
Features:
Blank = None
W = Watchdog Timer, 2 Event Detects
B = 32 kHz Boot-up Clock, Watchdog Timer, 2 Event
Detects
Memory: 0 = 64 Bytes SRAM
1 = 1 Kbit EE, 64 Bytes SRAM
2 = 2 Kbits EE, 64 Bytes SRAM
ID/MAC Address: 0=Blank
1 = EUI-48™ MAC Address
2 = EUI-64™ MAC Address
T/R: Blank = Tube
T = Tape and Reel
Temperature
Range:
I=-40C to +85C
Package: SL = 14-Pin SOIC
ST = 14-Pin TSSOP
Examples:
a) MCP795W20-I/SL: 2K EEPROM, Blank ID,
Industrial Temperature, SOIC Package
b) MCP795W10-I/ST: 1K EEPROM, Blank ID,
Industrial Temperature, TSSOP Package
c) MCP795W21-I/SL: 2K EEPROM, EUI-48™,
Industrial Temperature, SOIC Package
d) MCP795W22-I/ST: 2K EEPROM, EUI-64™,
Industrial Temperature, TSSOP Package
e) MCP795B20-I/SL: Boot Clock, 2K EEPROM,
Blank ID, Industrial Temperature, SOIC
Package
f) MCP795B10-I/ST: Boot Clock, 1K EEPROM,
Blank ID, Industrial Temperature, TSSOP
Package
Note 1: All devices include a Watchdog Timer
and two Event Detects.
W
Additional
Features
1
Memory
0
Unique
T
T/R
ID
MCP795WXX/MCP795BXX
DS22280A-page 52 Preliminary 2011 Microchip Technology Inc.
NOTES:
2011 Microchip Technology Inc. Preliminary DS22280A-page 53
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.
© 2011, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 978-1-61341-780-5
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.
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.
DS22280A-page 54 Preliminary 2011 Microchip Technology Inc.
AMERICAS
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
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
ASIA/PACIFIC
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
Australia - Sydney
Tel: 61-2-9868-6733
Fax: 61-2-9868-6755
China - Beijing
Tel: 86-10-8569-7000
Fax: 86-10-8528-2104
China - Chengdu
Tel: 86-28-8665-5511
Fax: 86-28-8665-7889
China - Chongqing
Tel: 86-23-8980-9588
Fax: 86-23-8980-9500
China - Hangzhou
Tel: 86-571-2819-3187
Fax: 86-571-2819-3189
China - Hong Kong SAR
Tel: 852-2401-1200
Fax: 852-2401-3431
China - Nanjing
Tel: 86-25-8473-2460
Fax: 86-25-8473-2470
China - Qingdao
Tel: 86-532-8502-7355
Fax: 86-532-8502-7205
China - Shanghai
Tel: 86-21-5407-5533
Fax: 86-21-5407-5066
China - Shenyang
Tel: 86-24-2334-2829
Fax: 86-24-2334-2393
China - Shenzhen
Tel: 86-755-8203-2660
Fax: 86-755-8203-1760
China - Wuhan
Tel: 86-27-5980-5300
Fax: 86-27-5980-5118
China - Xian
Tel: 86-29-8833-7252
Fax: 86-29-8833-7256
China - Xiamen
Tel: 86-592-2388138
Fax: 86-592-2388130
China - Zhuhai
Tel: 86-756-3210040
Fax: 86-756-3210049
ASIA/PACIFIC
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
India - Pune
Tel: 91-20-2566-1512
Fax: 91-20-2566-1513
Japan - Yokohama
Tel: 81-45-471- 6166
Fax: 81-45-471-6122
Korea - Daegu
Tel: 82-53-744-4301
Fax: 82-53-744-4302
Korea - Seoul
Tel: 82-2-554-7200
Fax: 82-2-558-5932 or
82-2-558-5934
Malaysia - Kuala Lumpur
Tel: 60-3-6201-9857
Fax: 60-3-6201-9859
Malaysia - Penang
Tel: 60-4-227-8870
Fax: 60-4-227-4068
Philippines - Manila
Tel: 63-2-634-9065
Fax: 63-2-634-9069
Singapore
Tel: 65-6334-8870
Fax: 65-6334-8850
Taiwan - Hsin Chu
Tel: 886-3-5778-366
Fax: 886-3-5770-955
Taiwan - Kaohsiung
Tel: 886-7-536-4818
Fax: 886-7-330-9305
Taiwan - Taipei
Tel: 886-2-2500-6610
Fax: 886-2-2508-0102
Thailand - Bangkok
Tel: 66-2-694-1351
Fax: 66-2-694-1350
EUROPE
Austria - Wels
Tel: 43-7242-2244-39
Fax: 43-7242-2244-393
Denmark - Copenhagen
Tel: 45-4450-2828
Fax: 45-4485-2829
France - Paris
Tel: 33-1-69-53-63-20
Fax: 33-1-69-30-90-79
Germany - Munich
Tel: 49-89-627-144-0
Fax: 49-89-627-144-44
Italy - Milan
Tel: 39-0331-742611
Fax: 39-0331-466781
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
Worldwide Sales and Service
08/02/11