Electronic Components Datasheet Search
  English  ▼

X  

MCP79520 Datasheet(PDF) 31 Page - Microchip Technology

Part # MCP79520
Description  Battery-Backed SPI Real-Time Clock/Calendar
PDF  58 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

MCP79520 Datasheet(HTML) 31 Page - Microchip Technology

Back Button MCP79520 Datasheet HTML 27Page - Microchip Technology MCP79520 Datasheet HTML 28Page - Microchip Technology MCP79520 Datasheet HTML 29Page - Microchip Technology MCP79520 Datasheet HTML 30Page - Microchip Technology MCP79520 Datasheet HTML 31Page - Microchip Technology MCP79520 Datasheet HTML 32Page - Microchip Technology MCP79520 Datasheet HTML 33Page - Microchip Technology MCP79520 Datasheet HTML 34Page - Microchip Technology MCP79520 Datasheet HTML 35Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 31 / 58 page
background image
 2012-2022 Microchip Technology Inc. and its subsidiaries
DS20002300D-page 31
MCP7951X/MCP7952X
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<7: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
(CRSTRIM = 0).
5.6.1.1
Calibration by Measuring Frequency
To calibrate the MCP795XX 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<7: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-3).
EQUATION 5-3:
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 TRIMSIGN bit must be cleared.
• If the number of error clocks per minute is
positive, then the oscillator is slower than
ideal and the TRIMSIGN bit must be set.
7.
Load the correct value into TRIMVAL<7:0>.
5.6.1.2
Calibration by Observing Time
Deviation
To calibrate the MCP795XX by observing the deviation
over time, perform the following steps:
1.
Ensure TRIMVAL<7:0> is reset to 0x00.
2.
Load the timekeeping registers to synchronize
the
MCP795XX
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-4).
EQUATION 5-4:
CALCULATING ERROR
PPM
• If the MCP795XX has gained time relative to
the reference clock, then the oscillator is
faster than ideal and the TRIMSIGN bit must
be cleared.
• If the MCP795XX has lost time relative to the
reference clock, then the oscillator is slower
than ideal and the TRIMSIGN bit must be set.
6.
Calculate the trim value (see Equation 5-5).
EQUATION 5-5:
CALCULATING TRIM
VALUE FROM ERROR
PPM
7.
Load the correct value into TRIMVAL<7: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<7: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<7: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


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