[an error occurred while processing this directive] [an error occurred while processing this directive]
Причем тут Ubat ? Батарейка для работы НЕ обязательна.(+)
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Kira78Rus 07 февраля 2002 г. 11:06
В ответ на: Если U bat не в нужном диапазоне, то интерфейс блокируется. Это ясно в даташит написано. отправлено Elektronik 06 февраля 2002 г. 23:11

Другое дело, что при включении без батарейки (или первом) часы остановлены и надо сбросить бит 7 (CH=clock halt) в 0 регистре.
Вот выдержки из даташита:
Bit 7 of Register 0 is the Clock Halt (CH) bit. When this bit is
set to a one, the oscillator is disabled. When cleared to a
zero, the oscillator is enabled.

V CC , GND – DC power is provided to the device on
these pins. V CC is the +5 volt input. When 5 volts are
applied within normal limits, the device is fully accessi-ble
and data can be written and read. When a 3 volt bat-tery
is connected to the device and V CC is below 1.25 x
V BAT , reads and writes are inhibited. However, the
Timekeeping function continues unaffected by the lower
input voltage. As V CC falls below V BAT the RAM and
timekeeper are switched over to the external 3 volt bat-tery.
V BAT – Battery input for any standard 3 volt lithium cell
or other energy source. Battery voltage must be held
between 2.5 and 3.5 volts for proper operation. The
nominal write protect trip point voltage at which access
to the real time clock and user RAM is denied is set by
the internal circuitry as 1.25 x V BAT nominal. A Lithium
battery with 35 mAh or greater will back up the DS1307
for more than 10 years in the absence of power.

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru