I2CWRITE Issue at Compiling Time


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    643

    Default I2CWRITE Issue at Compiling Time

    Hi all,

    I'm using a PIC16F1939 to control a RTC chip with I2C. I'm using PBP2.60. The 16F1939 has 16384 words of programming memory. So whenever I compile the big program that I'm playing with I get the normal message,


    Name:  Result-01.bmp
Views: 387
Size:  623.9 KB


    Everything good so far. So, whatever code I add to my program I get the above "Crossing page boundary...." messages. Now, if I add these lines of code,


    Code:
    SYMBOL SCL = PORTC.3            'EEPROM CLOCK PIN   
    SYMBOL SDA = PORTC.4            'EEPROM DATA PIN    
    
    
    ADDRESS     VAR BYTE  
    CONTROL     VAR BYTE: CONTROL = %11011111
    
    WRITE_VAR = %01000000   
    'I2CWRITE SDA, SCL, %11011111, $07, [WRITE_VAR]
    ADDRESS = $07
    I2CWRITE SDA, SCL, CONTROL, ADDRESS, [WRITE_VAR]
    PAUSE 10
    Then, I always get the following messages,


    Name:  Result-02.bmp
Views: 353
Size:  756.5 KB


    The program seems to be working fine. But, I have no idea why I get this "1183 : Crossing page boundary..." message only when I use the I2CWRITE. I'm pulling my hair out trying to figure this out . Any help will be greatly appreciated.

    Thank you,
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

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


    Did you find this post helpful? Yes | No

    Default Re: I2CWRITE Issue at Compiling Time


  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    643


    Did you find this post helpful? Yes | No

    Default Re: I2CWRITE Issue at Compiling Time

    Quote Originally Posted by richard View Post
    Thanks Richard, but why this "1183 : Crossing page boundary..." message appears only when I use the I2CWRITE command? That is what I don't understand. Is this a normal compiling message?
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  4. #4
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: I2CWRITE Issue at Compiling Time

    Yes. It appears only when your code is larger than 1K, 2K etc...

  5. #5
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    643


    Did you find this post helpful? Yes | No

    Default Re: I2CWRITE Issue at Compiling Time

    Quote Originally Posted by pedja089 View Post
    Yes. It appears only when your code is larger than 1K, 2K etc...
    I know it's a normal thing. The question is that whatever code I add to my program I get the usual crossing page boundary messages. I can get the programming memory nearly full and I get the messages in the first picture posted above. Only and only when using I2CWRITE is that I get the "1183 : Crossing page boundary...".
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  6. #6
    Join Date
    Oct 2011
    Location
    East Coast USA
    Posts
    16


    Did you find this post helpful? Yes | No

    Default Re: I2CWRITE Issue at Compiling Time

    I do believe that the '1183' refers to a line number in the assembled code. The number changes depending upon which libraries are called and where the page crossing occurs in the listing.

  7. #7
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    643


    Did you find this post helpful? Yes | No

    Default Re: I2CWRITE Issue at Compiling Time

    Hi, that makes sense. Because it only happens when using the I2CWRITE command.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

Similar Threads

  1. DS1904 RTC - How to Convert Binary Time into Real Time/Date?
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 2nd December 2010, 10:45
  2. Puzzling issue with I2CWRITE to 24LC512
    By aberco in forum General
    Replies: 4
    Last Post: - 22nd August 2008, 17:47
  3. Code Issue - select case or 'if' issue - not sure why
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th October 2007, 08:52
  4. I2CWrite issue
    By robertmark68 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 20th September 2006, 01:30
  5. Linx RF -> HSERIN time delay / time critical app...
    By batee in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th October 2004, 15:04

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