Can a timer, for example TIMER2, be used in multiple modes at the same time?
hello , Can a timer, for example TIMER2, be used in multiple modes at the same time? In other words, can it count down 4 minutes and output a continuous PWM signal at the same time?
Solution:Jump to solution
This is called multi tasking, and the atmega can not provide this..... But it can if you code it properly to do tow functions simultaneously at high speed, it will appear like in the same time
5 Replies
It depends on the specific microcontroller and its capabilities. In some microcontrollers, such as those with advanced timer features, it's possible to configure a timer to operate in multiple modes simultaneously. However, in many cases, timers are dedicated hardware units that can only operate in one mode at a time. You'll need to consult the datasheet or reference manual of the microcontroller you're using to determine if it supports concurrent operation of multiple timer modes.
just arduino
Solution
This is called multi tasking, and the atmega can not provide this..... But it can if you code it properly to do tow functions simultaneously at high speed, it will appear like in the same time
But a pmw signal..... I don't think that it can
If a timer is used as counter yes