We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
i need to know the cpu-clock of the cpu i am running my program on.
do you have an idea how i can calculate the actual cpu-clock on an C167?
how i can calculate the actual cpu-clock on an C167?
Generally speaking you shouldn't be trying to. Embedded software absolutely has to be configured for the environment it's to be embedded into. The CPU clock frequency should be the first and foremost piece of environment specification to be fixed.
You can't really calculate the CPU clock speed in any truly useful way. The only option would be to compare the speed of a delay loop against that of a known reference clock external to the controller.
This is really something you want to control, not measure.