参数资料
型号: DS1215
厂商: DALLAS SEMICONDUCTOR
元件分类: XO, clock
英文描述: Using the Dallas Phantom Real Time Clocks(实时时钟芯片)
中文描述: 0 TIMER(S), REAL TIME CLOCK, PDIP16
文件页数: 10/13页
文件大小: 64K
代理商: DS1215
APPLICATION NOTE 52
022394 10/13
PSEUDO CODE
Figure 6
* This code will access the Phantom Time Clock by sending the 64–bit *
* access pattern. Then the time data will be written to the clock and *
* finally the Phantom Time Clock will be accessed again and it will be *
* read. The time information to be written is 12:00 PM Wednesday, *
* January 1, 1992. Also note that the oscillator has been enabled and *
* reset has been disabled. *
A : Array[0..7] = (C5, 3A, A3, 5C, C5, 3A, A3, 5C) (access pattern)
T : Array[0..7] = (00, 00, 00, B2, 14, 01, 01, 92) (time data)
X : Byte at 1000 (memory location 1000H)
D : Array [0..7]
S : Byte
* Send access pattern to Phantom Time Clock *
FOR I = 0 TO 64 S = x
FOR I = 0 TO 7
FOR J = 0 TO 7
X = A[I] SHR J
NEXT J
NEXT I
(perform 65 consecutive reads from x)
(loop for 8 bytes)
(loop for 8 bits)
(write to X, shift bits right J)
* Write time data to Phantom Time Clock registers *
FOR I = 0 TO 7
FOR J = 0 TO 7
X = T[I] SHR J
NEXT J
(loop for 8 bytes)
(loop for 8 bits)
(write to X, shift bits right J)
* Send access pattern to Phantom Time Clock *
FOR I = 0 TO 64 S = X
FOR I = 0 TO 7
FOR J = 0 TO 7
X = A[I] SHR J
NEXT J
NEXT I
(perform 65 consecutive reads from X)
(loop for 8 bytes)
(loop for 8 bits)
* Read Phantom Time Clock registers *
FOR I = 0 TO 7
D[I] = 0
FOR J = 0 TO 7
D[I] = D[I] or (X and 1) SHL J
NEXT J
NEXT I
(loop for 8 bytes)
(initiate the byte)
(loop for 8 bits)
(position bits in byte)
相关PDF资料
PDF描述
DS1216B SmartWatch/RAM 16K/64K(16K/64K位带实时时钟的掉电保护RAM插座)
DS1216C SmartWatch/RAM 16K/65K(16K/65K位带实时时钟的掉电保护RAM插座)
DS1216D(中文) Using the Dallas Phantom Real Time Clocks(256K/1M位带实时时钟的带掉电保护SRAM插座)
DS1216D Using the Dallas Phantom Real Time Clocks(256K/1M位带实时时钟的带掉电保护SRAM插座)
DS1216E SmartWatch/RAM 16K/66K(16K/66K带实时时钟的ROM或掉电保护RAM插座)
相关代理商/技术参数
参数描述
DS1215G 制造商:未知厂家 制造商全称:未知厂家 功能描述:Peripheral IC
DS1215GN 制造商:未知厂家 制造商全称:未知厂家 功能描述:Peripheral IC
DS-1215ZJ 制造商:Hikvision USA 功能描述:Camera Pole Mount Plate7.64In X 4.61In X 3.94In 制造商:HIKVISION 功能描述:CAMERA POLE MOUNT PLATE 7.64IN X 4.61IN X 3.94IN
DS1216 制造商:MAXIM 制造商全称:Maxim Integrated Products 功能描述:SmartWatch RAM (DS1216B/C/D/H); SmartWatch ROM (DS1216E/F)
DS1216B 功能描述:存储器控制器 SmartWatch RAM RoHS:否 制造商:Maxim Integrated