Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

DS1347 Datasheet(PDF) 9 Page - Maxim Integrated Products

Part # DS1347
Description  Low-Current, SPI-Compatible Real-Time Clock
Download  17 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MAXIM [Maxim Integrated Products]
Direct Link  https://www.maximintegrated.com/en.html
Logo MAXIM - Maxim Integrated Products

DS1347 Datasheet(HTML) 9 Page - Maxim Integrated Products

Back Button DS1347 Datasheet HTML 5Page - Maxim Integrated Products DS1347 Datasheet HTML 6Page - Maxim Integrated Products DS1347 Datasheet HTML 7Page - Maxim Integrated Products DS1347 Datasheet HTML 8Page - Maxim Integrated Products DS1347 Datasheet HTML 9Page - Maxim Integrated Products DS1347 Datasheet HTML 10Page - Maxim Integrated Products DS1347 Datasheet HTML 11Page - Maxim Integrated Products DS1347 Datasheet HTML 12Page - Maxim Integrated Products DS1347 Datasheet HTML 13Page - Maxim Integrated Products Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 17 page
background image
Low-Current, SPI-Compatible Real-Time Clock
_______________________________________________________________________________________
9
Setting the Clock
Writing to the Timekeeping Registers
The time and date are set by writing to the timekeeping
registers (Seconds, Minutes, Hours, Date, Month, Day,
Year, and Century). During a write operation, an input
buffer accepts the new time data while the timekeeping
registers continue to increment normally, based on the
crystal counter. The buffer also keeps the timekeeping
registers from changing as the result of an incomplete
write operation, and collision-detection circuitry
ensures that a time write does not occur coincident with
a Seconds register increment. The updated time is
loaded into the timekeeping registers after the rising
edge of CS, at the end of the SPI write operation. An
incomplete write operation aborts the update proce-
dure, and the contents of the input buffer are discard-
ed. The timekeeping registers reflect the new time
beginning with the first Seconds register increment
after the rising edge of CS.
Although both single writes and burst writes are possi-
ble, the best way to write to the timekeeping registers is
with a burst write. With a burst write, the main time-
keeping registers (Seconds, Minutes, Hours, Date,
Month, Day, Year) and the Control register are written
sequentially following the address/command byte. They
must be written as a group of eight registers, with 8 bits
each, for proper execution of the burst write function.
All seven timekeeping registers are simultaneously
loaded into the clock counters by the rising edge of CS,
at the end of the SPI write operation.
If single write operations are used to enter data into the
timekeeping registers, error checking is required. If not
writing to the Seconds register, begin by reading the
Seconds register and save it as initial-seconds. Then
write to the required timekeeping registers, and finally
read the Seconds register again (final-seconds). Check
to see that final-seconds is equal to initial-seconds. If
not, repeat the write process. If writing to the Seconds
register, update the Seconds register first, and then
read it back and store its value (initial-seconds).
Update the remaining timekeeping registers and then
read the Seconds register again (final-seconds). Check
to see that final-seconds is equal to initial-seconds. If
not, repeat the write process.
AM/PM and 12Hr/24Hr Mode
Bit 7 of the Hours register selects 12hr or 24hr mode.
When high, 12hr mode is selected. In 12hr mode, bit 5
is the AM/PM bit, logic-high for PM. In 24hr mode, bit 5
is the 20hr bit, logic-high for hours 20 through 23.
Write-Protect Bit
Bit 7 of the Control register is the write-protect bit.
When high, the write-protect bit prevents write opera-
tions to all registers except itself. After initial settings
are written to the timekeeping registers, set the write-
protect bit to logic 1 to prevent erroneous data from
entering the registers during power glitches or inter-
rupted serial transfers. The lower 7 bits (bits 0–6) are
unusable, and always read zero. Any data written to
bits 0–6 are ignored. Bit 7 must be set to zero before a
single write to the clock, before a write to RAM, or dur-
ing a burst write to the clock.
Example: Setting the Clock
with a Burst Write
To set the clock to 10:11:31PM, Thursday July 4th,
2002, with a burst write operation, write 3Fh as the
address/command byte, followed by 8 bytes, 31h, 11h,
B0h, 04h, 07h, 05h, 02h, and 00h (Figure 2). 3Fh is the
clock burst write address/command. The first data
byte, 31h, sets the Seconds register to 31. The second
data byte, 11h, sets the Minutes register to 11. The
third data byte, B0h, sets the Hours register to 12hr
mode, and 10PM. The fourth data byte, 04h, sets the
Date register (day of the month) to the 4th. The fifth
data byte, 07h, sets the Month register to July. The
sixth data byte, 05h, sets the Day register (day of the
week) to Thursday. The seventh data byte, 02h, sets
the Year register to 02. The eighth data byte, 00h,
clears the write-protect bit of the Control register to
allow writing to the device. The Century register is not
accessed with a burst write and therefore must be writ-
ten to separately to set the century to 20. Note the
Century register corresponds to the thousand and hun-
dred digits of the current year and defaults to 19.


Similar Part No. - DS1347

ManufacturerPart #DatasheetDescription
logo
Maxim Integrated Produc...
DS1347 MAXIM-DS1347 Datasheet
247Kb / 17P
   Low-Current, SPI-Compatible Real-Time Clock
Rev 3; 1/13
DS1347T++ MAXIM-DS1347T+ Datasheet
230Kb / 17P
   Low-Current, SPI-Compatible Real-Time Clocks
Rev 0; 8/11
DS1347T++ MAXIM-DS1347T+ Datasheet
247Kb / 17P
   Low-Current, SPI-Compatible Real-Time Clock
Rev 3; 1/13
DS1347 MAXIM-DS1347_13 Datasheet
247Kb / 17P
   Low-Current, SPI-Compatible Real-Time Clock
Rev 3; 1/13
More results

Similar Description - DS1347

ManufacturerPart #DatasheetDescription
logo
Maxim Integrated Produc...
DS1347 MAXIM-DS1347_13 Datasheet
247Kb / 17P
   Low-Current, SPI-Compatible Real-Time Clock
Rev 3; 1/13
DS1346 MAXIM-DS1346 Datasheet
230Kb / 17P
   Low-Current, SPI-Compatible Real-Time Clocks
Rev 0; 8/11
logo
NXP Semiconductors
PCA2125 NXP-PCA2125 Datasheet
1Mb / 40P
   SPI Real time clock / calendar
Rev.00.11-30 January 2007
logo
Golledge Electronics Lt...
RV3049C3 GOLLEDGE-RV3049C3 Datasheet
150Kb / 1P
   Real Time Clock - SPI Bus
RV3049C2 GOLLEDGE-RV3049C2_16 Datasheet
182Kb / 1P
   Real Time Clock - SPI Bus
logo
NXP Semiconductors
PCF2123 NXP-PCF2123 Datasheet
239Kb / 54P
   SPI Real time clock/calendar
Rev. 01-19 November 2008
PCA2125 NXP-PCA2125_08 Datasheet
189Kb / 36P
   SPI Real-time clock/calendar
Rev. 01-28 July 2008
PCF2123 NXP-PCF2123_09 Datasheet
1Mb / 55P
   SPI Real time clock/calendar
Rev. 02-4 December 2009
logo
Golledge Electronics Lt...
RV3049C2 GOLLEDGE-RV3049C2 Datasheet
185Kb / 1P
   Real Time Clock - SPI Bus
logo
Micro Analog systems
MCP795WXX MAS-MCP795WXX Datasheet
969Kb / 54P
   SPI Real-Time Clock Calendar
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com