help with pwm


Closed Thread
Results 1 to 7 of 7

Thread: help with pwm

  1. #1

    Default help with pwm

    can anyone help with code to generate pwm 0f 5ohz from 16f877a

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Thumbs down

    SEARCH Function ...

    Question has already been asked here ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    it's unlikely you'll be able to produce a real hardware PWm using hardware PWM module (HPWM), you'll need to use a software PWM, easy to build with Timer Interrupts.

    One way to go is to use the following
    http://www.pbpgroup.com/modules/wfse...hp?articleid=6
    Steve

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

  4. #4
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    it's unlikely you'll be able to produce a real hardware PWm using hardware PWM module (HPWM), you'll need to use a software PWM, easy to build with Timer Interrupts.
    Not with a PIC16 or PIC18 you won't. What is needed is a PIC with a 16-bit period register. With any of the 24-bit core devices, you can get below 10Hz easily with 16-bit resolution on the duty cycle.

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


    Did you find this post helpful? Yes | No

    Default

    I KNOW.. it's just not PBP related
    Steve

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

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by babatundeawe View Post
    can anyone help with code to generate pwm 0f 5ohz from 16f877a
    http://www.essex1.com/people/speer/large.html

    How much is an ohz?

  7. #7


    Did you find this post helpful? Yes | No

    Default many thanks

    [QUOTE=mister_e;65164]it's unlikely you'll be able to produce a real hardware PWm using hardware PWM module (HPWM), you'll need to use a software PWM, easy to build with Timer Interrupts.

    One way to go is to use the following
    http://www.pbpgroup.com/modules/wfse...hp?articleid=6[/QUOT

    thanks guys i will sure work on this clues.

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