Microcontroller, operation system and control method thereof
AssigneeNuvoton Technology Corporation
InventorsTu-Yiin CHANG, Te-Tsoung TSAI
Life of this patent
Estimating the term…
Abstract
A microcontroller is coupled to a detection circuit which generates a detection signal. The microcontroller includes a processing circuit and an input-output circuit. The processing circuit generates an output signal according to the detection signal. In response to the output signal being at a specific level, the processing circuit enables a reset signal. The input-output circuit includes a latch circuit and a counter circuit. The latch circuit latches the output signal to generate a latched signal. The counter circuit starts adjusting the count value in response to the reset signal being enabled. The counter circuit changes the level of the latched signal in response to the count value being equal to a predetermined value.
Claims20
A microcontroller coupled to a detection circuit which generates a detection signal, comprising:
- a processing circuit generating an output signal according to the detection signal, wherein in response to the output signal being at a specific level, the processing circuit enables a reset signal;
- and
- an input-output circuit comprising:
- a latch circuit latching the output signal to generate a latched signal;
- and
- a first counter circuit starting to adjust a count value in response to the reset signal being enabled, wherein the first counter circuit changes a level of the latched signal in response to the count value being equal to a predetermined value.
An operation system comprising:
- a detection circuit configured to generate a detection signal;
- a microcontroller comprising:
- a processing circuit generating an output signal according to the detection signal, wherein in response to the output signal being at a specific level, the processing circuit enables a reset signal;
- and
- an input-output circuit comprising:
- a latch circuit latching the output signal to generate a latched signal;
- and
- a first counter circuit starting to adjust a count value in response to the reset signal being enabled, wherein the first counter circuit changes a level of the latched signal in response to the count value being equal to a predetermined value;
- a first induction winding for detecting an external signal and loading the latched signal into the external signal to generate a loaded signal;
- a diode coupled between the input-output circuit and the first induction winding;
- a second induction winding configured to output the external signal and receive the loaded signal;
- and
- a read circuit generating the external signal and operating according to the loaded signal.
A control method for an input-output circuit which comprises a latch circuit latching an output signal to generate a latched signal and a counter circuit, comprising:
- setting a predetermined value stored in the counter circuit;
- performing a count operation to adjust a count value;
- determining whether the count value is higher than the predetermined value;
- in response to determining that the count value is not higher than the predetermined value, disabling an overflow signal;
- and
- in response to determining that the count value is higher than the predetermined value, enabling the overflow signal to change a level of the latched signal.
Dependencies are inferred from the claim text.