Small pin-count device for generating output frequencies when triggered


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Small pin-count device for generating output frequencies when triggered

    That's correct, no CCP module in this one (I didn't check that previosuly). And there's no interrupts either.

    What sort of frequencies are you talking about?

    BTW, in your code, there's no real reason to waste one of the PICs 23 bytes of RAM, out of which PBP uses most, to copy ADRES to Tone - just use ADRES directly.

    /Henrik.

  2. #2
    Join Date
    Feb 2012
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: Small pin-count device for generating output frequencies when triggered

    Henrik,

    Without hardware PWM I don't really need to go any further with this. It is working good enough for what I need it for and the tone range is good. I knew this would be a very small program, but I was hoping to have the capability of a constant tone for the duration of the trigger, but I can live with short sound bursts. I purchased 10F322 chips first, but PBP didn't support them and I couldn't figure out MPLAB-X.

    I will be using two of these chips set to different tones so I can hear either or both when they trigger. Maybe at some future time I will figure out MPLAB and be able to program the 10F322's (Hardware PWM with adjustable Duty for LEDs or adjustable Freq for sound). I did figure I could just use ADRES directly, but I don't need to do anything else with these anyway.

    Thanks for all your help.
    Jim


    Quote Originally Posted by HenrikOlsson View Post
    That's correct, no CCP module in this one (I didn't check that previosuly). And there's no interrupts either.

    What sort of frequencies are you talking about?

    BTW, in your code, there's no real reason to waste one of the PICs 23 bytes of RAM, out of which PBP uses most, to copy ADRES to Tone - just use ADRES directly.

    /Henrik.

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Small pin-count device for generating output frequencies when triggered

    If you need to be able to change the tone "continously" then rearanging the code slighty might make it a little bit better, the glitch should be in the us* range:
    Code:
    Main: 
       GO_DONE = 1		    ' Start the conversion
       IF Trigger THEN       
          Sound SPK,[Tone / 4 + 50, 1] 
       ENDIF
       WHILE GO_DONE : WEND	' If trigger isn't 'on' we need to wait for the ADC.
       Tone = ADRES
    Goto Main
    *Depending on how much time SOUND needs to "set it self up".

    /Henrik.

  4. #4
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Small pin-count device for generating output frequencies when triggered

    Hey Jim, If all you are looking for is an A/D to Oscillator output have a look at maybe using some Linear Tech. TIMER BLOX. They make 2 different VCO's to cover the range from 29uHZ to 977 HZ and 1 for 488HZ to 2Mhz. They are in 6 pin SOT packages. Just a thought.....
    Dave Purola,
    N8NTA
    EN82fn

  5. #5
    Join Date
    Feb 2012
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: Small pin-count device for generating output frequencies when triggered

    Hi Dave,

    I just looked at the datasheet for the LTC6990 and it does look like it could work for what I need. I would have to test how the frequency ranges sound first, but it seems to have everything I need (OE to trigger it and Freq can be controlled by a POT manually). I'll have to test it and let you know.

    Thanks,
    Jim


    Quote Originally Posted by Dave View Post
    Hey Jim, If all you are looking for is an A/D to Oscillator output have a look at maybe using some Linear Tech. TIMER BLOX. They make 2 different VCO's to cover the range from 29uHZ to 977 HZ and 1 for 488HZ to 2Mhz. They are in 6 pin SOT packages. Just a thought.....

Similar Threads

  1. PBP Support for 12F1840 8-Pin Device?
    By springtank in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 10th November 2012, 08:32
  2. Replies: 3
    Last Post: - 24th September 2010, 07:10
  3. How to know what pin triggered an interrupt?
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 13th October 2008, 07:29
  4. Turn on output pin
    By savnik in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th March 2007, 11:49
  5. Input / output using same pin
    By leonel in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th March 2007, 21:19

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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