I am working with Kinetis KL series controller.
IDE: Kinetis Design Studio
Debugger: PE multilink universal
I wanted to interface an external RTC module with the controller and get/set the time, date etc.
RTC module: Maxim DS3231
I have gone through several queries (almost 2-3 days) on this forum but didn't find much detail. I have found a processor expert component: RTC_Maxim here. I tried to integrate it with my controller but it is only for DS3232 and DS1307 RTC. Can I not use it with my RTC module?
If not, is there any way I can interface it? Maybe using RTC_LDD component.
If yes, would be really great if you guys can give me some example code to interface.
See the following documents - there is complete time management (including I2C connected Dallas chips) in the open source uTasker project for all Kinetsi parts.
It also allows you to do complete chips simulation (also of I2C and external Dallas parts) using Visual Studio.
RTC and time keeping: http://www.utasker.com/docs/uTasker/uTasker_Time.pdf
Note that the DS3231 is compatible with the DS1307 for basic time keeping functions - they even have the same I2C slave address. The only differences are that the DS3231 adds alarms and its register 7 (used by its first alarm) is used to control a square wave output on the DS1307, plus the DS1307 has 56 general purpose bytes of RAM that the DS3231 doesn't have.
The DS3232 adds 263 bytes of SRAM to the DS3231, meaning that basically all three can be used interchangeably (for basic time/date operations) [at least up to the year 2100 where a century flag comes into play....]
Kinetis KL25, KL26, KL27, KL28:
For better, faster, cheaper product developments consider the uTasker developer's version, professional Kinetis support, one-on-one training and complete fast-track project solutions to set you apart from the herd : http://www.utasker.com/support.html