CodeWarrior I2C & Processor Expert example for Coldfire

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

CodeWarrior I2C & Processor Expert example for Coldfire

5,727 Views
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
Labels (1)
0 Kudos
Reply
5 Replies

859 Views
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 Kudos
Reply

859 Views
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 Kudos
Reply

859 Views
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 Kudos
Reply

859 Views
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 Kudos
Reply

859 Views
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 Kudos
Reply