This library provides access to all functionality of DS1302 real time clock IC.
Library is very raw, I've tested basic functionality (clock itself, burst mode, memory) in conjunction with ATmega168P microcontroller.
No support for multiple DS1302 (because of defines) and no support for interrupt-based I/O.
To make included example run get USART.h
and USART.c
from hexagon5un.
Slightly modified Makefile
is also his.
NOTE: Do not copy example as is. It utilizes printf()
function
which is quiet heavy.
For reference look into rtc2.h
;
To save some space you can enable or disable functionality. See
rtc2_config.h
file for details.
- More testing;
- Testing with other models of AVR and maybe other compilers;