Hi Alice,
I am using a code warrior IDE.I don't have examples of I2C in it.Can you
please help me in finding it for KEA128
On Mon, Sep 14, 2015 at 8:06 AM, Alice_Yang <admin@community.freescale.com>
Hello balaji,
In CodeWarrior, it also have the demo , when you create project ,please select "Process Expert" , then add "I2C_LDD" component :
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Alice,
I tried processor Expert to generate code and modified it to work with KEA-128 as master and MMA8451Q as slave.I tried to read (WHO_AM_I) register in it.But my data is not getting pushed to the data register so the code is hanging in the transfer flag section.
Can you share me the code if you have done similar kind of things either in processor expert or as a bareboard projecct.
Hello ,
(1) First please be sure the correct of the connect of your hardware , for i have not the MMA8451Q chip , so i can not test,
while i recommend you can use the function " CI2C1_SelectSlaveDevice()" of PE to check whether the slave "MMA8451Q" is ok on I2C bus.
(2) The attachment is the KE serials chips driver and demo , there is I2C about bare board , you can check .
(3) About the MMA8451Q applicaiton , you can refer to :
http://cache.freescale.com/files/sensors/doc/app_note/AN4068.pdf?fsrch=1&sr=7&pageNum=1
Hope it helps
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello ,
The driver i have send you last time includes the SPI driver , you can fund :
EA_Driver_Lib_V1.zip\KEA_Driver_Lib_V1\Sources\drivers\spi
Hope it helps
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------