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 support@ccsinfo.com

How do i read/write to PIC12CE518 eeprom???

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







How do i read/write to PIC12CE518 eeprom???
PostPosted: Sat Mar 20, 2004 4:43 am     Reply with quote

Hi,

Im confused!?

How do i read/write to PIC12CE518 eeprom with CCS C?

I think I need to include a C file which doesn't exist in my drivers directory.

Thanks in advance.

Regards,
Darren
Ttelmah
Guest







Re: How do i read/write to PIC12CE518 eeprom???
PostPosted: Sat Mar 20, 2004 5:29 am     Reply with quote

dazza wrote:
Hi,

Im confused!?

How do i read/write to PIC12CE518 eeprom with CCS C?

I think I need to include a C file which doesn't exist in my drivers directory.

Thanks in advance.

Regards,
Darren


The 12 devices handle the EEPROM differently from the other PICs. Effectively the memory, is a normal 'external' I2C EEPROM, connected to pins that don't go outside the package.
Hence the 'normal' EEPROM functions inside CCS C, cannot talk to this memory, instead you have to use the I2C functions, talking to pins GPIO6, and GPIO7.
Code to do this is in the include file 'ce51x.c', that s in the 'drivers' directory.

Best Wishes
dazza
Guest







?
PostPosted: Sat Mar 20, 2004 7:17 am     Reply with quote

Hi,

Ah ok, I understand, however I don't have 'ce51x.c' in my drivers directory for some reason. Confused

Can I download this from somewhere?

Regards,
Darren
dyeatman



Joined: 06 Sep 2003
Posts: 1913
Location: Norman, OK

View user's profile Send private message

CE51X Driver
PostPosted: Sat Mar 20, 2004 8:09 am     Reply with quote

If you dont have the driver in your examples directory you may need to upgrade your compiler.

You can get a generic version (non CCS driver) of the CE51X driver from Peter Anderson at this address:

http://www.phanderson.com/PIC/PICC/CCS_PCB/eeprom_1.html

BTW, you could have found this information by simply doing a Google search for 12CE518
dazza
Guest







ic2_defs.h
PostPosted: Tue Mar 23, 2004 4:28 pm     Reply with quote

Hi,

Thanks for the above link however I'd prefer the CCS version. I don't have ic2_defs.h either !!!!!

8-(

Feeling very un-endowed in the files department here!

Any other suggestions!?

Regards,
Darren
dyeatman



Joined: 06 Sep 2003
Posts: 1913
Location: Norman, OK

View user's profile Send private message

Contact CCS Tech Support
PostPosted: Tue Mar 23, 2004 5:33 pm     Reply with quote

If you have a registered copy and are missing the files then use your customer number and contact CCS Tech Support. They should be able to help you get them if your version had them. If not you will need to upgrade/purchase the compiler.

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