by James Williams
An embedded system is a mixture of computer hardware and software. A microprocessor or a microcontroller is used to build it. In the hardware section, the embedded system contains many things like user interface, Input or Output interfaces, memory, display and many more.
The most important part of this system that creates its overall structure is the power supply, processor, memory, timers, serial communication ports, and specific circuits regarding the system application.
When it comes to measuring the intervals of time, timers are used to get the job done. It is also called a stopwatch when it plays the role of time elapsed measurement. It starts it counting from zero and goes upward in a gradual manner.
Contents
Following the article, you will find out different types of timers in embedded systems. Also, it is written in a very easy way so that you can have a good understanding from start to the end.
Without further ado, let’s get started.
A watchdog timer (WDT) is a device that is present in the embedded systems. If the system detects any malfunction while it is operating in its normal manner, the timer immediately works on solving the problem.
Likewise, when the software does not operate properly, or it hangs out of the blue, the timer uses the 16-bit counter to reset the microcontroller system. Therefore, if a computer is not embedded with WDT, it is best to install WDT expansion cards to be on the safer side.
Features
These are basic timers that you can use for various purposes, including starting a device or measuring the time duration.
Features
This kind of timer is a programmable one. It provides an output signal when it starts and ends in a programmable count. The output signal might cause an interrupt to occur. In an embedded system, interrupt is mainly a signal from the input. It tells the processor that a certain action for a specific situation is required.
Features
If a task is needed to be performed routinely, this timer is mandatory. Along with that, to measure massive durations, this device suits them best.
These can only be used for operating in a single mode (periodic and decrementing). They are used in RTOS (Real-Time Operating Systems) to generate periodic interrupts. These are then used in multitasking and context switching.
Features
These are mainly timers that are of low resolution in comparison to the General purpose and Systick timers.
Features
Without timers, the maintenance of timing is impossible. If you need to control the blinking rate of the LED or to generate a delay on the source code, the timers will surely play an important role as it is the heart of the embedded system.
If you check the website, you will find different information about the importance of timers in electronic devices. As technologies are upgrading to an enormous extent, so does the importance of timing devices.
Go through this article more than once so that you can get a good grip on it. Consult with experienced electrical workers or engineers for additional advice. They will provide you some suggestions that might help you out in the long run.
Have a good day!
About James Williams
Hi, This is James from HomerDIY. I have great experience in writing about everything related to Pump and DIY tools. For the last few years, I am researching the different types of tools and sharing my opinion on this blog.
Popular Posts