Error when compiling with DT_INTS_3_4b"


Closed Thread
Results 1 to 29 of 29

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Error when compiling with DT_INTS_3_4b"

    ok found the problem

    an include that is common to the project uses enable /disable RBC_INT , which does not exist on the 27k40

    hows ever i need to enable/disable RBC_INT when its 46k80 but when its 27k40 use enable/ disable IOC_INT
    and want both in the include file

    can someone show an example advise how this is done cos i never had to do before

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


    Did you find this post helpful? Yes | No

    Default Re: Error when compiling with DT_INTS_3_4b"

    4.12 in manual

    #IF __PROCESSOR__ = "16F877"
    ADCON1 = 7 'All pins digital on the 877A
    #ELSE
    ANSEL = 0 'AN0-AN7 digital on the 887
    ANSELH = 0 'AN8-AN13 digital on the 887
    #ENDIF
    Warning I'm not a teacher

  3. #3
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Error when compiling with DT_INTS_3_4b"

    This or some variation may work. I borrowed & modified it from working code.

    Code:
    ASM
    #if __PROCESSOR__ = "18F27K40" or __PROCESSOR__ = "18F47K40" 
    
    #define IOC_INT
    
    #else
        #if __PROCESSOR__ = "18F46K80"
    
    #define RBC_INT
    #endif
    ENDASM

Similar Threads

  1. Replies: 0
    Last Post: - 14th November 2013, 03:32
  2. Error while compiling
    By BobK in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th April 2013, 17:01
  3. Replies: 1
    Last Post: - 30th March 2012, 04:13
  4. Compile error & syntax error on the word "loop:" as a label?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th March 2010, 04:14
  5. error on compiling
    By parker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th June 2005, 14:31

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