<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RTC time base in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201301#M2928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I need the RTC component and a PWM_LDD, not?&lt;/P&gt;&lt;P&gt;When I add the PWM_LDD component, how should I configure it? I've some errors.&lt;/P&gt;&lt;P&gt;&lt;A href="http://i.imgur.com/l0iJN47.png" style="font-size: 10pt; line-height: 1.5em;" title="http://i.imgur.com/l0iJN47.png"&gt;http://i.imgur.com/l0iJN47.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, once included the PWM_LDD I have to add a TimerUnit_LDD:&lt;/P&gt;&lt;P&gt;&lt;A href="http://i.imgur.com/AjDql17.png" title="http://i.imgur.com/AjDql17.png"&gt;http://i.imgur.com/AjDql17.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that all of this is whether the steps taken by Graeme Bragg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 08:17:39 GMT</pubDate>
    <dc:creator>mickkelo</dc:creator>
    <dc:date>2013-04-25T08:17:39Z</dc:date>
    <item>
      <title>RTC time base</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201291#M2918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use the KL25 Freedom board and running the RTC.&lt;/P&gt;&lt;P&gt;But the clock sources for the RTC are RTC_CLKIN, or 32KHz crystal which need external component, or the LPO 1KHz signal.&lt;/P&gt;&lt;P&gt;Is there a way to get 1 second time base with the LPO? I don't know how to configure the RTC to manage this not 32KHz frequency.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antoine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 13:36:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201291#M2918</guid>
      <dc:creator>antoineodonne</dc:creator>
      <dc:date>2012-12-07T13:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: RTC time base</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201292#M2919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the example driver for RTC configuration: &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL25Z&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL25Z&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;FRDM-KL25Z Product Summary Page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Download the &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL25Z&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;FRDM-KL25Z_QSP&lt;/A&gt;: FRDM-KL25Z Quick start package and check drivers folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 15:56:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201292#M2919</guid>
      <dc:creator>adriansc</dc:creator>
      <dc:date>2012-12-10T15:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: RTC time base</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201293#M2920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this thread is a couple of months old, but I have found a way to get the RTC working properly without needing to swap crystals, etc.&amp;nbsp; By default, there is no link between the internal 32K reference and the RTC clock input HOWEVER it is possible to route the internal 32K out to PTC3 and bring it back in on the RTC clock input on PTC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can configure the required settings in Codewarrior/Processor Expert on the CPU component (in expert mode) as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;set RTC Clock Input to "Enabled".&amp;nbsp; This sets PTC1 as an input for a clock source.&lt;/LI&gt;&lt;LI&gt;set MCGIRCLK source to "slow" in "Clock Source Settings" &amp;gt; "Clock Source Setting 0" &amp;gt; "Internal Reference Clock"&lt;/LI&gt;&lt;LI&gt;set ERCLK32K Clock Source to "RTC Clock Input" in "Clock Source Settings" &amp;gt; "Clock Source Setting 0" &amp;gt; "External Reference Clock"&lt;/LI&gt;&lt;LI&gt;Enable "CLKOUT pin control" in "Internal Peripherals" &amp;gt; "System Integration Module"&lt;UL&gt;&lt;LI&gt;set "CLKOUT pin" to "PTC3/LLWU_P7/..."&lt;/LI&gt;&lt;LI&gt;Set "CLKOUT pin output" to "MCGIRCLK"&lt;/LI&gt;&lt;LI&gt;This routes the internal 32K reference oscillator out to pin PTC3&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the RTC, set the "Clock Source" to "ERCLK32K".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And don't forget to put a wire link between PTC1 and PTC3 :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Low and behold, you have an internally-sourced 32K signal to run the RTC on the Freedom board without needing any external devices or needing to change any crystals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 17:14:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201293#M2920</guid>
      <dc:creator>heliosfa</dc:creator>
      <dc:date>2013-02-19T17:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: RTC time base</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201294#M2921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Graeme B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did as you said, but it doesn't run. The time shown doesn't change. I think that the reason could be inside the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; LDD_TDeviceData *MyRTCPtr;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; LDD_RTC_TTime TimePtr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; LDD_TUserData *UserDataPtrr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; //bool SoftInit; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;int main(void)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; /* Write your code here */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; //SoftInit=FALSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; MyRTCPtr=RTC1_Init((LDD_TUserData *)NULL, FALSE); //&amp;nbsp;&amp;nbsp; MyRTCPtr=RTC1_Init(UserDataPtrr, FALSE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; line-height: 1.5em;"&gt;&amp;nbsp; byte secc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; byte minn;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; byte horr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; for(;;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; RTC1_GetTime(MyRTCPtr,&amp;amp;TimePtr);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; secc=TimePtr.Second;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; minn=TimePtr.Minute;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; horr=TimePtr.Hour;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; line-height: 1.5em;"&gt;//Code for showing the Time (Printf, UART, LCD, etc)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; line-height: 1.5em;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; line-height: 1.5em;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; line-height: 1.5em;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //WAIT1_Waitms(100);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 17:46:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201294#M2921</guid>
      <dc:creator>LucioCanche</dc:creator>
      <dc:date>2013-04-08T17:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: RTC time base</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201295#M2922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Antoine&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I met the same issue.&lt;/P&gt;&lt;P&gt;The clock source should be selected by OSC32KSEL(19-18 bits) of SIM_SOPT1 (page 194 of KL25 Sub-Family Reference Manual). But it doesn't work. For each set of multiplekser the RTC_CLKIN source is selected.&lt;/P&gt;&lt;P&gt;Let me know if someone has better observation.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code compiled by mbed.org:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\rSOPT1:0x%.8x:0x%.8x\r",SIM,SIM-&amp;gt;SOPT1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM-&amp;gt;SOPT1 &amp;amp;= ~SIM_SOPT1_OSC32KSEL_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM-&amp;gt;SOPT1 |= SIM_SOPT1_OSC32KSEL(3); //LPO 1kHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\rSOPT1:0x%.8x:0x%.8x\r",&amp;amp;(SIM-&amp;gt;SOPT1),SIM-&amp;gt;SOPT1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("SIM_SOPT1_OSC32KSEL_MASK:0x%.8x\r",SIM_SOPT1_OSC32KSEL_MASK);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("SIM_SOPT1_OSC32KSEL(3):0x%.8x\r",SIM_SOPT1_OSC32KSEL(3));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("SIM_SOPT1_OSC32KSEL(2):0x%.8x\r",SIM_SOPT1_OSC32KSEL(2));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as work around I drived the RTC_CLKIN by external source or PWM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 15:41:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201295#M2922</guid>
      <dc:creator>marcinmarecki</dc:creator>
      <dc:date>2013-04-16T15:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: RTC time base</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201296#M2923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;set RTC Clock Input to "Enabled".&amp;nbsp; This sets PTC1 as an input for a clock source.&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;set MCGIRCLK source to "slow" in "Clock Source Settings" &amp;gt; "Clock Source Setting 0" &amp;gt; "Internal Reference Clock"&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;set ERCLK32K Clock Source to "RTC Clock Input" in "Clock Source Settings" &amp;gt; "Clock Source Setting 0" &amp;gt; "External Reference Clock"&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Enable "CLKOUT pin control" in "Internal Peripherals" &amp;gt; "System Integration Module"&lt;/EM&gt;&lt;UL style="padding: 0 0 0 2em; font-style: inherit; font-family: inherit;"&gt;&lt;LI style="margin-top: 0.5ex; margin-bottom: 0.5ex; font-style: inherit; font-family: inherit; list-style-type: inherit;"&gt;set "CLKOUT pin" to "PTC3/LLWU_P7/..."&lt;/LI&gt;&lt;LI&gt;Set "CLKOUT pin output" to "MCGIRCLK"&lt;/LI&gt;&lt;LI&gt;This routes the internal 32K reference oscillator out to pin PTC3&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;On the RTC, set the "Clock Source" to "ERCLK32K".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;And don't forget to put a wire link between PTC1 and PTC3 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done everything that &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A href="https://community.nxp.com/people/heliosfa"&gt;heliosfa&lt;/A&gt; &lt;/STRONG&gt;said and still doesn't work. If I write &lt;STRONG&gt;&lt;EM&gt;RTC1_Init(UserDataPtrr, FALSE)&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp; the date restarts every time is reconnected to the USB, and if I write &lt;EM&gt;&lt;STRONG&gt;RTC1_Init(UserDataPtrr, TRUE) &lt;/STRONG&gt;&lt;/EM&gt;the date doesn't change.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 14:21:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201296#M2923</guid>
      <dc:creator>mickkelo</dc:creator>
      <dc:date>2013-04-23T14:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: RTC time base</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201297#M2924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my workaround:&lt;/P&gt;&lt;P&gt;It required connection PTD1-&amp;gt;PTC1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;* Clock Generator generates wave on PTD1,&lt;/P&gt;&lt;P&gt;* the frequency is set up by CLOCK_PERIOD constant,&lt;/P&gt;&lt;P&gt;* the wave is symmetric 50/50.&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;void clockGenerator(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //0.000030517578125 = 1/32768&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //#define CLOCK_PERIOD (1/(2^15))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define CLOCK_PERIOD (0.000030517578125)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //#define CLOCK_PERIOD (0.01) &amp;lt;- 100Hz :smileyhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PwmOut out(PTD1); /* PTD1 is the same address as LED1 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; out.period(CLOCK_PERIOD);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // out requires a 2ms period&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; out.pulsewidth((CLOCK_PERIOD/2)); // out position determined by a pulsewidth between 1ms&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 15:21:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201297#M2924</guid>
      <dc:creator>marcinmarecki</dc:creator>
      <dc:date>2013-04-23T15:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: RTC time base</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201298#M2925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Marcin Marecki escribió:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Here is my workaround:&lt;/P&gt;
