<?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: PRESETCTRL in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/PRESETCTRL/m-p/707367#M28533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It doesn't matter, thanks for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp; Merry Christmas to you! :smileyhappy:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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>Wed, 20 Dec 2017 01:06:17 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-12-20T01:06:17Z</dc:date>
    <item>
      <title>PRESETCTRL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/PRESETCTRL/m-p/707364#M28530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i am using the LPC1347.&lt;/P&gt;&lt;P&gt;There is a register named PRESETCTRL.&lt;/P&gt;&lt;P&gt;With this register i can reset the Hardware from SSP0, I2C and SSP1.&lt;/P&gt;&lt;P&gt;To Reset the Hardware i must clear then coresponding bit to "0"&lt;/P&gt;&lt;P&gt;To activate the peripheral i must set the bit to "1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: Is there a minimum time limit, between reset and set to this bit,&lt;/P&gt;&lt;P&gt;so the Hardware can do the internal reset operation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reset the Bit&lt;/P&gt;&lt;P&gt;delay(xxx)&lt;/P&gt;&lt;P&gt;Set the Bit&lt;/P&gt;&lt;P&gt;wait until ready ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after doing the reset, do i need to wait until Hardware is ready ??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;very thanks for information&lt;/P&gt;&lt;P&gt;Bernd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2017 11:12:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/PRESETCTRL/m-p/707364#M28530</guid>
      <dc:creator>berndsirozynski</dc:creator>
      <dc:date>2017-08-25T11:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: PRESETCTRL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/PRESETCTRL/m-p/707365#M28531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernd Sirozynski,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The datasheet didn't give out the minimum, so I think you don't need to care about this time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You also don't need to add the delay to wait the hardware reset is ready.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have checked the official lpcopen code, take spi as an example, the peripheral reset code is wrote like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATIC INLINE void Chip_SYSCTL_PeriphReset(CHIP_SYSCTL_PERIPH_RESET_T periph)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_SYSCTL_AssertPeriphReset(periph);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_SYSCTL_DeassertPeriphReset(periph);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void Chip_SSP_Init(LPC_SSP_T *pSSP)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_Clock_EnablePeriphClock(Chip_SSP_GetClockIndex(pSSP));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_SSP_SetSSPClkDivider(pSSP, 1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_SYSCTL_PeriphReset(Chip_SSP_GetResetIndex(pSSP));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_SSP_Set_Mode(pSSP, SSP_MODE_MASTER);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_SSP_SetFormat(pSSP, SSP_BITS_8, SSP_FRAMEFORMAT_SPI, SSP_CLOCK_CPHA0_CPOL0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_SSP_SetBitRate(pSSP, 100000);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;STATIC INLINE void Chip_SYSCTL_AssertPeriphReset(CHIP_SYSCTL_PERIPH_RESET_T periph)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;LPC_SYSCTL-&amp;gt;PRESETCTRL &amp;amp;= ~(1 &amp;lt;&amp;lt; (uint32_t) periph);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;STATIC INLINE void Chip_SYSCTL_DeassertPeriphReset(CHIP_SYSCTL_PERIPH_RESET_T periph)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;LPC_SYSCTL-&amp;gt;PRESETCTRL |= (1 &amp;lt;&amp;lt; (uint32_t) periph);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find no delay and wait, so just write the code like the official code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Mon, 28 Aug 2017 03:30:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/PRESETCTRL/m-p/707365#M28531</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-08-28T03:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: PRESETCTRL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/PRESETCTRL/m-p/707366#M28532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh whats that ?&lt;BR /&gt;have i forgot to thank you kerry ????&lt;BR /&gt;Sorry, that is not my style.&lt;BR /&gt;Have very thanks for your good information.&lt;BR /&gt;and i wish a you a nice Christmas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bernd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:58:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/PRESETCTRL/m-p/707366#M28532</guid>
      <dc:creator>berndsirozynski</dc:creator>
      <dc:date>2017-12-19T09:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: PRESETCTRL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/PRESETCTRL/m-p/707367#M28533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It doesn't matter, thanks for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp; Merry Christmas to you! :smileyhappy:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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>Wed, 20 Dec 2017 01:06:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/PRESETCTRL/m-p/707367#M28533</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-12-20T01:06:17Z</dc:date>
    </item>
  </channel>
</rss>

