CPU Loading

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

CPU Loading

293 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by guillaumeL on Wed Mar 07 04:02:11 MST 2012
Hello,

  I'm using a LPC1769 and I want to know what is the load of the CPU when the application is running. Is there an easy wait to know it?

Regards,
0 Kudos
2 Replies

259 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Wed Mar 07 10:10:57 MST 2012

Quote: rmteo
CPU load is always 100% when it is running.  :)


asm("wfi"); fixes this :D
Makes your load go to 0% immediately - but it then only recovers from an interrupt.

You might want to check up on programming skills for embedded targets - this is a bit different from a PC with a complete operating system.

You could run an embedded OS like FreeRTOS, that gives you the possibilities to run multiple tasks and to let the processor sleep while there is noting to do. There are different examples available using FreeRTOS and the website freertos.org contains all you need to know.

If you are new to embedded programming and an embedded operating system you might want to consider to buy and read the book "Using the FreeRTOS Real Time Kernel - LPC17xx edition" it contains a nice introduction not only for the novice embedded programmer but also for the more experienced programmer new to the LPC17xx and FreeRTOS.

Regards,[INDENT]Rob
[/INDENT]
0 Kudos

259 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rmteo on Wed Mar 07 04:45:49 MST 2012
CPU load is always 100% when it is running.  :)
0 Kudos