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.

57 lines
2.6KB

  1. <h3>Summary</h3>
  2. <p>Receive 16 bit stereo audio from the
  3. <a href="http://www.pjrc.com/store/teensy3_audio.html" target="_blank">audio shield</a>
  4. or another I2S device, using I2S master mode.</p>
  5. <p align=center><img src="img/audioshield_inputs.jpg"></p>
  6. <h3>Audio Connections</h3>
  7. <table class=doc align=center cellpadding=3>
  8. <tr class=top><th>Port</th><th>Purpose</th></tr>
  9. <tr class=odd><td align=center>Out 0</td><td>Left Channel</td></tr>
  10. <tr class=odd><td align=center>Out 1</td><td>Right Channel</td></tr>
  11. </table>
  12. <h3>Functions</h3>
  13. <p>This object has no functions to call from the Arduino sketch. It
  14. simply streams data from the I2S hardware to its 2 output ports.</p>
  15. <h3>Hardware</h3>
  16. <p align=center><img src="img/audioshield_backside.jpg"></p>
  17. <p>The I2S signals are used in "master" mode, where Teensy creates
  18. all 3 clock signals and controls all data timing.</p>
  19. <table class=doc align=center cellpadding=3>
  20. <tr class=top><th>Pin</th><th>Signal</th><th>Direction</th></tr>
  21. <tr class=odd><td align=center>9</td><td>BCLK</td><td>Output</td></tr>
  22. <tr class=odd><td align=center>11</td><td>MCLK</td><td>Output</td></tr>
  23. <tr class=odd><td align=center>13</td><td>RX</td><td>Input</td></tr>
  24. <tr class=odd><td align=center>23</td><td>LRCLK</td><td>Output</td></tr>
  25. </table>
  26. <p>Audio from
  27. master mode I2S may be used in the same project as ADC, DAC and
  28. PWM signals, because all remain in sync to Teensy's timing</p>
  29. <h3>Examples</h3>
  30. <p class=exam>File &gt; Examples &gt; Audio &gt; HardwareTesting &gt; PassThroughStereo
  31. </p>
  32. <p class=exam>File &gt; Examples &gt; Audio &gt; Recorder
  33. </p>
  34. <p class=exam>File &gt; Examples &gt; Audio &gt; Analysis &gt; PeakMeterStereo
  35. </p>
  36. <p class=exam>File &gt; Examples &gt; Audio &gt; Analysis &gt; FFT
  37. </p>
  38. <p class=exam>File &gt; Examples &gt; Audio &gt; Analysis &gt; SpectrumAnalyzerBasic
  39. </p>
  40. <p class=exam>File &gt; Examples &gt; Audio &gt; Effects &gt; Chorus
  41. </p>
  42. <p class=exam>File &gt; Examples &gt; Audio &gt; Effects &gt; Flange
  43. </p>
  44. <p class=exam>File &gt; Examples &gt; Audio &gt; Effects &gt; Filter
  45. </p>
  46. <p class=exam>File &gt; Examples &gt; Audio &gt; Effects &gt; Filter_FIR
  47. </p>
  48. <h3>Notes</h3>
  49. <p>Normally, this object is used with the Audio Shield, which
  50. is controlled separately by the "sgtl5000" object.</p>
  51. <p>Only one I2S input and one I2S output object may be used. Master
  52. and slave modes may not be mixed (both must be of the same type).
  53. </p>
  54. <p>I2S master objects can be used together with non-I2S input and output
  55. objects, for simultaneous audio streaming on different hardware.</p>