Information and diagnostics to test the Dallas/Maxim DS1287 and compatible Real-time Clock and CMOS RAM devices, as well as a design to replace them useing a DS12885 chip, a watch crystal and a battery.
The diag folder contains an Arduino program that lets a Pro Micro device connect to a DS1287, or compatible device. It gives access to the first 50 registers of the device (DS1287 compatible) and can be expanded to all 128 registers of a DS12887 compatible device.
The source files are in diag/src and relate to each other as follows. Only the basename is given, if both a .cpp and a .h file exist, they are related.
- main contains the main Arduino code
- DS1287 is the interface to the device, using Pin and Bus
- Pin and Bus as a class-based GPIO interface, translating the Arduino pinMode and digitalRead-style of interfacing to an interface with less typing.
- UI is a simple command line interface on the serial port, that handles typing commands.
The DS12887 folder contains a KiCAD project with a simple design to replace the DS12887 with a DS12885 chip.
The design is neither complete nor tested. At the moment it just looks good on KiCAD's 3D viewer.