RTC interface with kinetis KL series Controller using KDS studio

Showing results for 
Search instead for 
Did you mean: 

RTC interface with kinetis KL series Controller using KDS studio

Contributor I

Dear all,

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. 

Best Regards


Labels (1)
0 Kudos
1 Reply

Specialist V


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
I2C: http://www.utasker.com/docs/uTasker/uTasker_I2C.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: http://www.utasker.com/kinetis.html
Kinetis KL25, KL26, KL27, KL28:
- http://http://www.utasker.com/kinetis/FRDM-KL25Z.html
- http://www.utasker.com/kinetis/TWR-KL25Z48M.html
- http://www.utasker.com/kinetis/FRDM-KL26Z.html
- http://www.utasker.com/kinetis/TEENSY_LC.html
- http://www.utasker.com/kinetis/FRDM-KL27Z.html
- http://www.utasker.com/kinetis/Capuccino-KL27.html
- http://www.utasker.com/kinetis/FRDM-KL28Z.html

Free Open Source solution: https://github.com/uTasker/uTasker-Kinetis
Working project in 15 minutes video: https://youtu.be/K8ScSgpgQ6M

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

0 Kudos