Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:generator [2017/01/10 20:40]
darron [Schematic]
projects:generator [2017/03/07 05:57] (current)
darron [Schematic]
Line 31: Line 31:
 {{:projects:generator:generator.png?200}} {{:projects:generator:generator.png?200}}
  
-For PIC32 an external audio DAC is required. Only the CS4334K is supported +For PIC32 an external audio DAC is required. Only the CS4334K and PT8211 are supported 
-at present connected like this.+at present and are selected at compile time. Connection to either device is as follows.
  
 +<columns 50% 50% ->
 <code> <code>
-DAC is a CS4334K WITH Vcc = 5V.+CS4334K WITH Vcc = 5V.
  
 PIC32MX150   CS4334K         COMMENT PIC32MX150   CS4334K         COMMENT
 ----------   -------         ------- ----------   -------         -------
-PIN 15       PIN 4 MCLK      128X OVERSAMPLING CLOCK +PIN 15 RPB6  PIN 4 MCLK      128X OVERSAMPLING CLOCK 
-PIN 16       PIN 3 LRCK      SAMPLE RATE LEFT/RIGHT CLOCK +PIN 16 RPB7  PIN 3 LRCK      SAMPLE RATE LEFT/RIGHT CLOCK 
-PIN 17       PIN 1 SDATA     SERIAL DATA +PIN 17 RPB8  PIN 1 SDATA     SERIAL DATA INPUT 
-PIN 18       PIN 2 DEM       DE-EMPHASIS FILTER OFF/ON+PIN 18 RPB9  PIN 2 DEM/SCLK  DE-EMPHASIS FILTER OFF/ON 
 +PIN 25 SCK1                  UNUSED
 </code> </code>
 +
 +</columns>
 +
 +<columns 50% 50% ->
 +
 +<code>
 +PT8211 WITH Vdd = 5V.
 +
 +PIC32MX150   PT8211          COMMENT
 +----------   -------         -------
 +PIN 15 RPB6                  UNUSED
 +PIN 16 RPB7  PIN 2 WS        SAMPLE RATE LEFT/RIGHT CLOCK
 +PIN 17 RPB8  PIN 3 SDATA     SERIAL DATA INPUT
 +PIN 18 RPB9                  UNUSED
 +PIN 25 SCK1  PIN 1 BCK       SERIAL BIT CLOCK
 +</code>
 +
 +</columns>
 +
 +The CS4334K is a far superior device, but the PT8211 is incredibly cheap (15p each).
 +
 === Firmware === === Firmware ===
  
Line 121: Line 144:
 === Resources === === Resources ===
 [[http://en.wikipedia.org/wiki/Numerically_controlled_oscillator|NCO]] [[http://en.wikipedia.org/wiki/Numerically_controlled_oscillator|NCO]]
 +