Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Setting up I2C for custom target using OMAP-L138

$
0
0

All:

We have been using the LCDK138 up until the target board became available. It has a PMIC chip on board, something that LCDK138 did not have. (TPS65910)

On the LCDK board, the only I2C example was the "game" example, which I was able to pare down to be able to initialize and read a register from AIC31.

As a starting point, I wanted to change that example to read JTAGVERNUM_REG (0x80) or another register such as DEVCTRL_REG (0x40).

Questions:

1. I2CMasterInitExpClk(SOC_I2C_0_REGS, 50000000, 10000000, speed); where speed is 100000  Is this set up correctly? The base addresses should be the same, the input clock is 50 MHz, and the "divisor" is picked at 10 MHz.

2. I2C Slave Address of TPS65910 - from my readings, this should be 0x2D - is this correct?

 


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>