Need to get 4 independently controllable frequency outputs, PBP can do that?


Results 1 to 15 of 15

Threaded View

  1. #2
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Need to get 4 independently controllable frequency outputs, PBP can do that?

    If you're not married to the PIC16F886, there are newer MCUs that might be able to meet your goals. Assuming a 50% duty cycle is desired, let's look at all the available Functions found on various PICs that would be capable of generating a square wave output.

    1 - Of course, CCP using the PWM function
    2 - Some PICs offer separate PWM SFRs in addition to the CCP
    3 - CLC: using the Flip Flop Mode, any timer could be fed into a CLC to generate PWM output
    4 - Timers where the Interrupt Handler Toggles the output
    5 - Numerically Controlled Oscillator (NCO)
    6 - Signal Measurement Timer
    7 - If you don't need all PWM outputs simultaneously, Peripheral Pin Select can change which pins output the PWM

    There are probably at least 1 or 2 I'm missing, but the point is to think outside the CCP box. Some PICs have upwards of 4 CCP modules, some up to 4 CLC, some have as many as 10 Timers, short of the new PIC18FxxQ43, only 1 NCO is available. You may be able to mix and match to achieve your goals.

    In addition to more Functions, newer PICs have more stable Internal Oscillators, Peripheral Pin Select, and are almost always way cheaper. You can use Microchip's Part Selector Guide (or whatever they call it) to find PICs that meet your needs:

    https://www.microchip.com/ParamChart...branchID=30048
    Last edited by mpgmike; - 5th April 2020 at 18:11. Reason: fixed typos

Similar Threads

  1. Single PIC to Blink 5 LEDs Independently?
    By RossWaddell in forum mel PIC BASIC Pro
    Replies: 68
    Last Post: - 18th July 2015, 17:56
  2. 4 x PWM outputs
    By Scampy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th February 2012, 07:40
  3. help with multiple outputs...
    By rickvan in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th November 2007, 18:34
  4. frequency meter in PBP
    By savnik in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 13th June 2007, 07:34
  5. PIC16F62X outputs
    By Deadeye in forum General
    Replies: 6
    Last Post: - 31st May 2005, 22:20

Members who have read this thread : 1

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