Hacker News new | ask | show | jobs
by sandGorgon 1869 days ago
are the 50hz chips manufactured at 50hz ? or are they downclocked to 50hz.

why cant you use higher clocked speeds ? like even 500 mhz, etc ? is there something special about 10 and 50hz ?

3 comments

If I understood it correctly, they’re not talking about a chip literally running at 50Mhz. They’re talking about polling a sensor in a loop running on a 50Mhz timer. The processor doing that is certainly running at a much higher clock frequency
Yeah they're talking about the control loop itself which means 50 times a second the computer/program looks at it's inputs (sensors) and changes it's outputs (commands to actuators). The actual computers processing that program run much faster.
To clarify, its 50Hz not 50MHz
and 50hz = 0.02s
That's the number of times per second the main update code runs and it has nothing to do with the number of clock cycles or instructions per second the CPU can run (other than the fact that the chip needs to be fast enough to have the update code finish before the next time it needs to start).
Exactly this. A chip running at 50hz would never be able to run a task 50 times per second when it's only executing 50 instructions per second.
ah thanks! that makes it so much clearer.
Chips have internal timers which can be configured programmatically so they emit hardware interrupt in specified time intervals. When the interrupt is emitted, CPU jumps to the method which executes the certain program. After that it goes idle, waiting for the next cycle.