<?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: Configuring PCOR and PSOR register in FRDMKL25Z board! in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-PCOR-and-PSOR-register-in-FRDMKL25Z-board/m-p/1088061#M57652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To modify the PCOR or PSOR registers, they must be the ones pointed at,&lt;/P&gt;&lt;P&gt;not the Data Output register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is from the KL27 that I had at hand:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/** GPIO - Peripheral register structure */&lt;BR /&gt;typedef struct GPIO_MemMap {&lt;BR /&gt; uint32_t PDOR; /**&amp;lt; Port Data Output Register, offset: 0x0 */&lt;BR /&gt; uint32_t PSOR; /**&amp;lt; Port Set Output Register, offset: 0x4 */&lt;BR /&gt; uint32_t PCOR; /**&amp;lt; Port Clear Output Register, offset: 0x8 */&lt;BR /&gt; uint32_t PTOR; /**&amp;lt; Port Toggle Output Register, offset: 0xC */&lt;BR /&gt; uint32_t PDIR; /**&amp;lt; Port Data Input Register, offset: 0x10 */&lt;BR /&gt; uint32_t PDDR; /**&amp;lt; Port Data Direction Register, offset: 0x14 */&lt;BR /&gt;} volatile *GPIO_MemMapPtr;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2020 12:55:31 GMT</pubDate>
    <dc:creator>bobpaddock</dc:creator>
    <dc:date>2020-08-17T12:55:31Z</dc:date>
    <item>
      <title>Configuring PCOR and PSOR register in FRDMKL25Z board!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-PCOR-and-PSOR-register-in-FRDMKL25Z-board/m-p/1088057#M57648</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 have a buzzer connected to PORTA , Pin 12 on the FRDM KL25Z board. ( GPIOA_PDDR = 0x1000)&lt;/P&gt;&lt;P&gt;I can turn the Buzzer ON and OFF by writing GPIOA_PDOR=0X1000 and GPIOA_PDOR=0 respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However ,I modified the program to GPIOA_PCOR=0x1000 to turn ON the buzzer and GPIOA_PSOR=0X1000 to Turn OFF the Buzzer. The program fails to respond.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 18:00:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-PCOR-and-PSOR-register-in-FRDMKL25Z-board/m-p/1088057#M57648</guid>
      <dc:creator>suma_success</dc:creator>
      <dc:date>2020-08-12T18:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring PCOR and PSOR register in FRDMKL25Z board!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-PCOR-and-PSOR-register-in-FRDMKL25Z-board/m-p/1088058#M57649</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;Use the led demo to test&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;PCOR and PSOR. If it works, your code may have some problem.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 02:32:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-PCOR-and-PSOR-register-in-FRDMKL25Z-board/m-p/1088058#M57649</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-08-13T02:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring PCOR and PSOR register in FRDMKL25Z board!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-PCOR-and-PSOR-register-in-FRDMKL25Z-board/m-p/1088059#M57650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Da Li ,&lt;/P&gt;&lt;P&gt;The demo program works fine. Buzzer is connected to PORTA Pin 12. Buzzer works OK if i configure PDOR register as in the program below. However , PCOR and PSOR registers setting to&amp;nbsp;ON and OFF the buzzer&amp;nbsp;does not function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;buzzeroff&lt;BR /&gt; LDR R3, =GPIOA_PDOR &lt;BR /&gt; LDR R4, =0X0 &lt;BR /&gt; STR R4, [R3] &lt;BR /&gt; B loop&lt;BR /&gt; &lt;BR /&gt;buzzeron &lt;BR /&gt; LDR R0, =GPIOA_PDOR &lt;BR /&gt; LDR R1, =0x1000 &lt;BR /&gt; STR R1, [R0] &lt;BR /&gt; B loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2020 11:37:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-PCOR-and-PSOR-register-in-FRDMKL25Z-board/m-p/1088059#M57650</guid>
      <dc:creator>suma_success</dc:creator>
      <dc:date>2020-08-14T11:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring PCOR and PSOR register in FRDMKL25Z board!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-PCOR-and-PSOR-register-in-FRDMKL25Z-board/m-p/1088060#M57651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Why do you use asm? We have the sdk in&amp;nbsp;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/select" title="https://mcuxpresso.nxp.com/en/select"&gt;https://mcuxpresso.nxp.com/en/select&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;When you configure the PCOR ans PSOR. Use debugger to check the register if the value is changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 01:01:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-PCOR-and-PSOR-register-in-FRDMKL25Z-board/m-p/1088060#M57651</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-08-17T01:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring PCOR and PSOR register in FRDMKL25Z board!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-PCOR-and-PSOR-register-in-FRDMKL25Z-board/m-p/1088061#M57652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To modify the PCOR or PSOR registers, they must be the ones pointed at,&lt;/P&gt;&lt;P&gt;not the Data Output register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is from the KL27 that I had at hand:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/** GPIO - Peripheral register structure */&lt;BR /&gt;typedef struct GPIO_MemMap {&lt;BR /&gt; uint32_t PDOR; /**&amp;lt; Port Data Output Register, offset: 0x0 */&lt;BR /&gt; uint32_t PSOR; /**&amp;lt; Port Set Output Register, offset: 0x4 */&lt;BR /&gt; uint32_t PCOR; /**&amp;lt; Port Clear Output Register, offset: 0x8 */&lt;BR /&gt; uint32_t PTOR; /**&amp;lt; Port Toggle Output Register, offset: 0xC */&lt;BR /&gt; uint32_t PDIR; /**&amp;lt; Port Data Input Register, offset: 0x10 */&lt;BR /&gt; uint32_t PDDR; /**&amp;lt; Port Data Direction Register, offset: 0x14 */&lt;BR /&gt;} volatile *GPIO_MemMapPtr;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 12:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Configuring-PCOR-and-PSOR-register-in-FRDMKL25Z-board/m-p/1088061#M57652</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2020-08-17T12:55:31Z</dc:date>
    </item>
  </channel>
</rss>

