# US 11,700,003 B2 · Microcontroller, operation system and control method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,700,003 B2
- Document ID: US11700003B2
- Status: Granted
- Kind: B2
- Application number: 17/708,689
- Filed: 2022-03-30
- Published: 2022-11-03
- Granted: 2023-07-11
- Earliest claimed: 2021-04-29
- Assignees: Nuvoton Technology Corporation
- Applicants: Nuvoton Technology Corporation
- Inventors: Tu-Yiin Chang; Te-Tsoung Tsai
- Web page: https://patentgrep.com/patent/US11700003B2

## CPC

- H03K 21/38: Starting, stopping or resetting the counter (counters with a base other than a power of two H03K23/48, H03K23/66)
- H03K 21/10: comprising logic circuits
- H03K 3/2865: {ensuring a predetermined initial state when the supply voltage has been applied; storing the actual state when the supply voltage fails (digital storage cells each combining volatile and non-volatile storage properties G11C14/00)}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## 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.

## Claims

### Claim 1

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.

### Claim 2 (depends on 1)

The microcontroller as claimed in claim 1, wherein the detection circuit comprises a piezoelectric sensor.

### Claim 3 (depends on 1)

The microcontroller as claimed in claim 1, wherein in response to the reset signal being enabled, the first counter circuit counts the number of pulses of a first clock signal to adjust the count value.

### Claim 4 (depends on 3)

The microcontroller as claimed in claim 3, wherein the latch circuit comprises:
a D flip-flop comprising an input terminal, a clock terminal, an output terminal, and a set terminal, wherein the input terminal receives the output signal, the clock terminal receives a second clock signal, the output terminal outputs the latched signal, and the set terminal receives an overflow signal.

### Claim 5 (depends on 4)

The microcontroller as claimed in claim 4, wherein in response to the count value being equal to the predetermined value, the first counter circuit enables the overflow signal to change a level of the latched signal.

### Claim 6 (depends on 4)

The microcontroller as claimed in claim 4, wherein:
after enabling the reset signal, the processing circuit exits an operation mode and enters a power-down mode,
in the operation mode, the processing circuit generates the output signal according to the detection signal, and
in the power-down mode, the processing circuit stops generating the output signal.

### Claim 7 (depends on 6)

The microcontroller as claimed in claim 6, wherein in the operation mode, the processing circuit provides the second clock signal, and in the power-down mode, the processing circuit stops providing the second clock signal.

### Claim 8 (depends on 1)

The microcontroller as claimed in claim 1, wherein the first counter circuit comprises a register to store the predetermined value.

### Claim 9 (depends on 8)

The microcontroller as claimed in claim 8, wherein the processing circuit writes the predetermined value to the register.

### Claim 10 (depends on 1)

The microcontroller as claimed in claim 1, further comprising:
a comparison circuit comparing the detection signal with a reference signal to generate a comparison signal; and
a second counter circuit measuring a time interval when the level of the comparison signal reaches a predetermined level from an initial level to generate a counting result,
wherein the processing circuit processes the counting result to generate the output signal.

### Claim 11

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.

### Claim 12 (depends on 11)

The operation system as claimed in claim 11, wherein the detection circuit comprises a piezoelectric sensor.

### Claim 13 (depends on 11)

The operation system as claimed in claim 11, wherein in response to the reset signal being enabled, the first counter circuit counts the number of pulses of a first clock signal to adjust the count value.

### Claim 14 (depends on 13)

The operation system as claimed in claim 13, wherein the latch circuit comprises:
a D flip-flop comprising an input terminal, a clock terminal, an output terminal, and a set terminal, wherein the input terminal receives the output signal, the clock terminal receives a second clock signal, the output terminal outputs the latched signal, and the set terminal receives an overflow signal,
wherein in response to the count value being equal to the predetermined value, the first counter circuit enables the overflow signal to change a level of the latched signal.

### Claim 15 (depends on 14)

The operation system as claimed in claim 14, wherein:
after enabling the reset signal, the processing circuit exits an operation mode and enters a power-down mode,
in the operation mode, the processing circuit generates the output signal according to the detection signal, and
in the power-down mode, the processing circuit stops generating the output signal.

### Claim 16 (depends on 15)

The operation system as claimed in claim 15, wherein in the operation mode, the processing circuit provides the second clock signal, and in the power-down mode, the processing circuit stops providing the second clock signal.

### Claim 17 (depends on 15)

The operation system as claimed in claim 15, wherein:
in response to the processing circuit operating in the operation mode, a frequency of the second clock signal is higher than a frequency of the first clock signal, and
in response to the processing circuit operating in the power-down mode, the frequency of the second clock signal is lower than the frequency of the first clock signal.

### Claim 18 (depends on 11)

The operation system as claimed in claim 11, further comprising:
a comparison circuit comparing the detection signal with a reference signal to generate a comparison signal; and
a second counter circuit measuring a time interval when the level of the comparison signal reaches a predetermined level from an initial level to generate a counting result,
wherein the processing circuit processes the counting result to generate the output signal.

### Claim 19 (depends on 11)

The operation system as claimed in claim 11, wherein a cathode of the diode receives the latched signal, and an anode of the diode is coupled to the first induction winding.
