Misbehaving HPWM on 16F1827


Results 1 to 8 of 8

Threaded View

  1. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,161


    Did you find this post helpful? Yes | No

    Default Re: Misbehaving HPWM on 16F1827

    I am trying to use the PWM module directly and have 10 bit resolution, but the output is LOW with this:

    Code:
    DEFINE CCP1_REG PORTB
    DEFINE CCP1_BIT 3    
    ccptmrs=0
    pr2=249
    ccp1con=$0C
    trisb.3=0
    ...
    main_loop:
    ...
    ccpr1l=duty.lowbyte
    ...
    goto main_loop
    If I use the PBP command

    Code:
    HPWM 1,duty,2000
    then output follows the duty value.

    Any ideas?

    Ioannis
    Last edited by Ioannis; - 22nd March 2011 at 21:46.

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