<?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 LPC54628 Writing directly to registers in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54628-Writing-directly-to-registers/m-p/920556#M36703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to write a sample code to drive an LED using the output pin of LPC54628 using uVision 5.28. Saw some examples in SDK 2.7.0 (gpio_led). However, I prefer to write to registers directly instead of using pin_mux files.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include "LPC54628.h"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main(void){&lt;/P&gt;&lt;P&gt;IOCON_PIO29 = 0x01;&lt;/P&gt;&lt;P&gt;&amp;nbsp;while(1){&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tried writing to IOCON register just to see whether the general idea/syntax is ok or not. It throws an error stating 'identifier "IOCON_PIO029" is undefined'.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone tell which files am I missing?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2019 06:45:21 GMT</pubDate>
    <dc:creator>aswinprabhu</dc:creator>
    <dc:date>2019-09-27T06:45:21Z</dc:date>
    <item>
      <title>LPC54628 Writing directly to registers</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54628-Writing-directly-to-registers/m-p/920556#M36703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to write a sample code to drive an LED using the output pin of LPC54628 using uVision 5.28. Saw some examples in SDK 2.7.0 (gpio_led). However, I prefer to write to registers directly instead of using pin_mux files.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include "LPC54628.h"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main(void){&lt;/P&gt;&lt;P&gt;IOCON_PIO29 = 0x01;&lt;/P&gt;&lt;P&gt;&amp;nbsp;while(1){&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tried writing to IOCON register just to see whether the general idea/syntax is ok or not. It throws an error stating 'identifier "IOCON_PIO029" is undefined'.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone tell which files am I missing?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 06:45:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54628-Writing-directly-to-registers/m-p/920556#M36703</guid>
      <dc:creator>aswinprabhu</dc:creator>
      <dc:date>2019-09-27T06:45:21Z</dc:date>
    </item>
  </channel>
</rss>

