CodeWarrior I2C & Processor Expert example for Coldfire

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CodeWarrior I2C & Processor Expert example for Coldfire

5,645 次查看
skyguy
Contributor III
Can someone suggest an I2C example for Codewarrior?  I'd like to use the Processor Expert, but the only thing it seems to provide is init code, not message code.
Thanks
标签 (1)
标记 (1)
0 项奖励
回复
5 回复数

777 次查看
ZiglioNZ
Contributor I

Depending on the MCU, different beans are provided.

With our MCF545x, there's no driver for I2C or DSPI, just Init Beans. 

Better than nothing.

 

The I2C is a relatively simple interface and you can find plenty of examples out there (the LTIB distribution is one)

0 项奖励
回复

777 次查看
skyguy
Contributor III
Thanks.  I've used I2C before, and besides my own code I've found other examples.  The thing I really like about the beans is that I can get the functions of a new processor (MCF52223) running quickly.  I guess I2C will take a little longer.
0 项奖励
回复

777 次查看
J2MEJediMaster
Specialist I

Requests for writing and trouble-shooting I2C routines happens periodically in these forums, and doing a search on the forums with the string "I2C" reveals a lot of them. This thread in particular has source code. HTH.

 

---Tom

0 项奖励
回复

777 次查看
BillO
Contributor I

Clicking on the thread brings up a "error" screen.

Is there another way to get to the examples.

I am looking for sample code using the SPI bean.

I am having an issue with their receive block function.

 

Thank you

0 项奖励
回复

777 次查看
J2MEJediMaster
Specialist I

You are right. That link is broken.

 

Here is a new https://community.freescale.com/message/38555#38555 with I2C code. It does not use ProcessorExpert, however.

 

---Tom

0 项奖励
回复