# US 2014/0191796 A1 · Semiconductor device and command control method for the same

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

- Number: US 2014/0191796 A1
- Document ID: US20140191796A1
- Status: Published application
- Kind: A1
- Application number: 14/146,945
- Filed: 2014-01-03
- Published: 2014-07-10
- Earliest claimed: 2013-01-07
- Assignees: Renesas Electronics Corporation
- Applicants: Renesas Electronics Corporation
- Inventors: Yutaka YOSHIZAWA
- Web page: https://patentgrep.com/patent/US20140191796A1

## CPC

- H03K 5/00: Manipulating of pulses not covered by one of the other main groups of this subclass (circuits with regenerative action H03K3/00, H03K4/00; by the use of non-linear magnetic or dielectric devices H03K3/45)
- H03H 11/40: Impedance converters
- 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)
- H03H: IMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS (waveguides, resonators, lines or other devices of the waveguide type H01P)

## Abstract

According to an aspect of the present invention, in a semiconductor device, a plurality of commands for specifying a circuit configuration of an analog front-end unit are transmitted from a processing unit to the analog front-end unit, an analysis is performed on the plurality of commands received by the analog front-end unit, and when a circuit configuration of the analog front-end unit which is to be updated and is determined according to the plurality of commands includes a forbidden condition that has been previously set, updating processing of the circuit configuration according to the plurality of commands is stopped.

## Claims

### Claim 1

A semiconductor device comprising:
an analog front-end unit that comprises a plurality of analog functional circuits and a switching circuit group for switching a circuit format and a circuit configuration of the plurality of analog functional circuits;
a processing unit that comprises an arithmetic unit for executing a program and a memory for storing the program and a plurality of commands, the plurality of commands specifying at least a circuit format setting value that specifies the circuit format of the plurality of analog functional circuits; and
a communication interface that performs communication between the analog front-end unit and the processing unit, wherein
the analog front-end unit comprises:
a data stack that stores the plurality of commands transmitted from the processing unit;
a control register that stores a circuit configuration control value that specifies current configurations of the plurality of analog functional circuits;
a first circuit format analysis unit that refers to the plurality of commands stored to the data stack and identifies a circuit format of the analog functional circuit which is to be updated;
a forbidden condition selection unit that selects, from a plurality of forbidden conditions describing a forbidden connection state for each circuit format, the forbidden condition corresponding to the circuit format identified by the first circuit format analysis unit;
an error detection unit that refers to the plurality of commands stored to the data stack and, when a circuit configuration of the analog functional circuit which is to be updated includes the connection state satisfying the forbidden condition selected by the forbidden condition selection unit, generates an error code having an error value, the error value indicating that the circuit configuration which is to be updated satisfies the forbidden condition; and
a register control unit that updates the circuit configuration control value of the control register by the plurality of commands stored to the data stack in response to a command execution instruction transmitted from the processing unit, and
the register control unit stops updating the circuit configuration control value when the error code has the error value.

### Claim 2 (depends on 1)

The semiconductor device according to claim 1, wherein the first circuit format analysis unit includes an expected value of the circuit format setting value, compares the expected value with the circuit format setting value obtained from the data stack, and identifies the circuit format of the analog functional circuit which is to be updated.

### Claim 3 (depends on 2)

The semiconductor device according to claim 2, wherein
in regard to the circuit format setting value, a Hamming distance between the setting values indicating a different circuit format is three or greater, and
the first circuit format analysis unit identifies a circuit format corresponding to the expected value with a shortest Hamming distance from the circuit format setting value as the circuit format of the analog functional circuit which is to be updated.

### Claim 4 (depends on 3)

The semiconductor device according to claim 3, wherein
the circuit format setting value includes a plurality of switching values corresponding to respective circuit format control switches for switching the circuit format of the analog functional circuit, and at least one of the plurality of switching values is a redundant switching value including three or more consecutive identical values, and
the register control unit performs majority processing on the redundant switching value and outputs a value evaluated to have the greatest number in the majority processing as the switching value.

### Claim 5 (depends on 1)

The semiconductor device according to claim 1, wherein when the circuit format setting value is not included in the plurality of commands stored to the data stack, the first circuit format analysis unit refers to the circuit configuration control value stored to the control register and identifies the circuit format of the analog functional circuit which is to be updated.

### Claim 6 (depends on 1)

The semiconductor device according to claim 1, further comprising:
a second circuit format analysis unit that detects that the current circuit format of the analog functional circuit determined according to the circuit configuration control value stored to the control register is an instrumentation amplifier composed of a plurality of amplifiers and outputs an instrumentation amplifier detection signal; and
a reset command generation circuit that generates a reset command for initializing the circuit configuration control value stored to the control register at the time of updating the current circuit configuration control value according to the instrumentation amplifier detection signal.

### Claim 7 (depends on 1)

The semiconductor device according to claim 1, further comprising
a plurality of external input terminals that supply an input signal to the analog front-end unit;
a use terminal detection unit that evaluates whether or not there is a sensor element connected to the external input terminal and outputs a terminal state notification signal;
a third circuit format analysis unit that identifies an available circuit format according to the terminal state notification signal; and
a comparator that outputs the error code having the error value when the circuit format identified by the first circuit format analysis unit is inconsistent with the circuit format identified by the third circuit format analysis unit.

