home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-2.iso / Developer / hardware / dsp / drbub / board / note2 < prev    next >
Encoding:
Text File  |  1991-09-07  |  3.8 KB  |  97 lines

  1. Building a DSP board, Part Two: Choosing the ADCs and DACs
  2. ----------------------------------------------------------
  3.  
  4. This is the second in a series on how I went about building
  5. a dual Motorola DSP56000 sampling board.
  6.  
  7. Choosing the DACs and ADCs turned out to be the most difficult choice
  8. I had to make.  There are two major types: serial and parallel.
  9.  
  10. At first, I thought I would use the 8bit parallel port on the 56000 to
  11. read in the LSB and MSB from each ADC.  This would require some tricky
  12. external logic and buffering, however.
  13.  
  14. After looking through the schematics to my Denon 1500 CD player and seeing
  15. that they used Burr-Brown DACs, I decided to give them a try.  Another
  16. big factor in this decision was that I could also get sample/holds,
  17. op-amps, and ADCs from them.  The biggest factor was that when I called
  18. them up, they said, "How many do you need?  We'll give them to you for
  19. free."  How could I turn that up?
  20.  
  21. I talked to a rep from Burr-Brown and found him to be extremely helpful.
  22. He suggested that I do double oversampling and use serial chips.  Why?
  23. Here's the advantage:
  24.               +---+
  25.          2xL-Ch-->|   |
  26.               |   |-----> Alternating 1xL-Ch, 1xR-Ch
  27.          2xR-Ch-->|   |
  28.               +---+
  29.              SM5805
  30.  
  31. 2xL-Ch is the left channel sampled at 88kHz.  1xL-Ch is the left
  32. channel decimated by two down to 44kHz.
  33.  
  34. The SM5805 is a killer digital filter that bandlimits the data to
  35. 22kHz, then decimates the data down to 44kHz.  There are two input
  36. channels of 88kHz and one output channel of 88kHz (two 44kHz channels).
  37.  
  38. Now I thought, "Gee, the alternating L/R channel output sure looks
  39. familiar, doesn't it?"  Sure enough, I found an application note
  40. for the 56000 for a digital equalizer.  It used the bitstream right
  41. out of a CD player, which alternates the left and right channels.
  42.  
  43. The 56000 has a synchronous serial port built in.  It can be configured
  44. to use an external bit rate clock and a word clock.  Words can be
  45. 8, 12, 16, or 24 bits long.
  46.  
  47. Now, another nice feature of the SM5805 (it's from Nippon Precision
  48. Circuits, BTW) is that it will provide ALL of the signals I need
  49. for sampling and reconstruction.  It will drive the S/H (sample/hold)
  50. , ADC, DAC, and supply the bit rate and word rate clocks for the
  51. 56000.  In other words, it's just plain awesome!
  52.  
  53. The best part of doing double oversampling is that you don't have to
  54. build a severe sampling or reconstruction filter.  The SM5805 supplies
  55. a really sharp low pass (90dB in 4kHz!), so you can build a gentle
  56. slope analog filter and spread your 90dB cut from 20kHz to 60kHz.
  57.  
  58. But wait, now how much would you pay?  The SM5805 *also* does
  59. upsampling from the alternating L/R channel to 2x L & R channel
  60. (basically reverse the block diagram above).
  61.  
  62. Here is a block diagram of what I have so far:
  63.  
  64. analog        analog
  65. signal----->filter----->S/H----->ADC----->SM5805------>56000
  66.  L-Ch         (LP)                ^
  67.                         |
  68. analog        analog                |
  69. signal----->filter----->S/H----->ADC--------+
  70.  R-Ch         (LP)
  71.  
  72. The true beauty of this design is that for the output, you simply
  73. reverse all of the arrows and replace the ADC with a DAC.
  74.  
  75. analog        analog
  76. signal<-----filter<-----S/H<-----DAC<-----SM5805<------56000
  77.  L-Ch         (LP)                |
  78.                         |
  79. analog        analog                |
  80. signal<-----filter<-----S/H<-----DAC<-------+
  81.  R-Ch         (LP)
  82.  
  83. We use the same S/H and analog filters as before.  We simply configure
  84. the SM5805 differently.
  85.  
  86. Okay, what chips did I use?  For the DAC, I used the PCM56; for the
  87. ADC, I used the PCM78; for the S/H, I used the SHC5320.  All of these
  88. chips had the ability to do double oversampling.  There are probably
  89. better chips out now, as I chose these about two years ago.
  90.  
  91. BTW, my Denon player uses the SM5801, which is the one channel,
  92. parallel version of the SM5805.  Also, it uses the PCM54, which
  93. is the parallel version of the PCM56.
  94.  
  95. Next: designing the analog filter.
  96.  
  97.