ENGLISH 简体中文 日本語 한국어  


APPLICATION NOTE 3482

Interfacing a DS1388 Real-Time Clock with an 8051-Type Microcontroller

Abstract: This application note demonstrates how to interface a DS1388 to an 8051-type microcontroller with software written in C. Basic interface routines are illustrated by example code. The microcontroller used in this example is the DS2250.

DS1388 Pin Assignment

Description

This application note demonstrates how to interface a DS1388 real-time clock to an 8051-type microcontroller and provides example code showing basic interface routines. The microcontroller used in this example is the DS2250, and the software is written in C.

Operation

The program uses two general-purpose port pins on the micro to operate as a master on the I²C bus. The DS1388 operates as a slave device on the same bus.

The software is shown in Figure 1. A schematic of the circuit is shown in Figure 2.

Figure 1. Program Listing
Download zip file

Figure 2. Schematic.
For Larger Image

Figure 2. Schematic.

We Want Your Feedback!


Automatic Updates
Would you like to be automatically notified when new application notes are published in your areas of interest? Sign up for EE-Mail™.



More Information  APP 3482: Mar 25, 2005
DS1388 I²C RTC/Supervisor with Trickle Charger and 512 Bytes EEPROM Full Data Sheet
(PDF, 392kB)
Free Samples
 

Download, PDF FormatDownload, PDF Format (32kB)
 AN3482, AN 3482, APP3482, Appnote3482, Appnote 3482


      Privacy Policy    Legal Notices

      Copyright © 2008 by Maxim Integrated Products, Dallas Semiconductor