DS1302涓流充电时钟芯片毕业论文外文文献翻译.doc

上传人:豆**** 文档编号:29942996 上传时间:2022-08-02 格式:DOC 页数:23 大小:915.60KB
返回 下载 相关 举报
DS1302涓流充电时钟芯片毕业论文外文文献翻译.doc_第1页
第1页 / 共23页
DS1302涓流充电时钟芯片毕业论文外文文献翻译.doc_第2页
第2页 / 共23页
点击查看更多>>
资源描述

《DS1302涓流充电时钟芯片毕业论文外文文献翻译.doc》由会员分享,可在线阅读,更多相关《DS1302涓流充电时钟芯片毕业论文外文文献翻译.doc(23页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、DS1302涓流充电时钟芯片一、特性1、实时时钟,可对秒、分、时、日、周、月以及带闰年补偿的年进行计数,有效期2100年;2、用于高速数据暂存的318 RAM;3、最少引脚数的串行I/O;4、2.0-5.5V满度工作范围;5、2.5V时耗电小于300nA;6、用于时钟或RAM数据读/写的单字节或多字节(脉冲方式)数据传送;7、8引脚DIP或可选的用于表面安装的8引脚SOIC封装;8、简单的3线接口;9、TTL兼容(VCC=5V);10、可选的工业温度范围-40至+85;11、与DS1202兼容。二、引脚排列DS1302引脚封装图如下图1所示图1 DS1302引脚封装图三、引脚说明X1,X2:3

2、2.768kHz晶振引脚;GND:接地;RST:复位;I/O:数据输入/输出;SCLK:串行时钟;VCC1,VCC2:电源引脚。四、说明DS1302慢速充电时钟芯片包括实时时钟/日历和31字节的静态RAM。它经过一个简单的串行接口与微处理器通信。实时时钟/日历提供秒、分、时、日、周、月和年等信息。对于小于31天的月,月末的日期自动进行调整,还包括了闰年校正的功能。时钟的运行可以采用24小时或带AM(上午)/PM(下午)的12小时格式。使用同步串行通信,简化了DS1302与微处理器的通信。与时钟/RAM通信仅需三根线:(1)RST(复位)、(2)I/O(数据线)、和(3)SCLK(串行时钟)。数

3、据可以以每次一个字节或多达31字节的多字节形式传送至时钟/RAM或从其中送出。DS1302设计成能在非常低的功耗下工作,消耗小于1微瓦的功率便能保存数据和时钟信息。DS1302是DS1202的升级产品,除了DS1202基本的慢速充电功能外,DS1302具有的其它特点包括:用于主电源和备份电源的双电源引脚,可编程的VCC1慢速充电器以及7个附加字节的高速暂存存储器(scratchpad memory)。(1)工作原理串行时钟芯片的主要组成部分示于图2:移位寄存器、控制逻辑、振荡器、实时时钟以及RAM。图2 DS1302方框图(2)信号说明VCC1:VCC1在单电源与电池供电的系统中提供低电源并提

4、供低功率的电池备份。通过连接这个引脚对系统实时充电;VCC2:VCC2在双电源系统中提供主电源,在这种运用方式中VCC1连接到备份电源,以便在没有主电源的情况下能保存时间信息以及数据;DS1302由VCC1或VCC2两者中较大者供电。当VCC2大于VCC1+0.2V时,VCC2给DS1302供电。当VCC2小于VCC1时,DS1302由VCC1供电;时钟(串行时钟输入) -时钟用于同步数据移动的串行接口;I/O(数据输入/输出)-对I/O引脚是双向数据引脚的3线接口;复位(复位) -复位信号必须在高电平读取或写入;X1,X2:连接为一个标准的32.768 kHz的石英晶体。所选用晶振规定的负载

5、电容量应当为6pF。(3)命令字节命令字节示于图3。每一数据传送由命令字节初始化。最高有效位MSB(位7)必须为逻辑1。如果它是零,禁止写DS1302。位6为逻辑0指定时钟/日历数据;逻辑1指定RAM数据。位1至5指定进行输入或输出的特定寄存器。最低有效位LSB(位0)为逻辑0指定进行写操作(输入);逻辑1指定进行读操作(输出)。命令字节总是从最低有效LSB(位0)开始输入。图3 地址/命令字节(4)复位和时钟控制通过把RST输入驱动至高电平来启动所有的数据传送。RST输入有两种功能。首先,RST接通控制逻辑,允许地址/命令序列送入移位寄存器。其次,RST提供了中止单字节或多字节数据传送的手段

6、。时钟是下降沿后继以上升沿的序列。数据输入时,在时钟的上升沿数据必须有效,而数据位在时钟的下降沿输出。如果RST输入为低电平,那么所有的数据传送中止且I/O引脚变为高阻抗状态。数据传送在图4中说明。上电时,在VCC2.0伏之前RST必须为逻辑0。此外,当把RST驱动至逻辑1的状态时,SCLK必须为逻辑0。图4数据传输概要(5)数据输入跟随在输入写命令字节的8个SCLK周期之后,在下8个SCLK周期的上升沿输入数据字节。如果有额外的SCLK周期,它们将被忽略。数据从位0开始输入。(6)数据输出跟随在输入读命令字节的8个SCLK周期之后,在下8个SCLK周期的下降沿输出数据字节。注意,被传送的第一

7、个数据位发生在写命令字节的最后一位之后的第一个下降沿。只要RST保持为高电平,如果有额外的SCLK周期,它们将重新发送数据字节。这一操作使之具有连续的多字节方式的读能力。另外,在SCLK的每一上升沿,I/O引脚为三态。数据从位0开始输出。(7)多字节方式通过对地址31(十进制)寻址(地址/命令位1至5=逻辑1),可以把时钟/日历或RAM寄存器规定为多字节(burst)方式。如前所述,位6规定时钟或RAM而位0规定读或写。在时钟/日历寄存器中的地址9至31或RAM寄存器中的地址31不能存储数据。在多字节方式中读或写从地址0的位0开始。与使用DS1202时一样,当以多字节方式写时钟寄存器时,必须按

8、数据传送的次序写最先8个寄存器。但是,当以多字节方式写RAM时,为了传送数据不必写所有31个字节。不管是否写了全部31个字节,所写的每一个字节都将传送至RAM。(8)时钟/日历如图5所示,时钟/日历包含在7个写/读寄存器内。包含在时钟/日历寄存器内的数据是二十进制(BCD)码。图5 DS1320寄存器说明(9)时钟暂停秒寄存器的位7定义为时钟暂停位。当此位设置为逻辑1时,时钟振荡器停止,DS1302被置入低功率的备份方式,其电源消耗小于100毫微安(nanoamp)。当把此位写成逻辑0时,时钟将启动。(10)AM-PM/12-24方式小时寄存器的位7定义为12或24小时方式选择位。当它为高电平

9、时,选择12小时方式。在12小时方式下,位5是AM/PM位,此位为逻辑高电平表示PM。在24小时方式下,位5是第2个10小时位(20-23时)。(11)写保护寄存器写保护寄存器的位7是写保护位。开始7位(位0-6)置为零,在读操作时总是读出零。在对时钟或RAM进行写操作之前,位7必须为零。当它为高电平时,写保护位防止对任何其它寄存器进行写操作。(12)慢速充电(Trickle charge)寄存器这个寄存器控制DS1302的慢速充电特性。图5的简化电路表示慢速充电器的基本组成。慢速充电选择(TCS)位(位4-7)控制慢速充电器的选择。为了防止偶然的因素使之工作,只有1010模式才能使慢速充电器

10、工作,所有其它的模式将禁止慢速充电器。DS1302上电时,慢速充电器被禁止。二极管选择(DS)位(位2-3)选择是一个二极管还是两个二极管连接在VCC2与VCC1之间。如果DS为01,那么选择一个二极管;如果DS为10,则选择两个二极管。如果DS为00或11,那么充电器被禁止,与TCS无关。RS位(位0-1)选择连接在VCC2与VCC1之间的电阻。电阻选择(RS)位选择的电阻如下表1:表1 电阻选择(RS)位选择的电阻如果RS为00,充电器被禁止,与TCS无关。二极管和电阻的选择由用户根据电池或超容量电容充电所需的最大电流决定。最大充电电流可以如下列所说明的那样进行计算。假定5V系统电源加到V

11、CC2而超容量电容接至VCC1。再假设慢速充电器工作时在VCC2和VCC1之间接有一个二极管和电阻R1。因而最大电流可计算如下:Imax=(5.0V二极管压降)/R1(5.0V0.7V)/2k2.2mA显而易见,当超容量电容充电时,VCC2和VCC1之间的电压减少,因而充电电流将会减小。(13)时钟/日历多字节(Burst)方式时钟/日历命令字节可规定多字节工作方式。在此方式下,最先8个时钟/日历寄存器可以从地址0的第0位开始连续地读或写(见图5)。当指定写时钟/日历的多字节方式时,如果写保护位设置为高电平,那么没有数据会传送到8个时钟/日历寄存器(包括控制寄存器)的任一个。在多字节方式下,慢

12、速充电器是不可访问的。(14)RAM静态RAM是RAM地址空间中顺序寻址的318字节。(15)RAM多字节方式RAM命令字节可规定多字节工作方式。在此方式下,可以从地址0的第0位开始顺序读或写31 RAM寄存器(见图5)。(16)寄存器概要寄存器数据格式概要示于图5。(17)晶振选择32.768kHz的晶振(诸如Daiwa公司的DT26S、Seiko公司的DS-VT-200或其他类似产品)可通过引脚2和3(X1,X2)直接连接至DS1302。所选用晶振规定的负载电容量(CL)应当为6pF。晶振可从Dallas半导体公司订购。订购器件号是DS9032。五、极限参数*任何引脚相对于地的电压 0.5

13、V至+7.0V运用温度 0至70贮存温度 55至+125焊接温度 260,10秒* 强度超出所列的极限参数可能导致器件的永久性损坏。这些仅仅是极限参数,并不意味着在极限条件下或在任何其它超出推荐工作条件所示参数的情况下器件能有效地工作。延长在极限参数条件下的工作时间会影响器件的可靠性。六、推荐的直流运用条件推荐的直流运用条件见下表2表2 直流运用条件表七、直流电特性直流特性见下表3表3 直流特表八、电容电容见下表 4表4 电容说明表九、交流电特性交流特性见下表5表5 交流特性说明表十、时序图读数据传输时序图见下图6图6 读数据传输写数据传输时序图见下图7图7 写数据传输十一、注意1. 所有电压

14、以地为参考点。2. 对于电容性负载,提供电流1mAVCC=5V和0.4mA、VCC=2.5V、VOH=VCC条件下规定逻辑1的电压。3. 对于电容性负载,在吸收电流4mA、VCC=5V和1.5mA、VCC=2.5V、VOL=地的条件下规定逻辑0的电压。4. 在I/O开路、RST设置为逻辑0、时钟暂停标志=0(允许振荡器工作)条件下规定ICC1T和ICC2T。5. 在I/O引脚开路、RST设置为高电平、VCC=5V时SCLK=2MHz;VCC=2.5V时SCLK= 500kHz以及时钟暂停标志=0(允许振荡器工作)的条件下规定ICC1A和ICC2A。6. RST、SCLK和I/O均接有40k下拉

15、电阻至地。7. 在VIH=2.0V或VIL=0.8V以及最大为10ms上升和下降时间条件下测量。8. 在VOH=2.4V或VOL=0.4V条件下测量。9. 负载电容=50pF。10. 在RST、I/O和SCLK开路条件下规定ICC1S和ICC2S。时钟暂停标志必须设置为逻辑1(禁止振荡器工作)。11. 当VCC2VCC1+0.2V时,VCC=VCC2;当VCC1VCC2时,VCC=VCC1。12. VCC2=0伏。13. VCC1=0伏。14. 典型值为25时的数值。附录B 外文原文DS1302 Trickle Charge Timekeeping Chip一、FEATURES1、Real t

16、ime clock counts seconds, minutes hours, date of the month, month, day of the week, and year with leap year compensation valid up to 2100.2、31 x 8 RAM for scratchpad data storage.3、Serial I/O for minimum pin count.4、2.05.5V full operation.5、Uses less than 300 nA at 2.0V.6、Singlebyte or multiplebyte

17、(burst mode) data transfer for read or write of clock or RAM data.7、8pin DIP or optional 8pin SOICs for surface mount.8、Simple 3wire interface.9、TTLcompatible (VCC = 5V).10、Optional industrial temperature range 40C to +85C.11、DS1202 compatible.二、PIN ASSIGNMENT三、PIN DESCRIPTIONX1, X2:32.768 kHz Cryst

18、al Pins;GND:Ground;RST:Reset;I/O:Data Input/Output;SCLK:Serial Clock;VCC1, VCC2:Power Supply Pins四、DESCRIPTION The DS1302 Trickle Charge Timekeeping Chip contains a real time clock/calendar and 31 bytes of static RAM. It communicates with a microprocessor via a simple serial interface. The real time

19、 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 24hour or 12hour format with an AM/PM indicator. Inte

20、rfacing the DS1302 with a microprocessor is simplified by using synchronous serial communication. Only three wires are required to communicate with the clock/RAM: (1) RST(Reset), (2) I/O (Data line), and (3) SCLK (Serial clock). Data can be transferred to and from the clock/RAM 1 byte at a time or i

21、n a burst of up to 31 bytes. The DS1302 is designed to operate on very low power and retain data and clock information on less than 1 microwatt.The DS1302 is the successor to the DS1202. In addition to the basic timekeeping functions of the DS1202, the DS1302 has the additional features of dual powe

22、r pins for primary and backup power supplies, programmable trickle charger for VCC1, and seven additional bytes of scratchpad memory.(1)OPERATIONThe main elements of the Serial Timekeeper are shown in Figure 1: shift register, control logic, oscillator,real time clock, and RAM.DS1302 BLOCK DIAGRAM F

23、igure 1(2)SIGNAL DESCRIPTIONS VCC1: VCC1 provides low power operation in single supply and battery operated systems as well as low power battery backup. In systems using the trickle charger, the rechargeable energy source is connected to this pin.VCC2 :Vcc2 is the primary power supply pin in a dual

24、supply configuration. VCC1 is connected to a backup source to maintain the time and date in the absence of primary power.The DS1302 will operate from the larger of VCC1 or VCC2. When VCC2 is greater than VCC1 + 0.2V, VCC2 will power the DS1302. When VCC2 is less than VCC1, VCC1 will power the DS1302

25、.SCLK (Serial Clock Input) SCLK is used to synchronize data movement on the serial interface.I/O (Data Input/Output) The I/O pin is the bi-directional data pin for the 3-wire interface.RST (Reset) The reset signal must be asserted high during a read or a write.X1, X2 : Connections for a standard 32.

26、768 kHz quartz crystal. The internal oscillator is designed for operation with a crystal having a specified load capacitance of 6 pF. (3)COMMAND BYTEThe command byte is shown in Figure 2. Each data transfer is initiated by a command byte. The MSB (Bit 7) must be a logic 1. If it is 0, writes to the

27、DS1302 will be disabled. Bit 6 specifies clock/calendar data if logic 0 or RAM data if logic 1. Bits 1 through 5 specify the designated registers to be input or output, and the LSB (bit 0) specifies a write operation (input) if logic 0 or read operation (output) if logic 1. The command byte is alway

28、s input starting with the LSB (bit 0).ADDRESS/COMMAND BYTE Figure 2(4)RESET AND CLOCK CONTROLAll data transfers are initiated by driving the RST input high. The RST input serves two functions. First, RST turns on the control logic which allows access to the shift register for the address/command seq

29、uence. Second, the RST signal provides a method of terminating either single byte or multiple byte data transfer. A clock cycle is a sequence of a falling edge followed by a rising edge. For data inputs, data must be valid during the rising edge of the clock and data bits are output on the falling e

30、dge of clock. If the RST input is low all data transfer terminates and the I/O pin goes to a high impedance state. Data transfer is illustrated in Figure 3. At powerup, RST must be a logic 0 until VCC 2.0 volts. Also SCLK must be at a logic 0 when RST is driven to a logic 1 state.DATA TRANSFER SUMMA

31、RY Figure 3(5)DATA INPUTFollowing the eight SCLK cycles that input a write command byte, a data byte is input on the rising edge of the next eight SCLK cycles. Additional SCLK cycles are ignored should they inadvertently occur. Data is input starting with bit 0.(6)DATA OUTPUTFollowing the eight SCLK

32、 cycles that input a read command byte, a data byte is output on the falling edge of the next eight SCLK cycles. Note that the first data bit to be transmitted occurs on the first falling edge after the last bit of the command byte is written. Additional SCLK cycles retransmit the data bytes should

33、they inadvertently occur so long as RST remains high. This operation permits continuous burst mode read capability. Also, the I/O pin is tristated upon each rising edge of SCLK. Data is output starting with bit 0.(7)BURST MODEBurst mode may be specified for either the clock/calendar or the RAM regis

34、ters by addressing location 31 decimal (address/command bits 1 through 5 = logic 1). As before, bit 6 specifies clock or RAM and bit 0 specifies read or write. There is no data storage capacity at locations 9 through 31 in the Clock/Calendar Registers or location 31 in the RAM registers. Reads or wr

35、ites in burst mode start with bit 0 of address 0. When writing to the clock registers in the burst mode, the first eight registers must be written in order for the data to be transferred. However, when writing to RAM in burst mode it is not necessary to write all 31 bytes for the data to transfer. E

36、ach byte that is written to will be transferred to RAM regardless of whether all 31 bytes are written or not.(8)CLOCK/CALENDARThe clock/calendar is contained in seven write/read registers as shown in Figure 4. Data contained in the clock/ calendar registers is in binary coded decimal format (BCD).RE

37、GISTER ADDRESS/DEFINITION Figure 4:(9)CLOCK HALT FLAGBit 7 of the seconds register is defined as the clock halt flag. When this bit is set to logic 1, the clock oscillator is stopped and the DS1302 is placed into a lowpower standby mode with a current drain of less than 100 nanoamps. When this bit i

38、s written to logic 0, the clock will start. The initial power on state is not defined.(10)AM-PM/12-24 MODEBit 7 of the hours register is defined as the 12 or 24hour mode select bit. When high, the 12hour mode is selected. In the 12hour mode, bit 5 is the AM/PM bit with logic high being PM. In the 24

39、hour mode, bit 5 is the second 10-hour bit (20 23 hours).(11)WRITE PROTECT BITBit 7 of the control register is the write-protect bit. The first seven bits (bits 0 6) are forced to 0 and will always read a 0 when read. Before any write operation to the clock or RAM, bit 7 must be 0. When high, the wr

40、ite protect bit prevents a write operation to any other register. The initial power on state is not defined. Therefore the WP bit should be cleared before attempting to write to the device.(12)TRICKLE CHARGE REGISTERThis register controls the trickle charge characteristics of the DS1302. The simplif

41、ied schematic of Figure 5 shows the basic components of the trickle charger. The trickle charge select (TCS) bits (bits 4 -7) control the selection of the trickle charger. In order to prevent accidental enabling, only a pattern of 1010 will enable the trickle charger. All other patterns will disable

42、 the trickle charger. The DS1302 powers up with the trickle charger disabled. The diode select (DS) bits (bits 2 3) select whether one diode or two diodes are connected between VCC2 and VCC1. If DS is 01, one diode is selected or if DS is 10, two diodes are selected. If DS is 00 or 11, the trickle c

43、harger is disabled independently of TCS. The RS bits (bits 0 -1) select the resistor that is connected between VCC2 and VCC1. The resistor selected by the resistor select (RS) bits is as follows.If RS is 00, the trickle charger is disabled independently of TCS.Diode and resistor selection is determi

44、ned by the user according to the maximum current desired for battery or super cap charging. The maximum charging current can be calculated as illustrated in the following example. Assume that a system power supply of 5 volt is applied to VCC2 and a super cap is connected to VCC1. Also assume that th

45、e trickle charger has been enabled with one diode and resistor R1 between VCC2 and VCC1. The maximum current Imax would therefore be calculated as follows:Imax = (5.0V diode drop) / R1 (5.0V 0.7V) / 2 k 2.2 MaObviously, as the super cap charges, the voltage drop between VCC2 and VCC1 will decrease a

46、nd thereforethe charge current will decrease.(13)CLOCK/CALENDAR BURST MODEThe clock/calendar command byte specifies burst mode operation. In this mode the first eight clock/calendar registers can be consecutively read or written (see Figure 4) starting with bit 0 of address 0. If the write protect b

47、it is set high when a write clock/calendar burst mode is specified, no data transfer will occur to any of the eight clock/calendar registers (this includes the control register). The trickle charger is not accessible in burst mode. At the beginning of a clock burst read, the current time is transfer

48、red to a second set of registers. The time information is read from these secondary registers, while the clock may continue to run. This eliminates the need to re-read the registers in case of an update of the main registers during a read.(14)RAMThe static RAM is 31 x 8 bytes addressed consecutively in the RAM address space.(15)RAM BURST MODEThe RAM command byte specifies

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 小学资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