PDA

View Full Version : I2CWrite with Internal EEPROM 12F675



madphys
- 5th November 2008, 22:49
Hello!

I have a quick question! I looked through PBP manual and didn't find enough information on how to do Internal EEPROM write on PIC12F675 (I also went through uCs datasheet).
Problem is that I do not understand where I can't find Control info for addressing internal eeprom?
I2CWRITE Datapin,clockpin, CONTROL, .....
I really do not understand this... For other external I2C devices this info can be found in their datasheets but this appears not to apply for 12F675.

Thank you!

mister_e
- 6th November 2008, 00:41
have a look for
DATA
READ
WRITE
in your manual

madphys
- 6th November 2008, 07:00
Yup I already looked.
Data, Read, Write don't work on 12F675. Instead I must use I2CREAD command. So I add a Define at the beginning of pbp code (DEFINE I2C_INTERNAL 1) but then when it is actual I2CREAD/WRITE command I don't know what to use as control parameter (looking at those 24LC0X samples I gues I could try %10100000).

Thanks!

Melanie
- 6th November 2008, 07:09
DATA, READ, WRITE does work for the 12F675.

madphys
- 6th November 2008, 07:34
Many thanks!
I see now that I have hugely overlooked the manual (12CE67X not 12F67X).

Please delete this silly topic!