Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

MCP79401 Datasheet(PDF) 30 Page - Microchip Technology

Part # MCP79401
Description  Battery-Backed I2C Real-Time Clock/Calendar with SRAM and Protected EEPROM
PDF  62 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

MCP79401 Datasheet(HTML) 30 Page - Microchip Technology

Back Button MCP79401 Datasheet HTML 26Page - Microchip Technology MCP79401 Datasheet HTML 27Page - Microchip Technology MCP79401 Datasheet HTML 28Page - Microchip Technology MCP79401 Datasheet HTML 29Page - Microchip Technology MCP79401 Datasheet HTML 30Page - Microchip Technology MCP79401 Datasheet HTML 31Page - Microchip Technology MCP79401 Datasheet HTML 32Page - Microchip Technology MCP79401 Datasheet HTML 33Page - Microchip Technology MCP79401 Datasheet HTML 34Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 30 / 62 page
background image
MCP79400/MCP79401/MCP79402
DS20005009F-page 30
 2011-2016 Microchip Technology Inc.
5.6.1
CALIBRATION
In order to perform calibration, the number of error
clock pulses per minute must be found and the
corresponding trim value must be loaded into
TRIMVAL<6:0>.
There are two methods for determining the trim value.
The first method involves measuring an output
frequency directly and calculating the deviation from
ideal. The second method involves observing the
number of seconds gained or lost over a period of time.
Once the OSCTRIM register has been loaded, digital
trimming will automatically occur every minute.
5.6.1.1
Calibration by Measuring Frequency
To calibrate the MCP7940X by measuring the output
frequency, perform the following steps:
1.
Enable the crystal oscillator or external clock
input by setting the ST bit or EXTOSC bit,
respectively.
2.
Ensure TRIMVAL<6:0> is reset to 0x00.
3.
Select
an
output
frequency
by
setting
SQWFS<1:0>.
4.
Set SQWEN to enable the square wave output.
5.
Measure the resulting output frequency using a
calibrated measurement tool, such as a
frequency counter.
6.
Calculate the number of error clocks per minute
(see Equation 5-2).
EQUATION 5-2:
CALCULATING TRIM
VALUE FROM MEASURED
FREQUENCY
• If the number of error clocks per minute is
negative, then the oscillator is faster than
ideal and the SIGN bit must be cleared.
• If the number of error clocks per minute is
positive, then the oscillator is slower than
ideal and the SIGN bit must be set.
7.
Load the correct value into TRIMVAL<6:0>
5.6.1.2
Calibration by Observing Time
Deviation
To calibrate the MCP7940X by observing the deviation
over time, perform the following steps:
1.
Ensure TRIMVAL<6:0> is reset to 0x00.
2.
Load the timekeeping registers to synchronize
the
MCP7940X
with
a
known-accurate
reference time.
3.
Enable the crystal oscillator or external clock
input by setting the ST bit or EXTOSC bit,
respectively.
4.
Observe how many seconds are gained or lost
over a period of time (larger time periods offer
more accuracy).
5.
Calculate the PPM deviation (see Equation 5-3).
EQUATION 5-3:
CALCULATING ERROR
PPM
• If the MCP7940X has gained time relative to the
reference clock, then the oscillator is faster
than ideal and the SIGN bit must be cleared.
• If the MCP7940X has lost time relative to the
reference clock, then the oscillator is slower
than ideal and the SIGN bit must be set.
6.
Calculate the trim value (see Equation 5-4)
EQUATION 5-4:
CALCULATING TRIM
VALUE FROM ERROR
PPM
7.
Load the correct value into TRIMVAL<6:0>
Note:
Using a lower output frequency and/or
averaging the measured frequency over a
number of clock pulses will reduce the
effects of jitter and improve accuracy.
TRIMVAL<6:0>
FIDEAL
FMEAS
–
 32768
FIDEAL
-------------------60

2
---------------------------------------------------------------------------------
=
Where:
FIDEAL
Ideal frequency based on SQWFS<1:0>
=
FMEAS
Measured frequency
=
Note 1:
Choosing a longer time period for
observing
deviation
will
improve
accuracy.
2:
Large temperature variations during the
observation period can skew results.
PPM
SecDeviation
ExpectedSec
----------------------------------- 1000000
=
Where:
ExpectedSec
Number of seconds in chosen period
=
SecDeviation
Number of seconds gained or lost
=
TRIMVAL<6:0>
PPM 32768 60

1000000 2
-------------------------------------------
=



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com