1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../css/nitro.css"> 8<TITLE>RTC Demos</TITLE> 9</HEAD> 10<BODY> 11<H1>Real-Time Clock Sample Demo</H1> 12 13<H2>Location</H2> 14<P><CODE>$TwlSDK/build/demos/rtc</CODE></P> 15 16<H2>Compilation</H2> 17<P>Move to the <CODE>$TwlSDK/build/demos/rtc</CODE> (or <CODE>$TwlSDK/build/demos.TWL/rtc</CODE>) directory, and enter</P> 18<BLOCKQUOTE><CODE>% make</CODE></BLOCKQUOTE> 19<P> Compiling will begin, and the SRL executable file and the NEF or TEF files having binary information will be generated in <CODE>$TwlSDK/build/demos/rtc/(sample name)/bin/(platform)/(target)/</CODE><BR> <CODE>$TwlSDK/build/demos.TWL/rtc/(sample name)/bin/(platform/(target)/</CODE>.</P> 20<BLOCKQUOTE></BLOCKQUOTE> 21<P> For example:</P> 22<BLOCKQUOTE><CODE>$TwlSDK/build/demos/rtc/rtc-1/bin/ARM9-TS/Release/main.srl</CODE></BLOCKQUOTE> 23<P>will be the executable file for the <CODE>rtc-1</CODE> demo.</P> 24 25<H2>Execution</H2> 26<H3>For NITRO ROMs</H3> 27 28<P>If using the Ensata emulator:</P> 29<UL> 30<LI>Execute NEF and SRL files with <CODE>ensata</CODE> 31</UL> 32<P>If using IS-NITRO-DEBUGGER:</P> 33<UL> 34<LI>Load and execute an NLF file with IS-NITRO-DEBUGGER 35<LI>Execute an SRL file with IS-NITRO-DEBUGGER 36<LI>Execute an SRL file with IS-NITRO-DEBUGGER using the <CODE>loadrun.exe</CODE> tool from a command line 37</UL> 38<P>If using IS-TWL-DEBUGGER:</P> 39<UL> 40<LI>Load and execute an NLF file with IS-TWL-DEBUGGER 41<LI>Execute an SRL file with IS-TWL-DEBUGGER 42<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line 43</UL> 44<H3>For TWL/NITRO Hybrid ROMs</H3> 45<P>If using IS-NITRO-DEBUGGER:</P> 46<UL> 47<LI>Execute an SRL file with IS-NITRO-DEBUGGER 48<LI>Execute an SRL file with IS-NITRO-DEBUGGER using the <CODE>loadrun.exe</CODE> tool from a command line 49</UL> 50<P>If using IS-TWL-DEBUGGER:</P> 51<UL> 52<LI>Load and execute a TLF file with IS-TWL-DEBUGGER 53<LI>Execute an SRL file with IS-TWL-DEBUGGER 54<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line 55</UL> 56<H3>For TWL Limited ROMs</H3> 57<P>If using IS-TWL-DEBUGGER:</P> 58<UL> 59<LI>Load and execute a TLF file with IS-TWL-DEBUGGER 60<LI>Execute an SRL file with IS-TWL-DEBUGGER 61<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line 62</UL> 63 64<H2>Description</H2> 65 66<TABLE width="720"> 67 <TBODY> 68 <TR> 69<TH>Name</TH> 70<TH>Directory</TH> 71<TH>Operation</TH> 72 </TR> 73 <TR> 74<TD width="187"><CODE>rtc-1</CODE></TD> 75<TD><CODE>demos</CODE></TD> 76<TD width="525">Tests the real-time clock operation features:<BR> -Read and change date and time<BR>-Read and change alarm setting values<BR>-Interrupt functions when alarms are generated 77 </TD> 78 </TR> 79 <TR> 80<TD><CODE>convert-1</CODE></TD> 81<TD><CODE>demos</CODE></TD> 82<TD>Tests the conversion function for date and time. It outputs the result to debug output. 83 </TD> 84 </TR> 85 <TR> 86<TD><CODE>swclock-1</CODE></TD> 87<TD><CODE>demos</CODE></TD> 88<TD>Tests the synchronization features of the software clock:<BR>-Software clock and RTC date/time comparison<BR>-Synchronization with RTC <BR>-Automatic synchronization when recovering from sleep mode<BR> 89 </TD> 90 </TR> 91 </TBODY> 92</TABLE> 93 94<H2>Operation</H2> 95<P>The <CODE>rtc-1</CODE> demo does not work properly with <CODE>ensata</CODE>.</P> 96 97<H2>See Also</H2> 98<P><A href="../../rtc/list_rtc.html">RTC Function List</A></P> 99 100<H2>Revision History</H2> 101<P> 1022008/07/11 Added the <CODE>swclock-1</CODE> demo.<BR> 2008/07/11 Changed the description corresponding to TWL.<BR> 2005/05/17 Added the <CODE>convert-1</CODE> demo.<BR> 2005/03/08 Standardized the Japanese term for "interrupt".<br /> 2005/03/02 Revised descriptions to reflect current support environment conditions.<br /> 2004/10/06 Changed description regarding the alarm interrupt feature of the <code>rtc-1</code> demo.<br /> 2004/09/16 Added description on the alarm interrupt feature of <code>rtc-1</code> demo.<br /> 2004/08/17 Standardized the notation of IS-NITRO-EMULATOR.<br /> 2004/07/10 Changed from <code>.bin</code> to <code>.srl</code>. 2004/06/18 Initial version.</P> 103<hr><p>CONFIDENTIAL</p></body> 104</HTML>