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


Results 1 to 15 of 15

Threaded View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,078

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

    The setup is as follows, there is a chip, PIC16F886, which does a lot of thing - updates 1602 LCD, monitors user input, endstops, issues enable/disable statement to motors, etc. Chip is quite busy, I want to say that.

    So I also need to have square wave outputs in say 50Hz-10Khz range, to control speed of stepper motors. Need at least 4 outputs, with independent control. Frequency precision and number of steps is not that important - having say 32 fixed frequencies in that whole range will be enough.

    The 1st idea is to use a PIC chip with 4 channel built-in PWM generator, but you can't set their frequencies independently and also minimal range is quite high - around 400-500Hz, depending on chip speed.

    The 2nd idea is to use ready modules like AD9833. Price is negligible, they cost $1.5 in china. But they require quite a lot of programming.

    The 3rd idea is to use CD4536B or similar timers (say CD4541), feed their input from HPWM output of MCU and use independent control to get desired frequencies. While there will be no such wide choice of frequencies as in case of AD9833, "programming" is straightforward and very simple.

    Another idea is to mod DT's multi-channel PWM into outputting not different duty cycle, but different frequencies. But that is beyond my knowledge of PBP

    Any other ideas?
    Last edited by CuriousOne; - 5th April 2020 at 07:20.

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 : 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