Strange Behaviour with Conditional Compile


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Strange Behaviour with Conditional Compile

    Thanks again, Henrik. Do you mean I should have:

    Code:
        CCP4CON.4 = 0
        CCP4CON.5 = 0
        CCPR4L    = 0
    before the CCP4CON register setting?

    I will try that out tonight, as well as reducing the PAUSE statements.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Strange Behaviour with Conditional Compile

    As usual, you were right Henrik. I added the code above right after turning on CCP/PWM on CCP4 and reduced all the pauses within the #IFDEF USE_LCD_FOR_DEBUG and now everything works as before. It was obvious once you pointed it out, so thanks again for being so patient.

Similar Threads

  1. Conditional compile
    By pedja089 in forum PBP3
    Replies: 2
    Last Post: - 16th January 2014, 21:25
  2. Strange IT behaviour
    By MikeBZH in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th February 2012, 09:00
  3. Strange behaviour
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th October 2009, 22:35
  4. Strange HSEROUT behaviour
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th July 2006, 23:37
  5. strange int behaviour
    By tom in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2005, 15:41

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