APPLICATION NOTE 3482

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

Mar 25, 2005

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.

Related Parts
DS1388 I²C RTC/Supervisor with Trickle Charger and 512 Bytes EEPROM Free Samples  


Next Steps
EE-Mail Subscribe to EE-Mail and receive automatic notice of new documents in your areas of interest.
Download Download, PDF Format (32kB)  
Share
Other Channels  Email this page to an associate or friend. 



APP 3482: Mar 25, 2005
APPLICATION NOTE 3482, AN3482, AN 3482, APP3482, Appnote3482, Appnote 3482

Share



More