10-Bit PWM using PIC16F1509


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,636


    Did you find this post helpful? Yes | No

    Default Re: 10-Bit PWM using PIC16F1509

    I am using PBP3 (Version 3.0.7.4)) and MCS (Version 5.0.0.5)

  2. #2
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: 10-Bit PWM using PIC16F1509

    Thanks Richard.

    I updated the versions of PBP3 and MCS and everything now compiles...

    Cheers
    Barry
    VK2XBP

  3. #3
    Join Date
    Feb 2013
    Posts
    1,124


    Did you find this post helpful? Yes | No

    Default Re: 10-Bit PWM using PIC16F1509

    Having same idea, to control RGB led using PWM, but how you did it with 1 hardware channel PWM?

  4. #4
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: 10-Bit PWM using PIC16F1509

    Great question! I don't know. I would suggest if you have 3 different targets (R + B + G) each requiring a different PWM DC%, you will need a PIC with 3 separate PWM channels.

  5. #5
    Join Date
    Feb 2013
    Posts
    1,124


    Did you find this post helpful? Yes | No

    Default Re: 10-Bit PWM using PIC16F1509

    And that appears to be a hard task - most MCUs as I've checked from datasheet, have "synchronised" PWM outputs, which mostly mirror each other, and also they all run same frequency....

  6. #6
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: 10-Bit PWM using PIC16F1509

    Take look at SPWM from DT. Or better MIBAM.

  7. #7
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: 10-Bit PWM using PIC16F1509

    Quote Originally Posted by CuriousOne View Post
    And that appears to be a hard task - most MCUs as I've checked from datasheet, have "synchronised" PWM outputs, which mostly mirror each other, and also they all run same frequency....
    All that means is that the Period for each starts at the same time, and they operate at the same frequency. Each is capable of independent Duty Cycle. That will work for an RGB LED.

  8. #8
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: 10-Bit PWM using PIC16F1509

    Mike, that means a PIC should have different CCPxCON registers. As many as the different channels, so the user can define the duty of each independently.

    For example, the 16F887 has two and 16F1939 has four CCPxCON registers.

    Ioannis
    Last edited by Ioannis; - 21st January 2020 at 15:04. Reason: typo

Similar Threads

  1. DMX512 Reception + 3 * 8-Bit PWM Outputs
    By JEC in forum Code Examples
    Replies: 5
    Last Post: - 16th February 2015, 15:21
  2. 16 bit PWM using CCP1
    By Normnet in forum mel PIC BASIC Pro
    Replies: 60
    Last Post: - 27th August 2014, 08:13
  3. Replies: 17
    Last Post: - 22nd May 2014, 19:58
  4. Replies: 1
    Last Post: - 12th March 2012, 23:34
  5. 10 bit pwm as dac
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th June 2004, 15:12

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