### Claim 8 (depends on 1)

The semiconductor device according to claim 1, further comprising:
an emergency notification flag register that stores an emergency notification flag; and
an emergency notification evaluation unit that outputs an error signal to the processing unit in response to a change in the error code from a normal value to the error value when the emergency notification flag has a first value,
wherein the first circuit format analysis unit rewrites the emergency notification flag from a second value to the first value when the identified circuit format is a circuit format for emergency notification that has been previously set.

### Claim 9 (depends on 1)

The semiconductor device according to claim 1, further comprising an invalid command analysis unit that generates the error code having the error value when the plurality of commands stored to the data stack includes an invalid command that is different from a command that has been previously specified.

### Claim 10 (depends on 1)

The semiconductor device according to claim 1, wherein the forbidden condition includes a direct current path condition that specifies a connection state of the switching circuit group having potentials that a direct current could flow through a signal path included in the analog functional circuit which is to be updated.

### Claim 11 (depends on 1)

The semiconductor device according to claim 1, wherein the processing unit refers to the error code and executes processing that has been previously set.

### Claim 12

A command control method for a semiconductor device comprising an analog front-end unit that comprises a plurality of analog functional circuits and a switching circuit group for switching a circuit format and a circuit configuration of the plurality of analog functional circuits, a processing unit that comprises an arithmetic unit for executing a program and a memory for storing the program and a plurality of commands specifying at least a circuit format setting value that specifies the circuit format of the plurality of analog functional circuits, and a communication interface that performs communication between the analog front-end unit and the processing unit, the command control method comprising the steps of:
receiving the plurality of commands from the processing unit and storing the plurality of commands to a data stack;
identifying a circuit format of the analog functional circuit which is to be updated according to the circuit format setting value included in the plurality of commands received by the analog front-end unit;
selecting, from a plurality of forbidden conditions describing a forbidden connection state for each circuit format, the forbidden condition corresponding to the circuit format;
referring to the plurality of commands stored to the data stack and, when a circuit configuration of the analog functional circuit which is to be updated includes the connection state satisfying the forbidden condition, generating an error code having an error value, the error value indicating that the circuit configuration which is to be updated satisfies the forbidden condition;
updating, when the error code has a normal value, the circuit configuration control value specifying a current circuit configuration of the analog functional circuit by the plurality of commands, the normal value indicating that the circuit configuration of the analog functional circuit which is to be updated does not satisfy the forbidden condition; and
maintaining, when the error code has the error value, the circuit configuration control value irrespective of the plurality of commands.

### Claim 13 (depends on 12)

The command control method according to claim 12, wherein in the identifying, an expected value of the circuit format setting value is compared with the circuit format setting value obtained from the data stack so as to identify the circuit format of the analog functional circuit which is to be updated.

### Claim 14 (depends on 13)

The command control method according to claim 13, wherein
in regard to the circuit format setting value, a Hamming distance between the setting values indicating different circuit formats is three or greater, and
in the identifying, a circuit format corresponding to the expected value with a shortest Hamming distance from the circuit format setting value is identified as the circuit format of the analog functional circuit which is to be updated.

### Claim 15 (depends on 14)

The command control method according to claim 14, wherein
the circuit format setting value includes a plurality of switching values corresponding to respective circuit format control switches for switching the circuit format of the analog functional circuit, and at least one of the plurality of switching values is a redundant switching value including three or more consecutive identical values, and
in the updating, majority processing is performed on the redundant switching value, and a value evaluated to have the greatest number in the majority processing is output as the switching value.

### Claim 16 (depends on 12)

The command control method according to claim 12, wherein when the circuit format setting value is not included in the received plurality of commands, in the identifying, the circuit configuration control value is referred to, and the circuit format of the analog functional circuit which is to be updated is identified.

### Claim 17 (depends on 12)

The command control method according to claim 12, further comprising:
detecting that a current circuit format of the analog functional circuit determined according to the circuit configuration control value is an instrumentation amplifier composed of a plurality of amplifier; and
generating, when the current circuit format is the instrumentation amplifier, a reset command for initializing the circuit configuration control value at the time of updating the current circuit configuration control value.

### Claim 18 (depends on 12)

The command control method according to claim 12, wherein
the semiconductor device has a plurality of external input terminals that supply an input signal to the analog front-end unit,
the command control method further comprises the steps of:
evaluating whether or not there is a sensor element connected to the external input terminal and outputting a terminal state notification signal; and
identifying an available circuit format according to the terminal state notification signal, and
when the circuit format is inconsistent with the identified available circuit format, the error code having the error value is output.

### Claim 19 (depends on 12)

The command control method according to claim 12, wherein when the identified circuit format is a circuit format for emergency notification that has been previously set, an error signal is output from the analog front-end unit to the processing unit in response to a change in the error code having the error value.

### Claim 20 (depends on 12)

The command control method according to claim 12, further comprising the step of generating, when an invalid command different from a command previously specified is included in the plurality of received commands, the error code having the error value.
