16 bit PWM using CCP1


Closed Thread
Results 1 to 40 of 61

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: 16 bit PWM using CCP1

    your version cannot work since CCP1CON and CCPR1H are not in bank 0

    and yes the code you marked red serves no purpose in the given example

  2. #2
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: 16 bit PWM using CCP1

    Quote Originally Posted by richard View Post
    your version cannot work since CCP1CON and CCPR1H are not in bank 0

    and yes the code you marked red serves no purpose in the given example
    My point was that the code in red stopped it working and I could not work out why it was there.

  3. #3
    Join Date
    Nov 2009
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: 16 bit PWM using CCP1

    Quote Originally Posted by richard View Post
    your version cannot work since CCP1CON and CCPR1H are not in bank 0

    and yes the code you marked red serves no purpose in the given example
    Richard,
    Thanks for your reply.
    Yes, you're right. 103 error occurs after compiling. Banksel command is used, will you?

    Talat

  4. #4
    Join Date
    Nov 2009
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: 16 bit PWM using CCP1

    I installed the PBP trial version 3.0.7 to try. Nothing's changed. Error 113 continues (Post 56, I wrote 103, it's wrong)


    Name:  16b.png
Views: 814
Size:  60.1 KBName:  16b.png
Views: 814
Size:  60.1 KB

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default Re: 16 bit PWM using CCP1

    Hi,
    Check your spelling of CCPR1H and CCPR1L.

    /Henrik.

  6. #6
    Join Date
    Nov 2009
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: 16 bit PWM using CCP1

    Hi,
    Henrik, congratulations for being careful, thank you.
    This is a completely copy-paste disaster
    Talat

  7. #7
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: 16 bit PWM using CCP1

    Quote Originally Posted by talatsahim View Post
    Hi,
    Henrik, congratulations for being careful, thank you.
    This is a completely copy-paste disaster
    Talat
    That error comes from post #35 and #37 is there anyway these posts can be corrected?

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. Half-bridge PWM with a 16F684 ?
    By Byte_Butcher in forum General
    Replies: 7
    Last Post: - 17th January 2010, 22:18
  3. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  4. How to tell which PICs can handle 16 bit variables?
    By MikeTamu in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st August 2005, 08:44
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

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