&lt;P&gt;It required connection PTD1-&amp;gt;PTC1&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;/*&lt;/P&gt;
&lt;P&gt;* Clock Generator generates wave on PTD1,&lt;/P&gt;
&lt;P&gt;* the frequency is set up by CLOCK_PERIOD constant,&lt;/P&gt;
&lt;P&gt;* the wave is symmetric 50/50.&lt;/P&gt;
&lt;P&gt;*/&lt;/P&gt;
&lt;P&gt;void clockGenerator(void)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //0.000030517578125 = 1/32768&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //#define CLOCK_PERIOD (1/(2^15))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define CLOCK_PERIOD (0.000030517578125)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //#define CLOCK_PERIOD (0.01) &amp;lt;- 100Hz :smileyhappy:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PwmOut out(PTD1); /* PTD1 is the same address as LED1 */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; out.period(CLOCK_PERIOD);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // out requires a 2ms period&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; out.pulsewidth((CLOCK_PERIOD/2)); // out position determined by a pulsewidth between 1ms&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, How can I use that with Codewarrior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 15:32:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201298#M2925</guid>
      <dc:creator>mickkelo</dc:creator>
      <dc:date>2013-04-23T15:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: RTC time base</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201299#M2926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using MQXLite.&lt;/P&gt;&lt;P&gt;From CodeWarrior window: Component Library, add PWM_LDD component (logic driver).&lt;/P&gt;&lt;P&gt;It is named PWM1 (in my project).&lt;/P&gt;&lt;P&gt;I "Component Inspector" select "Expert" page.&lt;/P&gt;&lt;P&gt;Output pin: select from list PTC1,&lt;/P&gt;&lt;P&gt;Period: 10ms (for 100Hz generator)&lt;/P&gt;&lt;P&gt;Starting pulse width: 5ms,&lt;/P&gt;&lt;P&gt;Auto initialisation: yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It starts in my project. I checked it by frequency meter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have some another questions and if it works in your project,&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 10:46:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201299#M2926</guid>
      <dc:creator>marcinmarecki</dc:creator>
      <dc:date>2013-04-24T10:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: RTC time base</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201300#M2927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect. It works.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 18:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201300#M2927</guid>
      <dc:creator>marcinmarecki</dc:creator>
      <dc:date>2013-04-24T18:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: RTC time base</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201301#M2928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I need the RTC component and a PWM_LDD, not?&lt;/P&gt;&lt;P&gt;When I add the PWM_LDD component, how should I configure it? I've some errors.&lt;/P&gt;&lt;P&gt;&lt;A href="http://i.imgur.com/l0iJN47.png" style="font-size: 10pt; line-height: 1.5em;" title="http://i.imgur.com/l0iJN47.png"&gt;http://i.imgur.com/l0iJN47.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, once included the PWM_LDD I have to add a TimerUnit_LDD:&lt;/P&gt;&lt;P&gt;&lt;A href="http://i.imgur.com/AjDql17.png" title="http://i.imgur.com/AjDql17.png"&gt;http://i.imgur.com/AjDql17.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that all of this is whether the steps taken by Graeme Bragg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 08:17:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-time-base/m-p/201301#M2928</guid>
      <dc:creator>mickkelo</dc:creator>
      <dc:date>2013-04-25T08:17:39Z</dc:date>
    </item>
  </channel>
</rss>

