Hi I am working on I2C in KEA128.I am trying on it.I searched on web there are no samplecodes.Can anyone help me in finding some sample codes for I2C in KEA12
Hello vignesh,
Which IDE do you use ? If you use KDS, there have I2C demo code on "Help on component " :
Wish it helps
Alice
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!
-----------------------------------------------------------------------------------------------------------------------
Thank you Alice,
The problem was with reading and we got that fixed.Can you send us a driver
for SPI of KEA-128
On Wed, Oct 21, 2015 at 5:34 PM, Alice_Yang <admin@community.freescale.com>
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!
-----------------------------------------------------------------------------------------------------------------------
Hi Alice,
Can you give me a small example code of how to write to a I2C slave's register from a master with respect to ISL29023( ALS sensor) as slave and KEA-128 as master.