PIC 16F690 PWM's ports selection - How to?


Closed Thread
Results 1 to 7 of 7

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: PIC 16F690 PWM's ports selection - How to?

    The above ought to work. As it is right now, you toggle a PWM from a channel to another, but never both together. To alter the Volume, you'll need a fixed duty on 1 channel, and a variable one on the other.. Not sure if this specific allow to do it.
    Steve

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

  2. #2
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952


    Did you find this post helpful? Yes | No

    Default Re: PIC 16F690 PWM's ports selection - How to?

    @Mister_e,
    Quote Originally Posted by mister_e View Post
    The above ought to work
    Ça veut dire que mon code devrait être bon?

    I have only one fixed dutycycle. To modify the volume, I vary the current on the transistor's base.

    @HankMcSpank,
    Yup, I scoped them all and I have never a signal on P1B (PORTC.4)
    Roger

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default Re: PIC 16F690 PWM's ports selection - How to?

    It works as expected here!

    Name:  Snap1.jpg
Views: 2204
Size:  15.3 KB

    Have you tested PORTC.4 to see if it's blown, or you have a problem with something connected to it?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952


    Did you find this post helpful? Yes | No

    Default Re: PIC 16F690 PWM's ports selection - How to?

    Well....

    .... a new PIC did the trick.

    Thanks a lot for your help.

    The biggest surprise is not that I'm a little bit stupid, it's more that I am a witness of a miracle: I understood (a part of) the datasheet by myself!!!!

    Still not going to tell anyone how much hours I spent on this one too...
    Roger

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


    Did you find this post helpful? Yes | No

    Default Re: PIC 16F690 PWM's ports selection - How to?

    shush on that.... ta geulle :P
    Steve

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

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