Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LaHa_4843721
Level 1
Level 1
5 likes given First like received First like given

Hello everyone,

As the title i would love to know how long does it take for PSoC 5LP to process a command?

Thanks,

Hai Lai

0 Likes
1 Solution
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Hai Lai,

That can be a complex question.

A 'command' or opcode will will execute depending on your BUS_CLK frequency.   On the PSoC5LP this can be a maximum of 80MHz.

Depending if an opcode needs to read or write to EEPROM or peripheral device could slow down the execution speed.

Ultimately, what are you trying to determine?   If you're just trying to determine how long it takes to execute a function, there are better methods.   One method is to place a framing pulse using a GPIO pin before and after the function.

For example:

main()

{

...

Pin_0_0_Write(1);     // Turn on the GPIO pin

function_2_time();     // This is the function to time

Pin_0_0_Write(0);     // Turn off the GPIO pin

...

}

Use an scope to determine the timing of the pulse width.  This is the timing of the function.

Len

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

8 Replies