You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.6 KiB
60 lines
2.6 KiB
8 years ago
|
<script type="text/x-red" data-help-name="AudioOutputI2S">
|
||
|
<h3>Summary</h3>
|
||
|
<div class=tooltipinfo>
|
||
|
<p>Transmit 16 bit stereo audio to the
|
||
|
<a href="http://www.pjrc.com/store/teensy3_audio.html" target="_blank">audio shield</a>
|
||
|
or another I2S device, using I2S master mode.</p>
|
||
|
<p align=center><img src="img/audioshield_outputs.jpg"></p>
|
||
|
</div>
|
||
|
<h3>Audio Connections</h3>
|
||
|
<table class=doc align=center cellpadding=3>
|
||
|
<tr class=top><th>Port</th><th>Purpose</th></tr>
|
||
|
<tr class=odd><td align=center>In 0</td><td>Left Channel</td></tr>
|
||
|
<tr class=odd><td align=center>In 1</td><td>Right Channel</td></tr>
|
||
|
</table>
|
||
|
<h3>Functions</h3>
|
||
|
<p>This object has no functions to call from the Arduino sketch. It
|
||
|
simply streams data from its 2 input ports to the I2S hardware.</p>
|
||
|
<h3>Hardware</h3>
|
||
|
<p align=center><img src="img/audioshield_backside.jpg"></p>
|
||
|
<p>The I2S signals are used in "master" mode, where Teensy creates
|
||
|
all 3 clock signals and controls all data timing.</p>
|
||
|
<table class=doc align=center cellpadding=3>
|
||
|
<tr class=top><th>Pin</th><th>Signal</th><th>Direction</th></tr>
|
||
|
<tr class=odd><td align=center>9</td><td>BCLK</td><td>Output</td></tr>
|
||
|
<tr class=odd><td align=center>11</td><td>MCLK</td><td>Output</td></tr>
|
||
|
<tr class=odd><td align=center>22</td><td>TX</td><td>Output</td></tr>
|
||
|
<tr class=odd><td align=center>23</td><td>LRCLK</td><td>Output</td></tr>
|
||
|
</table>
|
||
|
<p>Audio from
|
||
|
master mode I2S may be used in the same project as ADC, DAC and
|
||
|
PWM signals, because all remain in sync to Teensy's timing</p>
|
||
|
<h3>Examples</h3>
|
||
|
<p>Nearly all the examples use this object. Here are some of the highlights:</p>
|
||
|
<p class=exam>File > Examples > Audio > HardwareTesting > PassThroughStereo
|
||
|
</p>
|
||
|
<p class=exam>File > Examples > Audio > SamplePlayer
|
||
|
</p>
|
||
|
<p class=exam>File > Examples > Audio > Recorder
|
||
|
</p>
|
||
|
<p class=exam>File > Examples > Audio > WavFilePlayer
|
||
|
</p>
|
||
|
<p class=exam>File > Examples > Audio > Effects > Chorus
|
||
|
</p>
|
||
|
<p class=exam>File > Examples > Audio > Synthesis > PlaySynthMusic
|
||
|
</p>
|
||
|
<h3>Notes</h3>
|
||
|
<p>Normally, this object is used with the Audio Shield, which
|
||
|
is controlled separately by the "sgtl5000" object.</p>
|
||
|
<p>Only one I2S input and one I2S output object may be used. Master
|
||
|
and slave modes may not be mixed (both must be of the same type).
|
||
|
</p>
|
||
|
</script>
|
||
|
<script type="text/x-red" data-template-name="AudioOutputI2S">
|
||
|
<div class="form-row">
|
||
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||
|
<input type="text" id="node-input-name" placeholder="Name">
|
||
|
</div>
|
||
|
</script>
|
||
|
|