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

pic12CE673 and EEProm

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







pic12CE673 and EEProm
PostPosted: Tue Apr 15, 2003 8:08 am     Reply with quote

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
PostPosted: Tue Apr 15, 2003 8:15 am     Reply with quote

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
PostPosted: Fri Jan 13, 2006 12:43 am     Reply with quote

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
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