# US 12,407,351 B2 · Counter system and method of driving the counter system with zero accumulated error

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

- Number: US 12,407,351 B2
- Document ID: US12407351B2
- Status: Granted
- Kind: B2
- Application number: 18/415,622
- Filed: 2024-01-17
- Published: 2025-07-17
- Granted: 2025-09-02
- Earliest claimed: 2024-01-17
- Assignees: Mediatek Inc.
- Applicants: Mediatek Inc.
- Inventors: De-Hao Zhao
- Web page: https://patentgrep.com/patent/US12407351B2

## CPC

- H03K 23/005: {using minimum change code, e.g. Gray Code}
- H03K 21/40: Monitoring; Error detection; Preventing or correcting improper counter operation
- 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)

## Abstract

A method of driving a counter system with zero accumulated error includes setting a counter frequency of a counter transmitter, setting an original time count string according to the counter frequency, setting a first time count string of the counter greater than the original time count string, setting a second time count string of the counter smaller than the original time count string, and accumulating at least one first time count string and at least one second time count string over N cycles for generating a transmitter time count string. N is greater than two. A real time string generated by the original time count string over the N cycles is equal to the transmitter time count string.

## Claims

### Claim 1

A method of driving a counter system with zero accumulated error comprising:
setting a counter frequency of a counter transmitter;
setting an original time count string according to the counter frequency;
setting a first time count string of the counter greater than the original time count string;
setting a second time count string of the counter smaller than the original time count string; and
accumulating at least one first time count string and at least one second time count string over N cycles for generating a transmitter time count string;
wherein N is greater than two, a real time string generated by the original time count string over the N cycles is equal to the transmitter time count string.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first time count string is a ceiling function output of the original time count string, the second time count string is a floor function output of the original time count string, and the original time count string is a floating value.

### Claim 3 (depends on 1)

The method of claim 1, wherein the transmitter time count string is generated in a form of P binary bits, and 2P is greater than the transmitter time count string.

### Claim 4 (depends on 1)

The method of claim 1, wherein a timing error of the counter transmitter of the in each cycle is a positive timing error or a negative timing error, and an accumulated error of the counter transmitter over the N cycles is zero.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
truncating Q least significant bits (LSB) of the transmitter time count string for generating a truncated transmitter time count string; and
encoding the truncated transmitter time count string by a digital encoder of the counter transmitter for generating an encoded transmitter time count string;
where 2Q is greater than a decimal value of the first time count string.

### Claim 6 (depends on 5)

The method of claim 5, wherein a Hamming distance of two encoded transmitter time count strings over two consecutive cycles is smaller than or equal to one.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
decoding the encoded transmitter time count string by a digital decoder of a counter receiver for generating a decoded receiver time count string;
wherein a decoding frequency of the counter receiver is equal to the counter frequency of the counter transmitter.

### Claim 8 (depends on 5)

The method of claim 5, further comprising:
padding Q zero bits to the decoded receiver time count string for generating a receiver time count compensation string;
wherein a bit length of the receiver time count compensation string is equal to the transmitter time count string.

### Claim 9 (depends on 5)

The method of claim 5, wherein a timing error of the counter receiver in each cycle is a positive timing error or a negative timing error, a maximum absolute timing error of the counter receiver in each cycle is smaller than 2Q, an accumulated error of the counter receiver over the M cycles is zero, and M is greater than two.

### Claim 10 (depends on 5)

The method of claim 5, wherein the digital encoder is a Gray code encoder, and the digital decoder is a Gray code decoder.

### Claim 11

A counter system with zero accumulated error comprising:
a counter transmitter comprising:
a counter module;
a bit truncating module coupled to the counter module; and
a digital encoder coupled to the bit truncating module; and
a counter receiver comprising:
a digital decoder coupled to the digital encoder of the counter transmitter; and
a bit compensation module coupled to the digital decoder;
wherein the counter transmitter sets a counter frequency, the counter transmitter sets an original time count string according to the counter frequency, the counter transmitter sets a first time count string of the counter greater than the original time count string, the counter transmitter sets a second time count string of the counter smaller than the original time count string, the counter module accumulates at least one first time count string and at least one second time count string over N cycles for generating a transmitter time count string, Nis greater than two, a real time string generated by the original time count string over the N cycles is equal to the transmitter time count string.

### Claim 12 (depends on 11)

The system of claim 11, wherein the first time count string is a ceiling function output of the original time count string, the second time count string is a floor function output of the original time count string, and the original time count string is a floating value.

### Claim 13 (depends on 11)

The system of claim 11, wherein the transmitter time count string is generated in a form of P binary bits, and 2P is greater than the transmitter time count string.

### Claim 14 (depends on 11)

The system of claim 11, wherein a timing error of the counter module of the counter transmitter in each cycle is a positive timing error or a negative timing error, and an accumulated error of the counter module of the counter transmitter over the N cycles is zero.

### Claim 15 (depends on 11)

The system of claim 11, wherein the bit truncating module truncates Q least significant bits (LSB) of the transmitter time count string for generating a truncated transmitter time count string, the digital encoder encodes the truncated transmitter time count string for generating an encoded transmitter time count string, and 2Q is greater than a decimal value of the first time count string.

### Claim 16 (depends on 15)

The system of claim 15, wherein a Hamming distance of two encoded transmitter time count strings over two consecutive cycles is smaller than or equal to one.

### Claim 17 (depends on 15)

The system of claim 15, wherein the digital decoder of a counter receiver decodes the encoded transmitter time count string for generating a decoded receiver time count string.

### Claim 18 (depends on 15)

The system of claim 15, wherein the bit compensation module pads Q zero bits to the decoded receiver time count string for generating a receiver time count compensation string, and a bit length of the receiver time count compensation string is equal to the transmitter time count string.

### Claim 19 (depends on 15)

The system of claim 15, wherein a timing error of the counter receiver in each cycle is a positive timing error or a negative timing error, a maximum absolute timing error of the counter receiver in each cycle is smaller than 2Q, an accumulated error of the counter receiver over the M cycles is zero, and M is greater than two.

### Claim 20 (depends on 15)

The system of claim 15, wherein the digital encoder is a Gray code encoder, and the digital decoder is a Gray code decoder.
