I2C Eeprom

cancel
Showing results for 
Search instead for 
Did you mean: 

I2C Eeprom

1,436 Views
jesconsa
Contributor I
Hello. I wanted to know if anybody has used an serial Eeprom (I2C) with a MCF52233 (or any). Is there any code (in codewarrior or freescale or any) ready for use it?.
 
Thanks
Jesus.
Labels (1)
0 Kudos
1 Reply

124 Views
mjbcswitzerland
Specialist V
Hi Jesus

I sent you the uTasker project for the M5223X on 28.3.2007.
This contains all code that you need to program I2C or SPI EEPROMs. Also the file system will run from external SPI EEPROM if required.

The demo code, use of I2C driver and test with 24C01 EEPROM is explained in the following document:
http://www.utasker.com/docs/uTasker/uTaskerIIC.PDF

Activate the I2C driver suppport by setting the define IIC_INTERFACE in config.h, then the demo code writing and reading a test pattern to/from the EEPROM in application.c by setting the define TEST_IIC.

The 24C01 is included as simulated device in the uTasker environment and so you can run the project in the simulator and see how the application opens the I2C interface and writes and reads data. In the file iic_drv.c you find the I2C driver code and in m5223x.c you can find the interrupt driven interface - if you set a break point in the interrupt routine when simulating you can capture the interrupts and view the simulate EEPROM contents.

Good luck

Regards

Mark

www.uTasker.com



0 Kudos