ENGLISH 简体中文 日本語 한국어  


APPLICATION NOTE  3449

Interfacing a DS1302 With an 8051-Type Microcontroller

Abstract: This application describes how to interface a DS1302 RTC using the 3-wire interface to an 8051-type microcontroller. The example includes a schematic and example software written in C.

DS1302 Pin Assignment
DS1302 Pin Assignment

Description

This application note demonstrates how to interface a DS1302 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 three general-purpose port pins on the microcontroller to control the 3-wire synchronous bus. The microcontroller initiates a data transfer by sending a command byte to the DS1302. The microcontroller then sends additional data and/or SCLKs to the DS1302, which transmits or receives data based upon the command byte.

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 of DS1302 RTC.
For Larger Image

Figure 2. Schematic of DS1302 RTC.


의견을 보내주세요!
위 내용이 도움이 되셨나요?
여러분의 의견을 기다립니다 — Maxim은 보내주신 정정이나 제안사항을 반영하고 있습니다. 이 페이지를 평가하고 의견을 보내주십시오.


자동 업데이트
관심있는 분야의 애플리케이션 노트가 나올 때 자동으로 업데이트 받고 싶으세요? 그렇다면 EE-Mail™을 신청하십시오.



추가 정보  APP 3449: Feb 21, 2005
DS1302 트리클 충전 계시 칩 전체 데이터 시트
(PDF, 672kB)
무료 샘플
 

다운로드, PDF 형식다운로드, PDF 형식 (20kB)
 AN3449, AN 3449, APP3449, Appnote3449, Appnote 3449



         



   Copyright © 2008 by Maxim Integrated Products, Dallas Semiconductor    법적 고지    개인정보보호 정책