Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

execution time is very slow

$
0
0
Hello Enigma,

6.5 us for the pulse due to pin toggling is indeed rather slow. I would suggest the following:

1) Ensure that the chip is running at the maximum frequency of 32 MHz
Code:

XMC_SCU_CLOCK_SetMCLKFrequency(32000);
2) Use direct register coding instead of through the LLD, for example to toggle pin P0.0:
Code:

PORT0->OMR = 0x00010001;
With the above steps, you should be able to get down to a pulse in the nanosecond range.

If further reduction is still required, you can also:
3) Select optimization level 1 in the active project properties (from project tab)

Regards,
Min Wei

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>