10 bit PWM 16F1824


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2003
    Posts
    98

    Default 10 bit PWM 16F1824

    Hi all
    amazing how fast the rust grows when you put this stuff down for a little bit

    i thought for sure there was a PBP high level command for PWM that would do 10 bit, but it seems not, just wanted to confirm that is true, 8 bit only ?

    i guess i banged the registers when i did 10 bit but it was quite a while ago and i don't even know which of many projects

    my chip for new project is 16F1824
    (yes i saw the recent post about 16F1509)
    any other tips, code snpis or pitfalls to watch for ?
    i did a search for 10bit PWM but did not see much, maybe i did not do the search right
    thanks

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


    Did you find this post helpful? Yes | No

    Default Re: 10 bit PWM 16F1824

    Darrel wrote a 10 bits PWM code snippet ...

    i did a search for 10bit PWM but did not see much, maybe i did not do the search right
    may be yes ...

    Alain
    Attached Files Attached Files
    Last edited by Acetronics2; - 4th April 2015 at 13:27.
    ************************************************** ***********************
    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
    Nov 2003
    Posts
    98


    Did you find this post helpful? Yes | No

    Default Re: 10 bit PWM 16F1824

    wow, thanks a lot Alain
    this exactly what i was hoping for
    i got it to compile fine using PBP 3.0.7.4 and MPASM 5.49
    i won't know if it works for about a week when the hardware is ready

    as mentioned the chip is 16F1824, in the config section Darrel commented something about 18F only, should i be concerned about that ?
    and if so is it a big deal to alter the code ?
    i only need one channel of PWM (at least i think so, you know how these things grow though)

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


    Did you find this post helpful? Yes | No

    Default Re: 10 bit PWM 16F1824

    the test program was tested (!) aboard a pic 18F ...

    that's the one and only reason of those lines 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 " !!!
    *****************************************

Similar Threads

  1. 10-Bit PWM using PIC16F1509
    By Aussie Barry in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 17th February 2020, 09:28
  2. DMX512 Reception + 3 * 8-Bit PWM Outputs
    By JEC in forum Code Examples
    Replies: 5
    Last Post: - 16th February 2015, 15:21
  3. 16 bit PWM using CCP1
    By Normnet in forum mel PIC BASIC Pro
    Replies: 60
    Last Post: - 27th August 2014, 08:13
  4. manual hardware PWM setup on 16F1824
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 31st January 2011, 18: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