Microcontroller Timer Counter Dynamic Event Selection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Microcontroller Timer/Counter (T/C) units are limited in their control mechanisms, often requiring CPU intervention, which can introduce latency errors and restrict the CPU's ability to perform other duties, especially in applications requiring precise timing control.
Innovation Solution
The implementation of a dynamic control mechanism where the CPU generates control values to configure T/C units to respond to event signals, allowing autonomous operation and reducing reliance on CPU-controlled signals, thereby enhancing performance and minimizing latency errors.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If T/C units require CPU intervention for control, then the control mechanism is simple, but latency errors increase and CPU productivity decreases
Solution Approach 1:
The T/C unit is configured to autonomously select event signals based on control values stored in its own control register, without requiring continuous CPU intervention. The unit independently responds to event signals by selecting from M available signals according to the pre-stored control values, enabling self-service operation that reduces CPU workload while maintaining precise timing control
Solution Approach 2:
The CPU performs preliminary configuration by writing control values to the T/C unit's control register before autonomous operation begins. These pre-stored control values dictate which event signals the T/C unit should respond to, allowing the unit to operate independently without real-time CPU intervention, thus reducing latency while maintaining control precision
2Loss of time
If T/C units operate autonomously with event signal selection, then latency errors are reduced, but device complexity increases
Solution Approach 1:
The T/C unit incorporates dynamic event signal selection capability through a control register that can be configured with different control values. The unit dynamically selects which of the M event signals to respond to based on these control values, enabling flexible autonomous operation that reduces latency without requiring complex external control circuitry
Solution Approach 2:
The T/C unit is designed with universal event signal selection capability, where a single control register can direct the unit to respond to different event signals based on the stored control values. This multi-functional design allows one T/C unit to handle multiple event types autonomously, reducing the need for separate control mechanisms for each signal type
Data Source
AI summary
An apparatus and method for dynamically controlling functional aspects of an MCU. In one embodiment an MCU includes a central processing unit (CPU), a memory for storing instructions executable by the CPU, and a T/C channel coupled to receive control values generated by CPU and M event signals, wherein M is an integer greater than 1. The T/C channel is configured to select one or more of the M event signals based on the one or more of the control values. The T/C channel is configured to generate a control signal as a function of the selected one or more of the M event signals. A function of the T/C channel can be controlled by the control signal.


