# US 2014/0207979 A1 · Dma-assisted irregular sampling sequences

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

- Number: US 2014/0207979 A1
- Document ID: US20140207979A1
- Status: Published application
- Kind: A1
- Application number: 13/745,425
- Filed: 2013-01-18
- Published: 2014-07-24
- Earliest claimed: 2013-01-18
- Assignees: Freescale Semiconductor, Inc.
- Applicants: Freescale Semiconductor, Inc.
- Inventors: Chongli Wu
- Web page: https://patentgrep.com/patent/US20140207979A1

## CPC

- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and systems are provided for performing sampling sequences using a control module. One exemplary method involves transferring sampling configuration information for a sampling sequence from memory to a conversion module. The conversion module performs the sequence in accordance with the configuration information by performing sampling processes at a plurality of sampling times to obtain a plurality of samples, and transferring results corresponding to the plurality of samples from the conversion module to the memory. At least some sampling times of the plurality of sampling times are nonperiodic with respect to the other sampling times of the plurality of sampling times. In exemplary embodiments, the sampling configuration information includes a sampling mode criterion, and the conversion module either automatically performs a sampling process or performs the sampling process in response to a trigger signal based on the sampling mode criterion for that sampling process.

## Claims

### Claim 1

A method of performing a sequence of a plurality of sampling processes by a control module, the method comprising:
sequentially transferring, by a direct memory access module, configuration information for each of the sampling processes of the sequence from memory to a configuration register of the conversion module, wherein the conversion module performs the sequence of sampling processes in accordance with the configuration information in the configuration register by sampling one or more analog signals at a plurality of sampling times to obtain a plurality of samples, a result of each sample being stored in a result register of the conversion module, at least some sampling times of the plurality of sampling times being nonperiodic with respect to the other sampling times of the plurality of sampling times; and
sequentially transferring, by the direct memory access module, results corresponding to the plurality of samples from the result register of the conversion module to the memory.

### Claim 2 (depends on 1)

The method of claim 1, wherein transferring the results comprises, for each result corresponding to a respective sample of the plurality of samples, transferring the result from the result register of the conversion module to the memory in response to an indication that the respective sampling process has been performed by the conversion module.

### Claim 3 (depends on 2)

The method of claim 2, wherein transferring the result from the result register of the conversion module to the memory comprises storing the result at a location in the memory corresponding to the respective sample.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
writing, by a processing module, the configuration information for the sequence to the memory; and
obtaining, by the processing module, the results of the sequence from the memory.

### Claim 5 (depends on 4)

The method of claim 4, wherein the configuration information includes an interrupt criterion for a sample of the plurality of samples, the method further comprising generating, by the conversion module, an interrupt based on the interrupt criterion after the sample is obtained, wherein the processing module obtains the results from the memory in response to the interrupt.

### Claim 6

(canceled)

### Claim 7 (depends on 1)

The method of claim 1, wherein the direct memory access module transfers a subset of the configuration information corresponding to an initial sampling process of the sequence from the memory to the configuration register of the conversion module, the subset of the configuration information including a sampling mode criterion, and wherein the method further comprises:
automatically performing, by the conversion module, the initial sampling process when the sampling mode criterion indicates a first sampling mode; and
performing, by the conversion module, the initial sampling process in response to a trigger signal when the sampling mode criterion indicates a second sampling mode.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
transferring, by the direct memory access module, a second subset of the configuration information corresponding to a second sampling process of the sequence from the memory to the configuration register of the conversion module after the initial sampling process is performed, the second sampling process following the initial sampling process in the sequence, the second subset of the configuration information including a second sampling mode criterion;
automatically performing, by the conversion module, the second sampling process when the second sampling mode criterion indicates the first sampling mode; and
performing, by the conversion module, the second sampling process in response to a second trigger signal when the second sampling mode criterion indicates the second sampling mode.

### Claim 9 (depends on 1)

The method of claim 1, further comprising, for each sampling process of the plurality of sampling processes:
automatically performing, by the conversion module, the sampling process when a subset of the configuration information corresponding to that sample indicates a first sampling mode; and
performing, by the conversion module, the sampling process in response to a trigger signal when the subset indicates a second sampling mode.

### Claim 10 (depends on 1)

The method of claim 1, further comprising writing, by a processing module, the configuration information to a block of addresses in the memory, wherein the direct memory access module sequentially transfers the configuration information from the block of addresses in the memory to the configuration register of the conversion module.

