Micro-controller, control system and method thereof
Patent Information
- Application Number
- TW114122135
- Authority / Receiving Office
- TW · TW
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-03-27
- Filing Date
- 2025-06-13
- Publication Date
- 2026-10-01
- Estimated Expiration
- 2045-06-12
Smart Images

Figure TWG2TA001078200_001 
Figure TWG2TA001078200_002 
Figure TWG2TA001078200_003
Abstract
Claims
1. A microcontroller coupled to an external device having a plurality of channels for receiving a plurality of sampled signals and outputting one of the sampled signals according to the electrical characteristics of a switching signal, the microcontroller comprising: An input / output interface outputs the switching signal to the external device and receives the sampling signal from the external device; A conversion circuit converts a sampled signal from an external device to generate a complex conversion signal; a control circuit generates the switching signal and determines whether a specific condition has occurred; a storage circuit stores the conversion signals; and a central processing unit operates according to the conversion signals stored in the storage circuit when an interrupt signal is enabled, wherein: when the specific condition has not occurred, the control circuit adjusts the electrical characteristics of the switching signal to request the external device to provide the next sampled signal; and when the specific condition occurs, the control circuit enables the interrupt signal.
2. The microcontroller as described in claim 1, wherein the control circuitry is a peripheral direct memory access circuit.
3. The microcontroller as described in claim 2, wherein the conversion circuitry is an analog-to-digital converter.
4. The microcontroller as described in claim 3, wherein the specific case is that the conversion circuit performs the conversion of the sampled signals.
5. The microcontroller as claimed in claim 1, wherein the control circuit stores the switching signals in the storage circuit.
6. The microcontroller as claimed in claim 1, wherein the control circuit generates the switching signal, the external device outputs a first sampled signal from among the sampled signals according to the switching signal, the input / output interface transmits the first sampled signal to the conversion circuit, the conversion circuit converts the first sampled signal to generate a first conversion signal from among the conversion signals, the control circuit determines whether a specific condition has occurred, and when the specific condition has not occurred, the control circuit moves the first conversion signal to the storage circuit and adjusts the switching signal.
7. The microcontroller as described in claim 6, wherein the external device outputs a second sample signal from the sampled signals according to the adjusted switching signal, the input / output interface transmits the second sample signal to the conversion circuit, the conversion circuit converts the second sample signal to generate a second conversion signal from the conversion signals, the control circuit determines whether a specific condition has occurred, and when the specific condition has not occurred, the control circuit moves the second conversion signal to the storage circuit and readjusts the switching signal again.
8. A control system, comprising: An external device includes: a plurality of buttons; a plurality of sensors, each sensor detecting the pressing state of one of the buttons to generate a sampling signal; a switching circuit that outputs one of the sampling signals according to a switching signal, and includes: a plurality of channels, each channel coupled to one of the plurality of sensors for receiving the sampling signal generated by the corresponding sensor; a microcontroller including: an input / output interface that outputs the switching signal to the switching circuit and receives the sampling signal from the switching circuit; a conversion circuit that converts the sampling signal from the switching circuit to generate a plurality of conversion signals; a control circuit that generates the switching signal and determines whether a specific condition has occurred; a storage circuit that stores the conversion signals; and a central processing unit that, when an interrupt signal is enabled, operates according to the conversion signals stored in the storage circuit, wherein: when the specific condition has not occurred, the control circuit adjusts the electrical characteristics of the switching signal to request the switching circuit to provide the next sampling signal. When this specific condition occurs, the control circuit enables the interrupt signal.
9. The control system as described in claim 8, wherein the buttons are magnetic shaft buttons, the sensors are Hall sensors, and the switching circuit is an analog switch.
10. A control method applicable to a peripheral direct memory access circuit, comprising: Generate a switching signal; The switching signal is provided to an external device; Trigger a conversion circuit to convert a sampled signal from the external device; Determine whether a specific condition has occurred; if the specific condition has not occurred, perform a first operation; When the specific condition occurs, a second operation is performed, wherein: the first operation includes: shifting the output of the conversion circuit to a storage circuit; adjusting the electrical characteristics of the switching signal to request the external device to output a next sampling signal; converting the next sampling signal from the external device; and determining whether the specific condition has occurred; the second operation includes: shifting the output of the conversion circuit to the storage circuit; and issuing an interrupt signal to a central processing unit, causing the central processing unit to act according to the data stored in the storage circuit.
