Pwm


Closed Thread
Results 1 to 5 of 5

Thread: Pwm

  1. #1
    JARI NETWORKS's Avatar
    JARI NETWORKS Guest

    Default Pwm

    Can someone tell me how to program a pic16f628a in PBP with a frequence of 0.3 Hz??

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    .3 Hz is impossible with the hardware PWM module. My best bet will be to create one using the Timer interrupts.... but ...ahem... 0.3 HZ is really slow... what is the purpose of a so slow frequency? Maybe a old 555 could do the job.

    .3 KHZ it's possible @4MHZ
    hpwm 1,255,300
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    JARI NETWORKS's Avatar
    JARI NETWORKS Guest


    Did you find this post helpful? Yes | No

    Default

    my purpose was to fade in and out 3 leds in 1 sec. but maybe is it possible to do it with 3 ports of a pic16f628a chip and a cyclus of 1 sec.
    Last edited by JARI NETWORKS; - 31st August 2006 at 14:54.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    so the frequency don't really matter... anyway @.3Hz you'll see them flash so. over hundreds HZ will do the job.

    You should look at Multi_SSPWM from Darrel Taylor. it should be enough to start.. and probably finish the whole thing.
    http://www.pbpgroup.com/modules/wfse...p?articleid=12
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    JARI NETWORKS's Avatar
    JARI NETWORKS Guest


    Did you find this post helpful? Yes | No

    Default

    OK thanks for the link.

    Greets Jan

Similar Threads

  1. Half-bridge PWM with a 16F684 ?
    By Byte_Butcher in forum General
    Replies: 7
    Last Post: - 17th January 2010, 22:18
  2. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  3. PWM: Vernacular/Function (Newbee)
    By TerryN in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd July 2008, 16:58
  4. PWM setting PIC16F887
    By Gevo in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th June 2008, 07:24
  5. Tidying Up PWM Routine
    By Tissy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st February 2005, 00:26

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