9 years, 5 months ago.

You have used external rtc hardware or you have used internal clock frequency ?

You have used external rtc hardware or you have used internal clock frequency ? i am trying to display time on my kl25z lcd. can i use this?

Question relating to:

FRDM-KL46Z board sLCD demo code using RTC clock. FRDM-KL46Z, kl46z, SLCD

2 Answers

9 years, 5 months ago.

You can use the KL25Z's RTC if you replace the 8MHz crystal with a 32KHz crystal and use the MBED-SRC code as described in the link below. The only draw back I could find is the pc.printf function will no longer work if you want to output data to the USB connector.

https://developer.mbed.org/users/star297/code/KL25Z-32kHz-crystal-mbed-src-library/

You will find Mbed indicates the library is out of date, but do not update it otherwise the changes will be overwritten.

Accepted Answer
9 years, 5 months ago.

IIRC it uses the internal RTC, but you can't use this program on your KL25Z since he also uses the internal LCD controller, which the KL25Z does not have. I am sure there are plenty of other examples on how to do this on a random LCD display.