标题: DS1302的12小时制 AM/PM位它自己会更新0或1吗?还是要自己设置的 [打印本页] 作者: werjufour 时间: 2025-8-1 08:37 标题: DS1302的12小时制 AM/PM位它自己会更新0或1吗?还是要自己设置的 大佬们,有谁知道吗?有点疑惑作者: joyb 时间: 2025-8-1 15:25
The DS1302 can be run in either 12-hour or 24-hour mode. Bit 7 of the hours register is defined as the 12- or 24-hour mode-select bit. When high, the 12-hour mode is selected. In the 12-hour mode, bit 5 is the AM/PM bit with logic high being PM. In the 24-hour mode, bit 5 is the second 10-hour bit (20–23 hours). The hours data must be re-initialized whenever the 12/24 bit is changed.
DS1302可以以12小时制或24小时制模式运行。小时寄存器的第7位被定义为12小时制或24小时制模式选择位。当该位为高电平时,选择12小时制模式。在12小时制模式下,第5位是AM/PM位,逻辑高电平表示PM。在24小时制模式下,第5位是第二个10小时位(20-23小时)。每当12/24位发生变化时,小时数据必须重新初始化。作者: WL0123 时间: 2025-8-1 16:08
DS1302 可以工作在 12 小时制和 24 小时制两种模式下。小时寄存器的位7定义为小时模式选择位。为高时是 12 小时制,12小时制模式下, 位5是上午/ 下午位且高电平是下午,24 小时制模式下,位5是第20小时位 ( 20 点–2 3 点)。 一旦 12/24 改变,小时数据必须被重新初始化。 DS1302中文手册.docx(1.36 MB, 下载次数: 0)