|
Microcontroller Kits
Programmer
and Target 89s51
Simple
Mikrokontroller 89s51 Trainer

Standart
Mikrokontroller 89s51 Trainer

Super Mikrokontroller
Trainer 89s51
+
All Item Include
Programmer
Via USB
|
|
Interfacing the DS1307/1308 (
RTC )
with 8051 Microcontroller and over
PC Serial Port
INTRODUCTION
The DS1307 Serial Real Time Clock, which incorporates a 2-wire
serial interface, can be controlled using an 8051-compatible.
The DS1307 is connected directly to two of the I/O ports on a microcontroller
and the 2-wire handshaking is handled by low-level drivers,
which are discussed in this final projects.
DS1307 DESCRIPTION
The DS1307 Serial Real Time Clock is a low-power, full BCD clock/calendar
plus 56 bytes of nonvolatile SRAM. Address and data are transferred
serially via the 2-wire bi-directional bus. The clock/calendar
provides seconds, minutes, hours, day, date, month, and year information.
The end of the month date is automatically adjusted for months with
less than 31 days, including corrections for leap year. The clock operates
in either the 24-hour or 12-hour format with AM/PM indicator.
The DS1307 has a built-in power sense circuit which detects power
failures and automatically switches to the battery supply.
HARDWARE CONFIGURATION
The system is configured as shown in Figure 1. The DS1307 has the 2-wire
bus connected to two I/O port pins of the microcontroller: SCL -
P1.0, SDA - P1.1. The VDD voltage is 5V, RP = 5KW and the 8051
is using a 12 MHz crystal.

Download File : rtc.asm
Comments,
questions and discussion about this topic
BACK
|
|
|
|