• Aucun résultat trouvé

Change the Battery on any DP857X Family Member Using Software without Losing Time

N/A
N/A
Protected

Academic year: 2022

Partager "Change the Battery on any DP857X Family Member Using Software without Losing Time"

Copied!
4
0
0

Texte intégral

(1)

TL/F/11848

Change the Battery on any DP857X Family Member Using Software without Losing Time AN-895

National Semiconductor Application Note 895 Milt Schwartz May 1993

Change the Battery on any DP857X Family Member Using Software without Losing Time

This application note describes a method for changing the battery on any of the DP857X family members while power is applied. The method involves use of the test mode. The clock remains running so that no time is lost.

THE PROBLEM

Your in the battery backed mode and the low battery bit has turned on (logic Hi). The battery needs to be changed but you don’t want to lose time or have to re-initialize the clock.

THE SOLUTION

Assuming that the clock is still running (start/stop bit in the Real Time Mode Register e ‘1’), do the following se- quence:

1. Write a ‘1’ to bit D7 of the Periodic Flag Register (PFR).

Now you are in the Test Mode.

2. Write ‘1’ to bit D7 of the Test Register (address Hex 1F in page 0), all other bits are ‘0’. This action disables the OSC FAIL bit.

3. Write a ‘1’ to bit D6 of the PFR. This action changes the RTC from battery backed mode to single supply mode.

4. Now the battery can be changed. If the change takes place within a half minute or so, the VBBpin can be left floating for that time. If the battery is soldered in such that many minutes will occur, then temporarily connect VBBto ground until the new battery is ready for installation.

5. After the battery is connected, to return to battery backed mode:

5.1 Write ‘0’ to all bit positions of the Test Register (ad- dress Hex 1F in page 0).

5.2 Write ‘0’ to bits D6 and D7 of the PFR. This write returns the chip to the battery backed mode.

WHY CAN’T I SWITCH FROM BATTERY BACKED TO SINGLE SUPPLY UNDER NORMAL OPERATION?

Steps 1 thru 4 need to be done because a ‘‘glitch’’ can occur in the oscillator fail circuitry when switching from bat- tery backed mode to single supply mode. This glitch can momentarily cause an OSC FAIL condition which stops the clock and sets the OSC FAIL bit (D6 in the PFR). The rea- son for entering the test mode is that this is the only way the OSC FAIL bit can be disabled.

HOW THE GLITCH OCCURS

In battery backed mode, the oscillator fail circuitry is pow- ered by an internal voltage follower referenced to VBB. When the single supply mode is selected, this voltage fol- lower is disabled and the oscillator fail circuitry instanta- neously sees the VCCvoltage. Bench tests indicate that the magnitude of the change is what causes the glitch, thus stopping the clock. If the difference between VBBand VCC is reduced, then the clock does not stop.

Example: If VBBis 2.5V and VCC is 5.0V then the clock continues running if you switch from battery backed mode to single supply mode. However, if VBBis 2V and VCCis 5V then the clock will stop when you switch from battery backed mode to single supply mode.

TEST CONDITIONS

Bench tests were made using a PC-ATÉ386/33 MHz. The DP8570 was interfaced to the PC using the circuit shown in Figure 1 .

IBMÉ, PC-ATÉand PC-XTÉare registered trademarks of International Business Machines Corporation.

C1995 National Semiconductor Corporation RRD-B30M75/Printed in U. S. A.

(2)

ComponentandPlacementList pot1e10kX CR1eseeTableI CINeseeTableI COUTeseeTableI C1e0.047mFceramicplacedatU1 C2e0.047mFceramicplacedatU2 C3e0.047mFceramicplacedatU3 C4e0.047mFceramicplacedatU4 C5e5.6mFsolidtantalumplacedatcardedge D1,D2,D3e1N914or1N4001or1N4933 R1e2.7kX R2e3.9kX R3e10kX R4e10kX R5e3.3kX R6e10turn10kX R7e20kX R8e39kX R9e5kX VBBe3.0Vto3.4VLithiumbattery(coincell) TableI CR1CINCOUT (crystal)(pF)(pF) 32.768/32.0kHz1547 4.194304MHz3668 4.9152MHz3668 TL/F/118481 FIGURE1.GeneralPurposeInterfacetoIBMÉPC-XTÉorPC-ATÉforExperiments

2

(3)

3

(4)

Change the Battery on any DP857X Family Member AN-895 Using Software without Losing Time

LIFE SUPPORT POLICY

NATIONAL’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein:

1. Life support devices or systems are devices or 2. A critical component is any component of a life systems which, (a) are intended for surgical implant support device or system whose failure to perform can into the body, or (b) support or sustain life, and whose be reasonably expected to cause the failure of the life failure to perform, when properly used in accordance support device or system, or to affect its safety or with instructions for use provided in the labeling, can effectiveness.

be reasonably expected to result in a significant injury to the user.

National Semiconductor National Semiconductor National Semiconductor National Semiconductor National Semiconductores National Semiconductor

Corporation GmbH Japan Ltd. Hong Kong Ltd. Do Brazil Ltda. (Australia) Pty, Ltd.

2900 Semiconductor Drive Livry-Gargan-Str. 10 Sumitomo Chemical 13th Floor, Straight Block, Rue Deputado Lacorda Franco Building 16

P.O. Box 58090 D-82256 F4urstenfeldbruck Engineering Center Ocean Centre, 5 Canton Rd. 120-3A Business Park Drive

Santa Clara, CA 95052-8090 Germany Bldg. 7F Tsimshatsui, Kowloon Sao Paulo-SP Monash Business Park

Tel: 1(800) 272-9959 Tel: (81-41) 35-0 1-7-1, Nakase, Mihama-Ku Hong Kong Brazil 05418-000 Nottinghill, Melbourne

TWX: (910) 339-9240 Telex: 527649 Chiba-City, Tel: (852) 2737-1600 Tel: (55-11) 212-5066 Victoria 3168 Australia

Fax: (81-41) 35-1 Ciba Prefecture 261 Fax: (852) 2736-9960 Telex: 391-1131931 NSBR BR Tel: (3) 558-9999

Tel: (043) 299-2300 Fax: (55-11) 212-1181 Fax: (3) 558-9998

Fax: (043) 299-2500

National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications.

Références

Documents relatifs

safekeeping. The pynabyte utility DYNASTAT displays your current system configuration. 'The steps described below will change the drive assignrnentsso that you will

This application note describes how external oscillators may be used with the DP857x family of real time clocks, by using the ‘‘test mode’’ to configure the DP857x in the

We must admit that the observing and knowing subject (the model builder), as any human being, has a project, usually complex, aggregating multiple and evolutionary goals, and that

all the q~k correspond to finite energy states, i.e.. Our theorem says that states with non-zero initial decay rate could be found among infinite energy states1). What

Residency in a family medicine–run hospital Many programs offer family medicine training in secondary and primary care hospitals, run primarily by family doctors (including McGill’s

 They will take the child URGENTLY to the health facility, if the sick child has any of these danger signs (Picture 1):?. o Is unable to breastfeed or stops

C, SnssNr{aNN: Normal bundles for codimension 2locally flat imbedd- ings. E.: Affine structures in

fcf-'is a quasiconformal group. Gehring that all quasiconformal groups are of this form. 2l) has proved the following theorem, which is related to ours.. Then ,S has a