12F1840 - HPWM outputs PWM on CCP pin instead of P1B pin.


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,158


    Did you find this post helpful? Yes | No

    Default Re: 12F1840 - HPWM outputs PWM on CCP pin instead of P1B pin.

    Yes it does, but when chip has multiple PWM output pins, usually HPWM 2, HPWM 3, etc, output on the corresponding pin.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: 12F1840 - HPWM outputs PWM on CCP pin instead of P1B pin.

    you need to set the steering mode to drive p1b
    Warning I'm not a teacher

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


    Did you find this post helpful? Yes | No

    Default Re: 12F1840 - HPWM outputs PWM on CCP pin instead of P1B pin.

    Thanks, will try it a bit later!

  4. #4
    Join Date
    Feb 2013
    Posts
    1,158


    Did you find this post helpful? Yes | No

    Default Re: 12F1840 - HPWM outputs PWM on CCP pin instead of P1B pin.

    This fixed it, thanks again!

    APFCON=%00000010
    PSTR1CON=%00010010

Similar Threads

  1. PBP Support for 12F1840 8-Pin Device?
    By springtank in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 10th November 2012, 09:32
  2. Replies: 5
    Last Post: - 24th July 2010, 10:34
  3. 8 pin DIP w/6 outputs ?
    By Sam in forum General
    Replies: 12
    Last Post: - 14th September 2009, 21:15
  4. Pin outputs to an array
    By Firegod in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th March 2007, 18:35
  5. Multiplexing PWM pin with other outputs
    By bcd in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th September 2006, 12:24

Members who have read this thread : 0

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