|
|
View previous topic :: View next topic |
Author |
Message |
pfaerber Guest
|
pic12CE673 and EEProm |
Posted: Tue Apr 15, 2003 8:08 am |
|
|
I try to use the internal EEProm. But I became the error
Error[100] g:\pic\kammer1\ce67x.c 33 : USE parameter value is out of range Not a number: =46
the USE line is
#ifndef EEPROM_SDA
#define PIN_A6 = 46 //these are not in the 12ce67x.h file
#define EEPROM_SDA PIN_A6
#endif
#ifndef EEPROM_SCL
#define PIN_A7 = 47 //these are not in the 12ce67x.h file
#define EEPROM_SCL PIN_A7
#endif
#use i2c(MASTER, SDA=EEPROM_SDA, SCL=EEPROM_SCL, NO_STRETCH, NOFLOAT_HIGH)
I can understand.
Is it the right way to use the EEProm. Or is there a better way ?
Paul
Sorry for the bad English I am German
___________________________
This message was ported from CCS's old forum
Original Post ID: 13682 |
|
|
pfaerber Guest
|
Re: pic12CE673 and EEProm |
Posted: Tue Apr 15, 2003 8:15 am |
|
|
Sorry I have seen the error
#define PIN_A6 = 46
better :-)
#define PIN_A6 46
By
___________________________
This message was ported from CCS's old forum
Original Post ID: 13683 |
|
|
somy Guest
|
Re: pic12CE673 and EEProm |
Posted: Fri Jan 13, 2006 12:43 am |
|
|
pfaerber wrote: | I try to use the internal EEProm. But I became the error
Error[100] g:\pic\kammer1\ce67x.c 33 : USE parameter value is out of range Not a number: =46
the USE line is
#ifndef EEPROM_SDA
#define PIN_A6 = 46 //these are not in the 12ce67x.h file
#define EEPROM_SDA PIN_A6
#endif
#ifndef EEPROM_SCL
#define PIN_A7 = 47 //these are not in the 12ce67x.h file
#define EEPROM_SCL PIN_A7
#endif
#use i2c(MASTER, SDA=EEPROM_SDA, SCL=EEPROM_SCL, NO_STRETCH, NOFLOAT_HIGH)
I can understand.
Is it the right way to use the EEProm. Or is there a better way ?
Paul
Sorry for the bad English I am German
___________________________
This message was ported from CCS's old forum
Original Post ID: 13682 |
|
|
|
|
|
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
|