|
|
View previous topic :: View next topic |
Author |
Message |
Jockl Guest
|
Problems with #use i2c |
Posted: Fri Feb 06, 2009 1:26 am |
|
|
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
|
|
Posted: Fri Feb 06, 2009 2:42 am |
|
|
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
|
|
Posted: Fri Feb 06, 2009 3:04 am |
|
|
I re-installed the compiler (4.038) and now it works fine.
Thanks and best regards,
Jockl |
|
|
|
|
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
|