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.

50 lines
2.3KB

  1. <h3>Summary</h3>
  2. <p>Transmit 16 bit stereo audio to 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_outputs.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>In 0</td><td>Left Channel</td></tr>
  10. <tr class=odd><td align=center>In 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 its 2 input ports to the I2S hardware.</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>22</td><td>TX</td><td>Output</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>Nearly all the examples use this object. Here are some of the highlights:</p>
  31. <p class=exam>File &gt; Examples &gt; Audio &gt; HardwareTesting &gt; PassThroughStereo
  32. </p>
  33. <p class=exam>File &gt; Examples &gt; Audio &gt; SamplePlayer
  34. </p>
  35. <p class=exam>File &gt; Examples &gt; Audio &gt; Recorder
  36. </p>
  37. <p class=exam>File &gt; Examples &gt; Audio &gt; WavFilePlayer
  38. </p>
  39. <p class=exam>File &gt; Examples &gt; Audio &gt; Effects &gt; Chorus
  40. </p>
  41. <p class=exam>File &gt; Examples &gt; Audio &gt; Synthesis &gt; PlaySynthMusic
  42. </p>
  43. <h3>Notes</h3>
  44. <p>Normally, this object is used with the Audio Shield, which
  45. is controlled separately by the "sgtl5000" object.</p>
  46. <p>Only one I2S input and one I2S output object may be used. Master
  47. and slave modes may not be mixed (both must be of the same type).
  48. </p>