looking for a library of fonction for I2C for coldfire M52235

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

looking for a library of fonction for I2C for coldfire M52235

1,803件の閲覧回数
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
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

517件の閲覧回数
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 件の賞賛
返信

517件の閲覧回数
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 件の賞賛
返信

517件の閲覧回数
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 件の賞賛
返信