- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Tags:
- psoc 5lp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
"Engineering is an Art. The Art of Compromise."