Multi-Mode Timer Unit Circuit for Flexible PWM Output Control
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The development of microcontrollers with timer unit circuits is hindered by high costs due to the need for dedicated products for specific control applications, such as motor control, limiting versatility and increasing costs.
Innovation Solution
A timer unit circuit with a first and second counter circuit, and a selection circuit that allows for synchronization with different clock and trigger signals, enabling flexible output modes for PWM waveforms, including normal and reversed phases, and single or dual phase outputs, thereby enhancing versatility and reducing development costs.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If a dedicated microcontroller is designed for specific control applications (e.g., motor control), then control performance and reliability are improved, but development costs increase and versatility decreases
Solution Approach 1:
The timer unit circuit is designed to perform multiple functions by selecting different clock signals and trigger signals. The same counter circuit can generate PWM waveforms for motor control, measure pulse widths, or count events by simply changing the selected clock and trigger sources, eliminating the need for dedicated hardware for each function
2Reliability
If a dedicated microcontroller is designed for specific control applications, then control functionality is improved, but development costs increase
Solution Approach 1:
The timer unit circuit provides dedicated control functionality through selective signal routing. By choosing specific clock signals (e.g., PWM carrier frequency) and trigger signals (e.g., zero-crossing detection), the circuit achieves reliable motor control without requiring a completely dedicated microcontroller design, thereby reducing development costs
3Measurement precision
If multiple timers with fixed roles are used for motor control, then control precision is improved, but device complexity increases
Solution Approach 1:
The timer unit circuit dynamically changes its function by selecting different clock and trigger signals based on control requirements. The same hardware circuit can be configured for PWM generation, pulse width measurement, or event counting, providing precise control functionality without requiring multiple fixed-role timer units
Data Source
AI summary
A timer unit having a first output mode and a second output mode, the timer unit includes a first register that stores a first value, a second register that stores a second value, a third register that stores a third value, a counter that generates a count signal based on the first value, and an output circuit that outputs a first output signal and a second output signal. When the timer unit is set in the first output mode, the output circuit outputs the first output signal having a pulse width determined by the count signal and the second value, and outputs the second output signal having a pulse width determined by the count signal and the third value. When the timer unit is set in the second output mode, the output circuit outputs the first output signal having a pulse width determined by the count signal, the second value and the third value.


