CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Problems with #use i2c

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Jockl
Guest







Problems with #use i2c
PostPosted: Fri Feb 06, 2009 1:26 am     Reply with quote

Can anyone help me with this error? The whole program works without this line(bold), but with this line I get this error

*** Error 44 "C:\IPP UMTS\C-Code\Main.c" Line 9(5,52): Internal Error - Contact CCS PPUSE

Program:
Quote:

#include <16F877.h>
#include "Main.h"

//#FUSES INTRC_IO,NOWDT,NOPROTECT,NOPUT,NOBROWNOUT,NOLVP,NOCPD,NOWRT,DEBUG
#fuses HS,NOWDT,NOPROTECT,NOLVP

#use delay(clock=8000000)
#use i2c (SLAVE,sda=PIN_C4,scl=PIN_C3,address=0xa0)
//#use rs232 (BAUD=19200,xmit=PIN_C6,rcv=PIN_C7,ERRORS)

#use STANDARD_IO (A)
#use STANDARD_IO (B)
#use STANDARD_IO (C)
#use STANDARD_IO (D)
#use STANDARD_IO (E)
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Feb 06, 2009 2:42 am     Reply with quote

Try a very simple program like this and see if you still get the problem:
Code:
#include <16F877.H>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock = 4000000)
#use i2c (SLAVE,sda=PIN_C4,scl=PIN_C3,address=0xa0)

//===================================
void main()


while(1);
}


Also,
1. Re-install the compiler.

2. Post your compiler version. It's given at the top of the .LST file,
which will be in your project directory after a successful compilation.
It's a number in this format: x.xxx
Jockl
Guest







PostPosted: Fri Feb 06, 2009 3:04 am     Reply with quote

I re-installed the compiler (4.038) and now it works fine.
Thanks and best regards,
Jockl
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group