S1C17M11 RTCH Sample Software Copyright(C) SEIKO EPSON CORPORATION 2016. All rights reserved. History - 11 Jul, 2016 rev1.0 Newly developed. ----------------------------------------------------------------------------- 1. Folder Configuration s1c17m11_rtch_sample |_ s1c17m11_rtch_gnu17v2 Sample project for GNU17v2 |_ s1c17m11_rtch_gnu17v3 Sample project for GNU17v3 2. Sample Software Specification This sample software executes the processing shown below using the RTCH embedded in the microcontroller. - Access the RTCH registers by using I2C Ch.1. - Set the time of real time clock. - Get the time of real time clock. 3. Hardware Requirements This sample program runs in the OSC3 built-in oscillating circuit in the microcomputer. 4. Behavior 1) Start OSC3 and stop IOSC. 2) Set the time of real time clock to "Sun 00-12-31 23:59:50". 3) Set the initial value of interval timer to "0x000F". 4) Set the alarm time to "Day:01 Hour:00". 5) Enable one-second and interval and alarm interrupts of real time clock. 6) Start real time clock and put CPU in a Halt state. 7) When an interrupt occurs in real time clock, release CPU from the Halt state. 8) When the number of one-second interrupts is less than 5, put CPU in a Halt state again. 9) When the number of one-second interrupt is not less than 5, get the date and time of real time clock(the value is "Sun 00-12-31 23:59:55"). 10) When the alarm interrupt is occurred, get the date and time of real time clock (the value is "Mon 01-01-01 00:00:00"). 11) When the interval interrupt is occurred, get the date and time of real time clock (the value is "Mon 01-01-01 00:00:05"). 5. Adjustment This sample software includes GNU17v2.x and GNU17v3.x source code. Before using the sample software, follow instructions below to adjust the sample software either to GNU17v2.x or GNU17v3.x used. 1)Open Import Wizard to import this sample program into workspace. [File] > [Import] > [General] > [Existing Projects into Workspace] 2)Select the folder containing the sample program. For GNU17v2.x, select "s1c17m11_rtch_gnu17v2" project. For GNU17v3.x, select "s1c17m11_rtch_gnu17v3" project. 3)Check "Copy projects into workspace" and click "Finish" to import. As to configurations on GNU17 in detail, refer to S5U1C17001C Manual. EOF