Shop OBEX P1 Docs P2 Docs Learn Events
High-quality headphone audio solution for a Propeller app? — Parallax Forums

High-quality headphone audio solution for a Propeller app?

Lord SteveLord Steve Posts: 206
edited 2009-12-13 05:15 in Propeller 1
Currently I am planning on using a Microchip MCP4922 DAC to sit between the Prop and the audio amp stage.· However, the amplifier IC I wanted to use has gone into the "Last Time To Order" phase.· All I need is high-quality stereo·headphone output.· Is there a well-known beloved amp out there that will run from a single 3.3V supply?· Do I really need the DAC for high-quality?· What are some high-quality alternatives?

Thoughts are appreciated.· I'm·not an analog kinda guy.

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-12-12 21:45
    The stereo audio quality emanating from the Propeller Demo Board is really pretty good, and it doesn't use a DAC. You might consult the Demo Board schematic for part names and component values.

    -Phil
  • Lord SteveLord Steve Posts: 206
    edited 2009-12-12 23:22
    That was a good tip.· Thank you.· That amplifier IC only comes in a "space-saving", impossible-for-Steve-to-hand-solder package.· Can anyone recommend another similar IC which comes in a little bigger SMD package (or one with leads)?

    Is there a thread or documentation about how the DAC part of the audio path works?
  • Lord SteveLord Steve Posts: 206
    edited 2009-12-12 23:51
    Is it just using PWM?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-12-13 00:02
    It uses DUTY mode output from the counters, which is similar to PWM, but not the same thing.

    -Phil
  • lonesocklonesock Posts: 917
    edited 2009-12-13 00:35
    You may want to check out the MAX4410: www.maxim-ic.com/quick_view2.cfm/qv_pk/3459, it comes in a 14-pin TSSOP package.

    Jonathan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lonesock
    Piranha are people too.
  • Lord SteveLord Steve Posts: 206
    edited 2009-12-13 01:10
    Hey, lonesock.· Thanks for that tip, too.· It's even in production.· [noparse]:D[/noparse]· Now to wrap my head around the differential duty cycle stuff.

    Is the DIFFERENTIAL submode of the DUTY counter mode used in Chip McGracey's microphone_to_headphone.spin solely to provide TWO audio outputs (cuz the electret mic on the Demo Board is, after all, monaural)?· If there is an already-written explanation about this, please point me to it.· This just looks like PWM to me, but it's some different DUTY thing...idk.
  • AribaAriba Posts: 2,690
    edited 2009-12-13 04:50
    DUTY mode is PWM, but not in the usual form.

    Normal PWM has a constant frequency and only the High-Low ratio changes.

    At DUTY mode, the shorter Pulswith (High or Low) is always 1 clock cycle, and the other state (Low or High) is extended,
    so that you get the right pulswith. That is the frequency changes with the pulswith.
    On 50%:50% you have the highest frequency (40 MHz at 80 MHz system clock!). At 10%:90% you have a frequency of 8 MHz
    and at a 16 bit resolution the end values +$7FFF and -$7FFF have a frequency of 4.15 kHz.

    This makes this mode ideal for Audio, because quiet signals are around 50% with high frequencies, and loud signals cover the lower PWM frequency.

    But there are also downsides: A DUTY output produces a lot of RF noise in the air and on the print.
    And High-Quality is very relative. If you have single notes and low signals you will hear some digital noise. If you play music this is normaly not noticable.

    Andy
  • Lord SteveLord Steve Posts: 206
    edited 2009-12-13 05:15
    I figured it out!· Thanks for your pointers.· You saved me ~3$ off my BOM.· [noparse]:D[/noparse]

    Those counters are too cool.· I have attached a .spin program (based off of Chip's microphone_to_headphones.spin) which samples the propeller's built-in sine tables at different angular steps to generate two samples.· These are added together and given to a DUTY mode counter's FRQB at a rate of 44100 Hz.· In my opinion, the playback is high quality.
Sign In or Register to comment.