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.