# US 2025/0147907 A1 · Interface and microcontroller

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

- Number: US 2025/0147907 A1
- Document ID: US20250147907A1
- Status: Published application
- Kind: A1
- Application number: 18/272,794
- Filed: 2021-12-10
- Published: 2025-05-08
- Earliest claimed: 2021-01-18
- Assignees: Raspberry Pi Ltd
- Applicants: Raspberry Pi Ltd
- Inventors: Luke Michael WREN; Terence Leslie MACKOWN; Nicholas James FRANCIS
- Web page: https://patentgrep.com/patent/US20250147907A1

## CPC

- G06F 13/124: {where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine}
- G06F 13/20: for access to input/output bus
- G06F 13/385: {for adaptation of a particular data processing system to different peripheral devices}
- G06F 2213/40: Bus coupling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An I/O circuit block comprising: a register unit; an input/output unit connected to a plurality of terminals; an instruction memory; and a state machine configured to execute a program stored in the instruction memory to transfer data between the register unit and the input/output unit. The state machine is configured to execute instructions of an instruction set, the instruction set consisting of: an IN instruction to transfer a specified number of bits into the register unit; and an OUT instruction to transfer a specified number of bits from the register unit; a JMP instruction; a WAIT instruction; a PUSH instruction; a PULL instruction; a MOV instruction; an IRQ instruction; and a SET instruction.

## Claims

### Claim 1

An I/O circuit block comprising:
a register unit;
an input/output unit connected to a plurality of terminals;
an instruction memory; and
a state machine configured to execute a program stored in the instruction memory to transfer data between the register unit and the input/output unit.

### Claim 2 (depends on 1)

An I/O circuit block according to claim 1 wherein the state machine is configured to execute instructions of an instruction set, the instruction set including: an IN instruction to transfer a specified number of bits into the register unit; and an OUT instruction to transfer a specified number of bits from the register unit.

### Claim 3 (depends on 2)

An I/O circuit block according to claim 2 wherein the instruction set consists of: the IN instruction; the OUT instruction; a JMP instruction; a WAIT instruction; a PUSH instruction; a PULL instruction; a MOV instruction; an IRQ instruction; and a SET instruction.

### Claim 4

An I/O circuit block according to any one of the preceding claims wherein instructions executed by the state machine include an operation to set a value to at least one of the plurality of terminals concurrently with execution of another operation defined by the instruction.

### Claim 5

An I/O circuit block according to any one of the preceding claims wherein the register unit comprises an input FIFO register and an output FIFO register, the input FIFO register and the output FIFO register being configurable as a single, double length FIFO register for input or output.

### Claim 6

An I/O circuit block according to any one of the preceding claims wherein the state machine comprises an input shift register and an output shift register and is operable in an auto pull mode wherein a first predetermined number of bits are transferred from the register unit to the output shift register when the content of the output shift register is less than a first threshold and/or in an auto push mode wherein a second predetermined number of bits are transferred to the register unit from the input shift register when the content of the input shift register is greater than a second threshold.

### Claim 7

An I/O circuit block according to any one of the preceding claims wherein the state machine is configured to also execute instructions from one or more of: the register unit, a shift register within the state machine and a configuration register within the state machine.

### Claim 8

An I/O circuit block according to any one of the preceding claims wherein the state machine comprises a wrap control field specifying a sequence of instructions which are executed repeatedly.

### Claim 9

An I/O circuit block according to any one of the preceding claims wherein the state machine comprises a configurable clock divider to enable the state machine to operate at a lower clock rate than an external clock.

### Claim 10

An I/O circuit block according to any one of the preceding claims having a plurality of state machines and a corresponding plurality of register units.

### Claim 11 (depends on 10)

An I/O circuit block according to claim 10 wherein the instruction memory is shared between the plurality of state machines and configured for multiple simultaneous reads.

### Claim 12 (depends on 10, 11)

An I/O circuit block according to claim 10 or 11 wherein the input/output unit comprises a multiplexer configured to enable each of the state machines to be connected to any of the terminals.

### Claim 13 (depends on 10, 11, 12)

An I/O circuit block according to claim 10, 11 or 12 further comprising a plurality of IRQ flags and wherein each of the state machines can set and read each of the IRQ flags.

### Claim 14

An integrated circuit comprising at least one I/O circuit block according to any one of the preceding claims.

### Claim 15 (depends on 14)

An integrated circuit according to claim 14 further comprising a plurality of clock sources and wherein the integrated circuit is operable in a DORMANT mode wherein all the clock sources are halted.

### Claim 16 (depends on 15)

An integrated circuit according to claim 15, wherein the circuit is configured to wake from DORMANT mode on receipt of an input without a clock running.

### Claim 17 (depends on 14, 15, 16)

An integrated circuit according to claim 14, 15 or 16 further comprising a plurality of peripheral registers and wherein the peripheral registers are addressable bitwise in at least one of the following modes:
atomic XOR on write
atomic bitmask set on write
atomic bitmask clear on write.

### Claim 18 (depends on 17)

An integrated circuit according to claim 17 wherein the peripheral register comprises a read/write accessible register and a bus interposer which translates upstream atomic writes into downstream read-modify-write sequences.

### Claim 19 (depends on 14, 15, 16, 17, 18)

An integrated circuit according to any one of claims 14 to 18 further comprising at least one general purpose CPU.

### Claim 20

An assembler for a state machine having an instruction set consisting of: an IN instruction; an OUT instruction; a JMP instruction; a WAIT instruction; a PUSH instruction; a PULL instruction; a MOV instruction; an IRQ instruction; and a SET instruction.

### Claim 21

A program executable by a state machine having an instruction set consisting of: an IN instruction; an OUT instruction; a JMP instruction; a WAIT instruction; a PUSH instruction; a PULL instruction; a MOV instruction; an IRQ instruction; and a SET instruction.
