<?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>LPC MicrocontrollersのトピックRe: Why no 32Khz clock?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-no-32Khz-clock/m-p/829124#M33116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More information.&amp;nbsp; The problem is the RTCX1 input threshold.&amp;nbsp; If I tie this low, then the RTCX2 output goes high and the OUTCLK and CLK_GCU_OUT0 both go high.&amp;nbsp; However, driving the RTCX1 input with a CMOS level crystal oscillator, which goes very close to rail-to-rail (0.1v to 3.2V) causes no output on the RTCX2 output or the OUTCLK or CLK_GCU_OUT0.&amp;nbsp; I put a 32.768Khz crystal on these pins along with two 20pF capacitors, still no output.&amp;nbsp; I see no documentation anywhere on how to drive the RTCX1 input, I had to guess this is a typical crystal inverting buffer.&amp;nbsp; I tried driving RTCX1 with the crystal oscillator (recommended by several posts on this forum, no luck.&amp;nbsp; I tried driving it through a small capacitor, various RC circuits, etc, nothing works.&amp;nbsp; I looked at several dev boards such as the Keil LPC1857/4357 boards, they just show a crystal with two 20pF caps, which doesnt work on my board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How am I supposed to drive RTCX1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Oct 2018 21:41:02 GMT</pubDate>
    <dc:creator>robertmorrison</dc:creator>
    <dc:date>2018-10-07T21:41:02Z</dc:date>
    <item>
      <title>Why no 32Khz clock?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-no-32Khz-clock/m-p/829123#M33115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom board with an LPC4357 208pin device with about 128K of code running USB, SPIFI, LCD, UARTs all working well.&amp;nbsp; I am trying to get the RTC to work, but cannot get the 32Khz clock to pulse.&amp;nbsp; I am driving the RTCX1 input with a 32Khz crystal oscillator and routed the 32Khz clock out to both a CLKOUT and a CLK_CGU_OUT0.&amp;nbsp; I cannot get either output to toggle.&amp;nbsp; If I select either output to IRC, both outputs toggle, so I know the port setup for the outputs is working.&amp;nbsp; I can see the RTCX1 input toggling so I know the RTC clock input is there.&amp;nbsp; I checked VBAT, is is showing 3.3V.&amp;nbsp; I use this code near startup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Cycle the RTC 32Khz osc power, enable 32Khz&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LPC_CREG-&amp;gt;CREG0 = 0xf04;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LPC_CREG-&amp;gt;CREG0 = 0xf03;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the debugger to confirm that the CREG0 values are correct.&amp;nbsp; I've written many permutations of this, delaying bits, waiting seconds before writing, etc, but the 32K clock never toggles, and the RTC register writes always lock up the chip.&amp;nbsp; I tried some experiments with the RTC Alarm, but reading or writing those registers causes the chip to lock up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&amp;nbsp; I've been fighting this for a week, and did a search on this forum for similar issues, but no-one else seems to have run into this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2018 22:30:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-no-32Khz-clock/m-p/829123#M33115</guid>
      <dc:creator>robertmorrison</dc:creator>
      <dc:date>2018-10-06T22:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why no 32Khz clock?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-no-32Khz-clock/m-p/829124#M33116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More information.&amp;nbsp; The problem is the RTCX1 input threshold.&amp;nbsp; If I tie this low, then the RTCX2 output goes high and the OUTCLK and CLK_GCU_OUT0 both go high.&amp;nbsp; However, driving the RTCX1 input with a CMOS level crystal oscillator, which goes very close to rail-to-rail (0.1v to 3.2V) causes no output on the RTCX2 output or the OUTCLK or CLK_GCU_OUT0.&amp;nbsp; I put a 32.768Khz crystal on these pins along with two 20pF capacitors, still no output.&amp;nbsp; I see no documentation anywhere on how to drive the RTCX1 input, I had to guess this is a typical crystal inverting buffer.&amp;nbsp; I tried driving RTCX1 with the crystal oscillator (recommended by several posts on this forum, no luck.&amp;nbsp; I tried driving it through a small capacitor, various RC circuits, etc, nothing works.&amp;nbsp; I looked at several dev boards such as the Keil LPC1857/4357 boards, they just show a crystal with two 20pF caps, which doesnt work on my board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How am I supposed to drive RTCX1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2018 21:41:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-no-32Khz-clock/m-p/829124#M33116</guid>
      <dc:creator>robertmorrison</dc:creator>
      <dc:date>2018-10-07T21:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why no 32Khz clock?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-no-32Khz-clock/m-p/829125#M33117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I went back to using a crystal and 20pF caps, and now I get the 32Khz clock.&amp;nbsp; I still get a hard fault trying to access the RTC timer registers (after waiting several seconds), but that's probably some sort of setup error.&amp;nbsp; Looks like driving the RTCX1 with a crystal oscillator does not work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 01:39:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-no-32Khz-clock/m-p/829125#M33117</guid>
      <dc:creator>robertmorrison</dc:creator>
      <dc:date>2018-10-08T01:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why no 32Khz clock?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-no-32Khz-clock/m-p/829126#M33118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;I'd highly recommend you to refer to the periph_rtc demo in the &lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/lpc-cortex-m-mcus/lpc4300-cortex-m4-m0/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX"&gt;LPCOpen library&lt;/A&gt; if you use an external crystal.&lt;BR /&gt;When using a 32.7 KHz oscillator, the input signal should&amp;nbsp; meet these below requirements.&lt;BR /&gt;1. The input voltage to the on-chip oscillators is limited to 1.2 V&lt;BR /&gt;2. The recommended amplitude of the clock signal is Vi(RMS) = 100 mV to 200 mV with a coupling capacitance of 5 pF to 10 pF.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 07:13:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-no-32Khz-clock/m-p/829126#M33118</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-10-09T07:13:09Z</dc:date>
    </item>
  </channel>
</rss>

