FREQOUT 4mhz


Closed Thread
Results 1 to 21 of 21

Thread: FREQOUT 4mhz

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    It's not a buzzer, it's just a transducer. And like I say, FREQOUT (according to manual) is limited at 4mhz and would like to know more.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    Ok -- good link -- I'll try the PWM command instead.

  3. #3
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    I seem to recall the FREQOUT command is only accurate at 4 MHz. If you're clocking at 8 MHz, divide the value by 2 (and so forth). The command itself should work at any clock speed. Just take into account any divisor needed to achieve your 6500 Hz.

    If you have Mister E PIC Multi-Calc, you can use the Timer Helper to create any frequency the processor is capable of, and at any chosen Fosc.

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    From the manual:
    FREQOUT works best with a 20MHz or 40MHz oscillator. It can also work with a
    10MHz or 8MHz oscillator and even at 4MHz, although it will start to get very hard
    to filter and be of fairly low amplitude. Any other frequency will cause FREQOUT to
    generate a frequency that is a ratio of the actual oscillator used and 20MHz.
    For simple beep type of tone from a piezo buzzer just use PWM, HPWM or "manually" run the (E)CCP module.

    /Henrik.

  5. #5
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    FREQOUT can do dual frequency (polyphonic), and that is a mess at 4MHz.
    DTMF works the same way, but I’ve never had a telephony system understand it for a pic clocked less than 20MHz, no matter what I do.
    For a single frequency it might be ok, but as said, PWM is non-blocking, can make the sound forever, and a much better choice for a single audio freq.

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    I may have to use PWM as it appears FREQOUT won't function with my antique 16C72. (I have a boatload of them).

    The 16C72 is 8bit.

    We'll see -- thanks -- will get back to you no doubt.

    Also using a 2N4401 to drive the piezo, would imagine I need it ?

  7. #7
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    I wouldn’t say “need”.
    You’d get best results using any of the shrouded ones that will at least be loud at their resonant freq. That would be money better spent than on the transistor I think.
    The pic could probably drive a small speaker through a series capacitor. I used a MAX232 as a buffer for a speaker, and small output transformer (MAX232 drives the audio positive and negative).

Similar Threads

  1. FREQOUT command
    By Art in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th February 2015, 07:21
  2. Freqout ? ? ?
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th March 2009, 01:39
  3. bootloader Freqout problems
    By handgio in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th December 2007, 14:38
  4. FREQOUT - PWM question
    By Etcho in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 26th February 2007, 00:51
  5. FREQOUT delays
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th December 2003, 00:49

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