<?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: LPC1114JBD48/333 Power Profile in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114JBD48-333-Power-Profile/m-p/1192411#M43119</link>
    <description>&lt;P&gt;Hi Xiang!&lt;/P&gt;&lt;P&gt;&amp;nbsp;At first I would like to thank you for your response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would like to leave the frequency of the core and peripherals at 4MHz, I need to keep the consumption as low as possible in the program loop.&lt;/P&gt;&lt;P&gt;SEL is configured for IRC and System AHB Div at 0x03.&lt;/P&gt;&lt;P&gt;New Code:&lt;/P&gt;&lt;P&gt;command[0] = 12000;&lt;BR /&gt;command[1] = 4000;&lt;BR /&gt;command[2] = CPU_FREQ_EQU;&lt;BR /&gt;command[3] = 0;&lt;BR /&gt;(*rom)-&amp;gt;pWRD-&amp;gt;set_pll(command, result);&lt;BR /&gt;&lt;BR /&gt;command[0] = 12;&lt;BR /&gt;command[1] = PWR_EFFICIENCY;&lt;BR /&gt;command[2] = 4;&lt;BR /&gt;(*rom)-&amp;gt;pWRD-&amp;gt;set_power(command, result);&lt;/P&gt;&lt;P&gt;but I still have HardFault_Handler after running this code.&lt;/P&gt;&lt;P&gt;any suggestion?&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 14:53:42 GMT</pubDate>
    <dc:creator>RodrigoLippi</dc:creator>
    <dc:date>2020-12-02T14:53:42Z</dc:date>
    <item>
      <title>LPC1114JBD48/333 Power Profile</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114JBD48-333-Power-Profile/m-p/1187444#M42992</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm having a problem with LPC1114JBD48/333.&lt;BR /&gt;My project is in progress and I need to solve the consumption problem. In the datasheet it says that the consumption would be below 1mA to 4MHz but it is consuming 3.5mA. This is not acceptable.&lt;BR /&gt;Below is my code:&lt;/P&gt;&lt;P&gt;/* set_pll mode options */&lt;BR /&gt;#define CPU_FREQ_EQU 0&lt;BR /&gt;#define CPU_FREQ_LTE 1&lt;BR /&gt;#define CPU_FREQ_GTE 2&lt;BR /&gt;#define CPU_FREQ_APPROX 3&lt;BR /&gt;/* set_pll result0 options */&lt;BR /&gt;#define PLL_CMD_SUCCESS 0&lt;BR /&gt;#define PLL_INVALID_FREQ 1&lt;BR /&gt;#define PLL_INVALID_MODE 2&lt;BR /&gt;#define PLL_FREQ_NOT_FOUND 3&lt;BR /&gt;#define PLL_NOT_LOCKED 4&lt;/P&gt;&lt;P&gt;/* set_power mode options */&lt;BR /&gt;#define PWR_DEFAULT 0&lt;BR /&gt;#define PWR_CPU_PERFORMANCE 1&lt;BR /&gt;#define PWR_EFFICIENCY 2&lt;BR /&gt;#define PWR_LOW_CURRENT 3&lt;BR /&gt;/* set_power result0 options */&lt;BR /&gt;#define PWR_CMD_SUCCESS 0&lt;BR /&gt;#define PWR_INVALID_FREQ 1&lt;BR /&gt;#define PWR_INVALID_MODE 2&lt;/P&gt;&lt;P&gt;typedef struct _PWRD {&lt;BR /&gt;void (*set_pll)(unsigned int cmd[], unsigned int resp[]);&lt;BR /&gt;void (*set_power)(unsigned int cmd[], unsigned int resp[]);&lt;BR /&gt;} PWRD;&lt;BR /&gt;typedef struct _ROM {&lt;BR /&gt;const PWRD * pWRD;&lt;BR /&gt;} ROM;&lt;BR /&gt;ROM ** rom = (ROM **) (0x1FFF1FF8 + 3 * sizeof(ROM**));&lt;BR /&gt;unsigned int command[4], result[2];&lt;/P&gt;&lt;P&gt;int main (void) {&lt;BR /&gt;&lt;BR /&gt;Delay_Ms(1000);&lt;BR /&gt;SystemCoreClockUpdate();&lt;BR /&gt;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL = 0x1F;&lt;BR /&gt;&lt;BR /&gt;command[0] = 4000;&lt;BR /&gt;command[1] = 4000;&lt;BR /&gt;command[2] = CPU_FREQ_EQU;&lt;BR /&gt;command[3] = 0;&lt;BR /&gt;(*rom)-&amp;gt;pWRD-&amp;gt;set_pll(command, result);&lt;BR /&gt;&lt;BR /&gt;command[0] = 4;&lt;BR /&gt;command[1] = PWR_EFFICIENCY;&lt;BR /&gt;command[2] = 4;&lt;BR /&gt;(*rom)-&amp;gt;pWRD-&amp;gt;set_power(command, result);&lt;BR /&gt;&lt;BR /&gt;while (1) /* Loop forever */&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;it's causes Hard Fault Handler.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There's something wrong?&lt;/P&gt;&lt;P&gt;Have a Nice Day!!!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 11:40:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114JBD48-333-Power-Profile/m-p/1187444#M42992</guid>
      <dc:creator>RodrigoLippi</dc:creator>
      <dc:date>2020-11-23T11:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114JBD48/333 Power Profile</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114JBD48-333-Power-Profile/m-p/1188045#M43013</link>
      <description>&lt;P&gt;Hi, Rodrigo,&lt;/P&gt;
