pwm help


Closed Thread
Results 1 to 4 of 4

Thread: pwm help

  1. #1
    CuE0079's Avatar
    CuE0079 Guest

    Default pwm help

    is it possible to output a constant pwm signal while the pic is in sleep mode? right now i hav two pics and one sends a high signal and goes to sleep while the other one does the pwm until the first pic wakes up and stops outputing the high signal. id like to condense this operation to one pic.

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Sleep means SLEEP, so the PIC really sleeps and even the backgound HPWM task is send to sleep.

    I can see only one major reason for sending the PIC to sleep and that is to save power.

    As you have a second pic running permanantly there is no need to to sennd the "master" to sleep, just get rid of the second PIC and reduce clock speed on the remaining PIC to the absolute minimum and you will save a lot of power.

    regards
    Last edited by NavMicroSystems; - 14th August 2004 at 01:50.

  3. #3
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    @CuE0079

    Excuse my question, but. . .

    as what I read from your posting you have the hardware up and running and you have a working PBP environment and you appear to have some PIC and PBP skills.

    It would have taken you 1 or 2 lines of code to find out this on your own.

    regards
    Last edited by NavMicroSystems; - 14th August 2004 at 01:52.

  4. #4
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    I have just tried it and it it appears to be really weird as you don't have any control over the HPWM Port bit when the PIC is send to sleep.
    It might be HIGH or LOW at the time you send the PIC to sleep and it remains in this state until you wake the PIC up again.
    Even a HIGH "HPWMpin" or LOW "HPWMpin" right before e the "SLEEP" command doesn't help.
    So depending on what you have connected to the HPWM Pin there is a 50% chance you wouldn't save any Power at all by sending the PIC to sleep.

    let's assume you have a MOSFET on your HPWM port driving some "High Power" device there is a 50% chance that it will be instantly ON while the PIC is sleeping.


    regards

    Ralph
    Last edited by NavMicroSystems; - 14th August 2004 at 02:39.

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