[Hardware] software engineers to learn the timer

Software engineers can not understand hilarious hardware timers, although they also frequently used to timing, even the timing, not the same units, software engineers are generally timed units of seconds or more, while the majority of timer hardware engineer in milliseconds level, even to the microsecond, which is a software engineer incomprehensible. As for the timer, is not our fan above the timing device, although it microcontroller timers are also related. Generally, there will be a single-chip timers, and some have a dozen, but the microcontroller timer is a valuable resource, we can not be like a software program readily to sleep, in that case, the microcontroller performance will be greatly decreased, even leading to not start.
Microcontroller timer to be understood as a system clock based on the coordinated operation of the other hardware units, for example, we want to form a square wave, let the clock level program control, for example low level 1 millisecond, followed by 1 ms high, low and then followed by 1 millisecond, followed 1 millisecond high level, and so on.
Therefore, the timer is very important for hardware, software, hardware engineers to learn, need to correctly understand timer, a sleep of the just.

Guess you like

Origin blog.csdn.net/wwwmagic/article/details/91372478