&lt;P&gt;Regarding the set_pll function:&lt;/P&gt;
&lt;P&gt;command[0] = 4000;&lt;BR /&gt;command[1] = 4000;&lt;BR /&gt;command[2] = CPU_FREQ_EQU;&lt;BR /&gt;command[3] = 0;&lt;BR /&gt;(*rom)-&amp;gt;pWRD-&amp;gt;set_pll(command, result);&lt;/P&gt;
&lt;P&gt;It appears that above parameters are incorrect.&lt;/P&gt;
&lt;P&gt;Pls refer to Fig 12 in UM10398.pdf, the first parameter0 command[0] is the system PLL input frequency, depending on the SYSPLLCLKSEL reg setting, it can be irc_osc_clk(12MHz) or sys_osc_clk(it is dependent on the external crystal frequency on the XTALIN/XTALOUT pins), in default, it is 12MHz instead of 4000(4MHz) I think. The parameter1 is expected system clock (in kHz), I do not think it is 4MHz, it should be for example 50MHz, the value is 50000.,&lt;/P&gt;
&lt;P&gt;BTW, if you want to set up the main clock frequency as 4MHz, you do not need to use pll, you can use the 12MHz irc_osc_clk(12Mhz) as main clock, use the CLOCK DIVIDER to get 4MHz with 3 divider, the system clock will be 4MHz, it is okay.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xiangjun rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 09:22:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114JBD48-333-Power-Profile/m-p/1188045#M43013</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2020-11-24T09:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114JBD48/333 Power Profile</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114JBD48-333-Power-Profile/m-p/1192411#M43119</link>
      <description>&lt;P&gt;Hi Xiang!&lt;/P&gt;&lt;P&gt;&amp;nbsp;At first I would like to thank you for your response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would like to leave the frequency of the core and peripherals at 4MHz, I need to keep the consumption as low as possible in the program loop.&lt;/P&gt;&lt;P&gt;SEL is configured for IRC and System AHB Div at 0x03.&lt;/P&gt;&lt;P&gt;New Code:&lt;/P&gt;&lt;P&gt;command[0] = 12000;&lt;BR /&gt;command[1] = 4000;&lt;BR /&gt;command[2] = CPU_FREQ_EQU;&lt;BR /&gt;command[3] = 0;&lt;BR /&gt;(*rom)-&amp;gt;pWRD-&amp;gt;set_pll(command, result);&lt;BR /&gt;&lt;BR /&gt;command[0] = 12;&lt;BR /&gt;command[1] = PWR_EFFICIENCY;&lt;BR /&gt;command[2] = 4;&lt;BR /&gt;(*rom)-&amp;gt;pWRD-&amp;gt;set_power(command, result);&lt;/P&gt;&lt;P&gt;but I still have HardFault_Handler after running this code.&lt;/P&gt;&lt;P&gt;any suggestion?&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 14:53:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114JBD48-333-Power-Profile/m-p/1192411#M43119</guid>
      <dc:creator>RodrigoLippi</dc:creator>
      <dc:date>2020-12-02T14:53:42Z</dc:date>
    </item>
  </channel>
</rss>

