RELIANCE 45C344模拟输入模块
24小时格式的寄存器4的总范围为00至23小时。寄存器4的第7位将始终为零,无论写入的值是什么,也不管格式是什么(12小时或24小时)。寄存器6包含“时间”的“天数”值。位2-0包含BCD中范围为1到7的Days值。寄存器8包含两个时间值。位3-0包含BCD中0到9范围的Date值,而位5-4包含0到3范围的10 Date值。此寄存器的总范围为01到31。此寄存器的第7位至第6位将始终为零,无论写入的值是什么。寄存器9包含两个“时间”值。位3-0包含BCD格式的Months值,范围为0到9,而位4包含0到1的10 Date值。此寄存器的总范围为01到12。无论写入什么值,第5位始终为零。第6位未使用,但必须设置为1。第7位Eosc是时钟振荡器启用位。当该位设置为零(0)时,振荡器内部启用。当设置为一(1)时,振荡器内部禁用。通过该位的振荡器通常在系统初始化期间打开一次,但可以由用户自行决定打开和关闭。
The total range of Register 4 in the 24-hour format is 00 to 23 hours. Bit 7 of Register 4 will always be zero regardless of what value is written to it and regardless of format (12- or 24-hour). Register 6 contains the Days value of the Time of Day. Bits 2 - 0 contain the Days value with a range of 1 to 7 in BCD. Register 8 contains two Time of Day values. Bits 3 - 0 contain the Date value with a range of 0 to 9 in BCD while Bits 5 - 4 contain the 10 Date value with a range of 0 to 3. This register has a total range of 01 to 31. Bits 7 - 6 of this register will always be zero regardless of what value is written to it. Register 9 contains two Time of Day values. Bits 3 - 0 contain the Months value with a range of 0 to 9 in BCD while Bits 4 contain the 10 Date value with a range of 0 to 1. This register has a total range of 01 to 12. Bit 5 will always be zero regardless of what value is written to it. Bit 6 is unused but must be set to a 1. Bit 7, Eosc, is the clock oscillator enable bit. When this bit is set to a zero (0) the oscillator is internally enabled. When set to a one (1) the oscillator is internally disabled. The oscillator via this bit is usually turned on once during system initialization but can be toggled on and off at the user’s discretion.