PWM on pic16f1825 issues - 1.pbp v2.60c bug found, fix shown, 2.CCP2 on ALT pin probl


Results 1 to 6 of 6

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: PWM on pic16f1825 issues - 1.pbp v2.60c bug found, fix shown, 2.CCP2 on ALT pin p

    The TRIS problem will be fixed by using CAPs in your defines.

    DEFINE CCP2_REG PORTC
    DEFINE CCP2_BIT 3
    DEFINE HPWM2_TIMER 2

    MPASM is case sensitive.

    In your P16F1825.INC file just add CCPTMRS0 below CCPTMRS. It's OK to have more than 1 name defined for a file register.

    CCPTMRS EQU H'029E'
    CCPTMRS0 EQU H'029E'

    Both just let the compiler know the file registers address.

    Not all PIC16F1xxx types have CCPTMRS0 and CCPTMRS1. The ones that don't normally have the timer select register defined as CCPTMRS.
    Last edited by Bruce; - 3rd April 2011 at 15:40.
    Regards,

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

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts