looking for a library of fonction for I2C for coldfire M52235

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

looking for a library of fonction for I2C for coldfire M52235

1,829 Views
fjoli
Contributor I
Hello
 
I would like to use the I2C module of the coldfire M52235 in my project and I would like to know if a library of function exists.
If something exists tell me where can I find it.
Thanks
Fabien
Labels (1)
0 Kudos
Reply
3 Replies

543 Views
cmag
Contributor I
You should be able to use either ColdFire lite for basic functionality (should be a link to it on the product summary page for the MCF52235), or uTasker which Mark will tell you about shortly.  I'm sure his way is quite a bit easier than than ColdFire lite, I haven't had a chance to use it yet.
cmag 
0 Kudos
Reply

543 Views
DRuffer
Contributor I
The ColdFire lite version is actualy buried in the FWLABSDIR example at:
 
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?ProdMetaId=PID%2FDT%2FMCF5223X&isAdvanceSe... Tools=Design%20Tools/020Run-time%20Software/010Reference%20Applications&isComparison=false&#
 
The I2C driver is actually written by www.Tecnova.com and I think I have implemented it properly on a 5253 project I am working on.  However, my results have not been anything close to what I would expect.  Addressing a non-existent device returns as if it existed and the data returned from an existent device is not consistent between the 1st and subsequent reads.
 
Is there some other documentation (i.e. magic bullet) that is missing here?
 
Hopefully, this other uTasker example will help.
 
DaR
 
0 Kudos
Reply

543 Views
mjbcswitzerland
Specialist V
Hi All

OK - you have enticed me enough so here goes...

http://www.utasker.com/docs/uTasker/uTaskerIIC_002.PDF

This is the description for the I2C driver users' interface including a couple of examples and guide to testing it using the uTasker simulator. It is only master mode (99% of users use this mode)
and designed for standard local HW implementation (no elaborate fault handling but fine for any local peripheral devices which the programmer knows exist). Full code is in the project which is
 free for non-commercial use and can be evaluated on request - the interface is fully interrupt driven and handles queued writes and reads so makes it quite easy to use,
even with slow I2C speeds (no blocking).

Regards

Mark

www.uTasker.com

0 Kudos
Reply