http://kazus.ru/forum/topics/14156.html


DS1307   125  ,     .
,     ,  SCL  100      DS1307.

   CodeVision AVR,   .  twi.h - 4  (,,,)   ds1307_twi.h - 5  (,, , , ),       CVAVR.

 TWI   :

// 2 Wire Bus initialization
// Generate Acknowledge Pulse: On
// 2 Wire Bus Slave Address: 68h
// General Call Recognition: Off
// Bit Rate: 100,000 kHz
TWSR=0x00;
TWBR=0x5C; //  20. TWBR=0x48 -  16.
TWAR=0xD0;
TWCR=0x44;
