Play & Record PWM audio?


Results 1 to 9 of 9

Threaded View

  1. #8
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Play & Record PWM audio?

    It’s really a matter of reading a pin for a period and outputting that frequency.
    You could probably use PULSIN for a period after sorting out mic hardware to trigger the pic input.
    I used an LM358 op-amp to drive a condenser mic.

    I’m using DT’s timer, and most assembler now, but still a simple program.
    On interrupt, a frequency value is written to hardware PWM one way or another (that I haven’t settled on),
    then the frequency variable cleared before returning to main program.
    The main program only counts audio transitions with the frequency variable in a loop.

    Tonight I got desperate and connected a 64.5 MHz crystal to the pic 16F628A and it works fine!
    I don’t know if it’s actually clocking at that frequency, but I have used 24/25 MHz crystals which have always gone fine,
    and it’s now much faster than them.
    Last edited by Art; - 10th April 2015 at 13:59.

Similar Threads

  1. Port indexing & PWM for LED fade
    By MOUNTAIN747 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 2nd December 2013, 22:56
  2. Pwm & dac
    By J. Mark Wolf in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 24th October 2010, 12:59
  3. Audio Record/Playback Circuit
    By The Master in forum Off Topic
    Replies: 8
    Last Post: - 12th February 2010, 18:58
  4. 4 Low Speed PWM & HSERIN
    By MasterSparky in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th October 2007, 19:12
  5. MOSFET control using PWM & 16C711?
    By droptail in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th June 2005, 02:24

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