Hi,
Generally,How to write to a register in ISL29023(ALS Sensor) throught I2C ? Any examples codes aare there for that with respect to KEA-128???
Hi VIGNESH BALAJI,
About how to write the ALS SENSOR register, you should read the the ALS sensor datasheet, to get the command, then use the I2C to send the according command to write the sensor.
What we can give you is just the KEA128 I2C driver, for the detail application, you need to write the code by yourself.
Please find the KEA128 i2c driver from the attachment
Wish it helps you!
If you still have question, please contact with me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
In the I2C driver the baud rate is kept as 0x1F ,what is the baud rate
that corresponds to?
On Thu, Mar 31, 2016 at 8:48 AM, kerryzhou <admin@community.freescale.com>
Hi VIGNESH,
i2c baud rate is the I2C clk communication baud rate, you also can configure the baudrate which you want.
For details, please check the KEA referece manual, I2Cx_F register.
Wish it helps you!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Jing,
Can you please tell me,what does this 0x1F refer to that is it
corresponds to what baud rate???In the I2C driver we are putting it as 0x1F.
On Tue, Apr 5, 2016 at 2:59 PM, kerryzhou <admin@community.freescale.com>
Hi Vignesh,
Could you tell me what the 0X1F from? Did you define the I2Cx_F=0x1f?
If yes, now I tell you how to calculate the baud rate.
I2C baud rate = I2C module clock speed (Hz)/(mul × SCL divider)
2C module clock speed is the bus clock.
mul=I2Cx_F[MULT]+1;
SCL divider, you need to check the Table 31-41. I2C divider and hold values in the KEA referece manual.
Now take I2Cx_F=0x1f as an example, it means, mul=1, SCL divider= 240.
Then, assume your bus clock=24Mhz,
I2C baud rate = 24Mhz/(1*240)=100Kbps.
More details, please read the referece manual carefully!
Wish it helps you!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------