### Claim 11 (depends on 10)

The method of claim 10, wherein the direct memory access module sequentially transfers the results from the result register of the conversion module to a second block of addresses in the memory, and wherein the method further comprises obtaining, by the processing module, the results from the second block of addresses in the memory.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
determining, by the processing module, configuration information for a second sequence of sampling processes based on the results;
writing, by the processing module, the configuration information for the second sequence to the block of addresses in the memory;
sequentially transferring, by the direct memory access module, the configuration information for the second sequence from the block of addresses in the memory to the conversion module, wherein the conversion module performs the second sequence of sampling processes in accordance with the configuration information;
sequentially transferring, by the direct memory access module, the results of the second sequence of sampling processes from the conversion module to the second block of addresses in the memory; and
obtaining, by the processing module, the results of the second sequence of sampling processes from the second block of addresses in the memory.

### Claim 13

A method comprising:
transferring, by a direct memory access module coupled between memory and a conversion module, sampling configuration information for a first sample of a sampling sequence from the memory to a configuration register of the conversion module, wherein the conversion module obtains the first sample in accordance with the sampling configuration information in the configuration register either automatically or in response to a triggering signal based on a subset of the sampling configuration information that corresponds to a sampling mode criterion, a result of the first sample being stored in a result register of the conversion module; and
in response to identifying an indication the first sample has been obtained by the conversion module:
transferring, by the direct memory access module, the result of the first sample from the result register to the memory; and
transferring, by the direct memory access module, second sampling configuration information for a second sample of the sampling sequence from the memory to the configuration register, the second sample following the first sample in the sampling sequence, wherein the conversion module obtains the second sample in accordance with the second sampling configuration information in the configuration register either automatically or in response to a second triggering signal based on a subset of the second sampling configuration information that corresponds to a second sampling mode criterion.

### Claim 14

(canceled)

### Claim 15 (depends on 13)

The method of claim 13, the direct memory access module including a first transfer module and a second transfer module, the method further comprising, in response to receiving the indication:
incrementing the first transfer module to transfer the second sampling configuration information for the second sample from the memory to the configuration register of the conversion module; and
incrementing the second transfer module to transfer the result from the result register to a location in the memory corresponding to the first sample.

### Claim 16 (depends on 15)

The method of claim 15, further comprising, in response to receiving a second indication:
incrementing the first transfer module to transfer third sampling configuration information for a third sample from the memory to the configuration register of the conversion module, the third sample following the second sample in the sampling sequence; and
incrementing the second transfer module to transfer a second result of the second sample from the result register of the conversion module to a second location in the memory corresponding to the second sample.

### Claim 17 (depends on 13)

The method of claim 13, further comprising:
transferring a second result of the second sample from the result register of the conversion module to the memory.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
transferring third sampling configuration information for a third sample from the memory to the configuration register of the conversion module after the second sample is obtained, the third sample following the second sample in the sampling sequence, wherein the conversion module obtains the third sample in accordance with the third sampling configuration information either automatically or in response to a third triggering signal based on a subset of the third sampling configuration information that corresponds to a third sampling mode criterion; and
transferring a third result of the second sample from the result register of the conversion module to the memory, wherein:
the first sample is obtained at a first sampling time;
the second sample is obtained at a second sampling time;
the third sample is obtained at a third sampling time; and
a first difference between the first sampling time and the second sampling time is not equal to a second difference between the second sampling time and the third sampling time.

### Claim 19

A control module comprising:
a memory;
a processing module coupled to the memory to write configuration information for a sampling sequence to the memory and obtain results corresponding to the sampling sequence from the memory, wherein the sampling sequence comprises a plurality of sampling processes;
a conversion module to perform the sampling sequence in accordance with the configuration information by performing sampling processes at a plurality of sampling times to obtain the results, wherein at least some sampling times of the plurality of sampling times are nonperiodic with respect to the other sampling times of the plurality of sampling times; and
a direct memory access module coupled between the memory and the conversion module to transfer the configuration information for the sampling sequence from the memory to the conversion module and transfer the results from the conversion module to the memory, wherein the direct memory access module sequentially transfers sampling configuration information for individual sampling processes of the sampling sequence from the memory to a configuration register of the conversion module and sequentially transfers sample results for individual sampling processes of the sampling sequence from a result register of the conversion module to the memory in response to indications from the conversion module that sampling processes have been performed.

### Claim 20

(canceled)
