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.

44 satır
1.9KB

  1. <h3>Summary</h3>
  2. <p>Transmit 16 bit stereo audio as Digital S/PDIF.</p>
  3. <p align=center><img src="img/spdif_proto.jpg"></p>
  4. <h3>Audio Connections</h3>
  5. <table class=doc align=center cellpadding=3>
  6. <tr class=top><th>Port</th><th>Purpose</th></tr>
  7. <tr class=odd><td align=center>In 0</td><td>Left Channel</td></tr>
  8. <tr class=odd><td align=center>In 1</td><td>Right Channel</td></tr>
  9. </table>
  10. <h3>Functions</h3>
  11. <p>This object has no functions to call from the Arduino sketch. It
  12. simply streams data from its 2 input ports S/PDIF encoded digital
  13. audio on pin 22.</p>
  14. <h3>Hardware</h3>
  15. <p>The S/PDIF output signal can be used to drive an optical TOSLINK
  16. cable, or a standard (usually orange) RCA jack.</p>
  17. <table class=doc align=center cellpadding=3>
  18. <tr class=top><th>Pin</th><th>Signal</th><th>Direction</th></tr>
  19. <tr class=odd><td align=center>22</td><td>S/PDIF</td><td>Output</td></tr>
  20. </table>
  21. <p>For optical TOSLINK output, this
  22. <a href="https://www.oshpark.com/shared_projects/KcDBKHta" target="_blank">OSH Park board</a>
  23. can be used with the inexpensive Everlight PLT133/T6A connector, available
  24. at Digikey, 1080-1434-ND.
  25. </p>
  26. <h3>Examples</h3>
  27. <p>The AudioOutputSPDIF object can be used in place of the AudioOutputI2S object,
  28. <p>used in nearly all the examples. The WavFilePlayer shows how to substitute
  29. output objects for different hardware types.
  30. </p>
  31. <p class=exam>File &gt; Examples &gt; Audio &gt; WavFilePlayer
  32. </p>
  33. <h3>Credits</h3>
  34. <p><a href="https://github.com/FrankBoesing" target="_blank">Frank Boesing</a>
  35. developed the AudioOutputSPDIF code. The original
  36. <a href="https://forum.pjrc.com/threads/28639-S-pdif" target="_blank">forum disussion</a>
  37. included valuable input and code from "kpc".
  38. <h3>Notes</h3>
  39. <p>S/PDIF output uses the I2S hardware. This object can not be used
  40. together with any of the I2S objects, because it requires the I2S
  41. hardware with different internal settings.</p>
  42. </p>