Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
RTC Function Demo

This demo application demonstrates how to use the RTC driver.

Overview

This RTC demo application demonstrates the important features of the RTC Module by using the RTC Periperhal Driver.

It supports these features:

Supported Hardware

These Freescale Freedom development platforms and Tower System modules are supported by the KSDK RTC Function demo.

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Prepare the Demo

  1. Connect a USB cable between the PC host and the OpenSDA USB port on the board.
  2. Open a serial terminal with these settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control (Note that for the FRDM-KL03 platform, the terminal baud rate should be 9600)
  3. Download the program to the target board.
  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Note: For the MRB-KW01, it is necessary to connect on the J8 pins 2-3 and change the CLOCK_SETUP to 1 (or change the RTC input to OSC32KCLK by another way).

For detailed instructions, see a Kinetis SDK User's Guide for your board.

Run the demo

This menu is displayed on the serial terminal:

Please choose the sub demo to run:
1) Get current date time.
2) Set current date time.
3) Alarm trigger show.
4) Second interrupt show (demo for 20s).
5) Set RTC compensation.
Select: