View previous topic :: View next topic |
Author |
Message |
dazza Guest
|
How do i read/write to PIC12CE518 eeprom??? |
Posted: Sat Mar 20, 2004 4:43 am |
|
|
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??? |
Posted: Sat Mar 20, 2004 5:29 am |
|
|
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
|
? |
Posted: Sat Mar 20, 2004 7:17 am |
|
|
Hi,
Ah ok, I understand, however I don't have 'ce51x.c' in my drivers directory for some reason.
Can I download this from somewhere?
Regards,
Darren |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1934 Location: Norman, OK
|
CE51X Driver |
Posted: Sat Mar 20, 2004 8:09 am |
|
|
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 |
Posted: Tue Mar 23, 2004 4:28 pm |
|
|
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: 1934 Location: Norman, OK
|
Contact CCS Tech Support |
Posted: Tue Mar 23, 2004 5:33 pm |
|
|
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, |
|
|
|