optical voice link


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Macgman2000 View Post
    Is it feasible or will the PIC latency in decoding limit the resolution of the audio?
    It's not so much the PIC's latency as it is the speed of the A/D converter. Some of the newer PICs are capable of decent sample rates, but the older ones aren't good for much more than LOW quality audio. Check the datasheet for your PIC in question for it's A/D converter max. sample rate.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    It's not so much the PIC's latency as it is the speed of the A/D converter. Some of the newer PICs are capable of decent sample rates, but the older ones aren't good for much more than LOW quality audio.
    I've heard this argument many times.
    But, I suppose it depends on what "Low Quality" means to the user.

    With a minimum TAD of 1.6us, it takes 11 TAD for 1 conversion, plus 2 TAD in-between conversions. That's 20.8uS.
    With a single channel of audio, you don't have to add in the acquisition time, because the A/D multiplexer never changes channels.

    So @ 20.8uS per sample, that's ...

    1/.0000208 = 48,076 samples/sec.
    Audio can't be too Bad, with a sample rate like that.

    But then, the hard part is sending the data fast enough.
    You'd need over 480kbaud. SPI might work. Infrared probably won't ????

    An easier way might be to use the comparators to create a PCM encoded data stream at 44kbits/sec.
    Good enough for an intercom system or something.
    And it's easier to play back too.
    <br>
    DT

  3. #3
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    It's not so much the PIC's latency as it is the speed of the A/D converter. Some of the newer PICs are capable of decent sample rates, but the older ones aren't good for much more than LOW quality audio. Check the datasheet for your PIC in question for it's A/D converter max. sample rate.
    I believe this is a myth generated by those who use the default adcin settings of the PBP compiler. For those people, it IS too slow, because the adcin compiler command consumes 100% of the cpu time, AND is much slower than necessary.

    For those who read the datasheet so they may operate the adc manually, you get full use of the cpu for other calculations during charge and conversion, and you get it to run at maximum speed. Take note that this is twice as easy with an 18F, because they have a built in sample delay, so there is only one start. With 16F and lower, you have to delay, then start the sample.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tenaja View Post
    I believe this is a myth generated.........

    For those who read the datasheet........
    I know that...you know that...a few other people know that...
    That 2nd line above is the kicker for most 'first timers'...

Similar Threads

  1. 2 Beam Optical Pulse Generator
    By WOZZY-2010 in forum Schematics
    Replies: 8
    Last Post: - 6th April 2010, 04:03
  2. USB Optical mouse as motor encoder
    By RodSTAR in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th August 2008, 15:09
  3. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  4. quickBlue™ Link
    By lester in forum Bluetooth
    Replies: 4
    Last Post: - 20th March 2007, 13:23
  5. Newbie radio link issue
    By George in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 28th February 2007, 04:28

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts