Difference between revisions of "Imxssi"
From ArmadeusWiki
(creation) |
|||
Line 1: | Line 1: | ||
− | + | SSI test tool, used for audio development purposes on [[APF9328]] and [[APF27]] | |
− | + | ||
+ | ==Installation== | ||
<pre class="host"> | <pre class="host"> | ||
$ make menuconfig | $ make menuconfig | ||
Line 10: | Line 11: | ||
</pre> | </pre> | ||
+ | ==Usage== | ||
* Requirements: | * Requirements: | ||
− | + | TSC210x mclk: 16MHZ<br> | |
FS rate: 32KHz<br> | FS rate: 32KHz<br> | ||
Line 24: | Line 26: | ||
</pre> | </pre> | ||
− | * | + | * imxssi can generate an audio signal. Just use it that way: |
− | + | ||
− | + | ||
<pre class="apf"> | <pre class="apf"> | ||
# imxssi [-t type] [-l level] [-s samples] [--loop] | # imxssi [-t type] [-l level] [-s samples] [--loop] | ||
Line 40: | Line 40: | ||
* next step: dma transfer | * next step: dma transfer | ||
+ | |||
+ | ==Dump SSI registers== | ||
+ | <pre class="apf"> | ||
+ | imxregs SCR_1 | ||
+ | imxregs SISR_1 | ||
+ | imxregs SIER_1 | ||
+ | imxregs STCR_1 | ||
+ | imxregs SRCR_1 | ||
+ | imxregs STCCR_1 | ||
+ | imxregs SRCCR_1 | ||
+ | imxregs SFCSR_1 | ||
+ | </pre> | ||
+ | |||
+ | ==Links== | ||
+ | |||
+ | [[Category:Audio]] |
Latest revision as of 10:56, 4 January 2010
SSI test tool, used for audio development purposes on APF9328 and APF27
Contents
Installation
$ make menuconfig
Package Selection for the target ---> Armadeus specific tools/utilities ---> [*] imxssi
Usage
- Requirements:
TSC210x mclk: 16MHZ
FS rate: 32KHz
- U-Boot: Enable i.MX register access from user space in U-Boot:
BIOS> run unlock_regs
- Linux: Load tsc driver
# modprobe tsc2102
- imxssi can generate an audio signal. Just use it that way:
# imxssi [-t type] [-l level] [-s samples] [--loop]
- type can be 0: triangular signal or 1: sinusoïdal signal
- samples: period of the signal in number of samples per channel
- level: Signal level coefficient [0.0 .. 1.0]
For example to produce a 300Hz 5v(pk-pk) sinusoid:
# imxssi -t 1 -s 50 -l 0.15
- next step: dma transfer
Dump SSI registers
imxregs SCR_1 imxregs SISR_1 imxregs SIER_1 imxregs STCR_1 imxregs SRCR_1 imxregs STCCR_1 imxregs SRCCR_1 imxregs SFCSR_1