This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

processing speed

Hello Sir,

I am using LPC2368 controller for my project.I am using 72 MHz frequency for my project which is the maximum frequency of CPU.

Actually I have certain section of code which must be process in 700 us but it is taking 800 us when i checked it on CRO.
I am using C programming .I can n,t reduce instruction .I want to know that is there is any way to increase processing speed of that particular code of section so that it will complete in require time.
I will be very thankful .

Thanks & Regards

Rohit

Parents
  • I want to know that is there is any way to increase processing speed of that particular code of section so that it will complete in require time.

    First you need to make sure that the MCU is set up for maximum performance. In particular, the Memory Acceleration Module (MAM) has to be set up properly. Also, make sure that the CPU clock frequency really is 72 MHz.
    Try different compiler settings (optimization levels, speed or size as optimization goal).

    I can n,t reduce instruction

    Why is that? You can try to identify performance bottlenecks in your code and eliminate them. For example, if your code performs many random accesses of table data in flash memory, it will be beneficial to have the table in RAM. Some loop unrolling might be beneficial also. It all depends on the exact nature of the code, of course.

Reply
  • I want to know that is there is any way to increase processing speed of that particular code of section so that it will complete in require time.

    First you need to make sure that the MCU is set up for maximum performance. In particular, the Memory Acceleration Module (MAM) has to be set up properly. Also, make sure that the CPU clock frequency really is 72 MHz.
    Try different compiler settings (optimization levels, speed or size as optimization goal).

    I can n,t reduce instruction

    Why is that? You can try to identify performance bottlenecks in your code and eliminate them. For example, if your code performs many random accesses of table data in flash memory, it will be beneficial to have the table in RAM. Some loop unrolling might be beneficial also. It all depends on the exact nature of the code, of course.

Children