LPC1100XL power profiles

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1100XL power profiles

898 Views
ramzis_
Contributor I

Hellow, 

I want to ask about LPC1114FHI33/303 power profiles. UM10398 mentions-

page 6: LPC1100XL  "LPC1100L series features plus the following new features" so Power profiles + other functions;

page 8: Power profiles ... (On LPC1100L and LPC1100XL parts only.);

page 13: LPC1114FHI33/303 Power profiles - yes;

but page 61: The power profiles are available for parts LPC11(D)1x/102/202/302 only (LPC1100L
series).
When I using example code on LPC1114FHI33/303 from this manual, it's causes Hard Fault Handler.
On LPC1114FBD48/302 same code works fine.
So LPC1100XL series can use power profiles?

0 Kudos
4 Replies

641 Views
Karol_VT
Contributor I

Hi,

We are using LPC1114FBD48/301.

Now due to a problem with availability of this type we want to use LPC1114FBD48/302 interchangeably.

Please let me know if the code writen for LPC1114FBD48/301 will work the same on the type LPC1114FBD48/302 ?

Regards,

Karol

0 Kudos

781 Views
RodrigoLippi
Contributor I

Hello,
I'm having a problem with LPC1114JBD48/333.
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.
Below is my code:

/* set_pll mode options */
#define CPU_FREQ_EQU 0
#define CPU_FREQ_LTE 1
#define CPU_FREQ_GTE 2
#define CPU_FREQ_APPROX 3
/* set_pll result0 options */
#define PLL_CMD_SUCCESS 0
#define PLL_INVALID_FREQ 1
#define PLL_INVALID_MODE 2
#define PLL_FREQ_NOT_FOUND 3
#define PLL_NOT_LOCKED 4

/* set_power mode options */
#define PWR_DEFAULT 0
#define PWR_CPU_PERFORMANCE 1
#define PWR_EFFICIENCY 2
#define PWR_LOW_CURRENT 3
/* set_power result0 options */
#define PWR_CMD_SUCCESS 0
#define PWR_INVALID_FREQ 1
#define PWR_INVALID_MODE 2

typedef struct _PWRD {
void (*set_pll)(unsigned int cmd[], unsigned int resp[]);
void (*set_power)(unsigned int cmd[], unsigned int resp[]);
} PWRD;
typedef struct _ROM {
const PWRD * pWRD;
} ROM;
ROM ** rom = (ROM **) (0x1FFF1FF8 + 3 * sizeof(ROM**));
unsigned int command[4], result[2];

int main (void) {

Delay_Ms(1000);
SystemCoreClockUpdate();
LPC_SYSCON->SYSAHBCLKCTRL = 0x1F;

command[0] = 4000;
command[1] = 4000;
command[2] = CPU_FREQ_EQU;
command[3] = 0;
(*rom)->pWRD->set_pll(command, result);

command[0] = 4;
command[1] = PWR_EFFICIENCY;
command[2] = 4;
(*rom)->pWRD->set_power(command, result);

while (1) /* Loop forever */
{

}
}

 it's causes Hard Fault Handler.

There's something wrong?

Have a Nice Day!!!

0 Kudos

800 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Ramunas Pacevicius,

    After checking it with our according department.

    The power profile also available for LPC1100XL series, the state on page61 is error. We will update this point in the next version.

   So, now your problem may still need to check the code.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

800 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Ramunas Pacevicius,

    Thank you for your question, it turns out the bug of the LPC11XX user manual bug.

    When you test the LPC1114FHI33/303 power profiles, did you disable the interrupt? Or do you use the same code which is downloaded to LPC1114FBD48/302?

   About this point, I already check it with our according department, after I got the reply, I will let you know.

  Now, please wait patiently.

  Thanks a lot for your understanding.


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos