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


Closed Thread
Results 1 to 15 of 15

Hybrid View

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


    Did you find this post helpful? Yes | No

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

    4 separate PIC's with NCO modules. Done..... Why add unnecessary hardware?
    Dave Purola,
    N8NTA
    EN82fn

  2. #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?

    Quote Originally Posted by Dave View Post
    4 separate PIC's with NCO modules. Done..... Why add unnecessary hardware?
    I have a project I was using 3 PICs for 3 NCOs. I updated it adding a touch screen to replace buttons & LEDs, and while at it, replaced 3 PICs with a single PIC18F27Q43 (have to use MPLABX & XC8 since PBP doesn't yet cover that part). That still leaves one more NCO for you.

  3. #3
    Join Date
    Feb 2013
    Posts
    1,122


    Did you find this post helpful? Yes | No

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

    and 3 extra PIC chips does not count as extra hardware, but CD4536 does?

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


    Did you find this post helpful? Yes | No

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

    Please,Please explain how you are going to get a single CD14536 to support 4 independent frequency's. I must be REAL stupid.....
    Dave Purola,
    N8NTA
    EN82fn

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

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

    Either 4 pics or 4 CD4536...

    He meant that in either case you need 4 chips. PIC's need also programming but CD.. need some parts.

    Ioannis

  6. #6
    Join Date
    Feb 2013
    Posts
    1,122


    Did you find this post helpful? Yes | No

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

    CD does not need any extra part. Frequency input of all 4 is connected to PICs HPWM output, which allows to do some extra things - since all these frequencies will be driving stepper motors, having them controlled by master clock (HPWM) will allow to make smooth startup and stopping

  7. #7
    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?

    I still think you can do it with Timers. For a Timer 2/4/6, adjust the PR2 for your frequency. For Timer 1/3/5, adjust TMR1H_L for your frequency. Clear the IF & Toggle the output, and reset TMR1H_L in the ISR. For TMR2/4/6, you don't even need to reload PR2. Newer PICs with HLT can to that in the background without so much as an interrupt.

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, 16:56
  2. 4 x PWM outputs
    By Scampy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th February 2012, 06:40
  3. help with multiple outputs...
    By rickvan in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th November 2007, 17:34
  4. frequency meter in PBP
    By savnik in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 13th June 2007, 06:34
  5. PIC16F62X outputs
    By Deadeye in forum General
    Replies: 6
    Last Post: - 31st May 2005, 21:20

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