Maxim I2C Real Time Clocks
The DS3232 is a device I have used in many of my designs:
For ‘classic’ (non-LDD) Processor Expert, there has been a component (RTC_I2C_DS1307) for the DS1307 with my custom extensions for the DS3232. But as with many other things: these ‘classic’ components do not work for Kinetis, as with Kinetis there are LDD (Logical Device Driver) components, and they are not compatible. That’s why I ended up implementing my own RTC_Maxim component which works both for the LDD and non-LDD world (see as well this post).
RTC_Maxim Processor Expert Component
The component takes advantage of the GenericI2C component.
As ‘Device’ either the DS3232 or the DS1307 can be selected. The component features an optional Shell interface (
ParseCommand()) to the FSShell. Beside of this, it features the usual functions to get/set date and time:
Write() methods are used to to access the device non-volatile memory and registers.
The component now only supports date and time functions, plus access to the device non-volatile RAM. Support for the other features (temperature sensor, alarm functions, oscillator output, etc) would be a topic for further work. Maybe somebody volunteers to extend the current functionality?
Happy Maximing 🙂