Hi,
I have problems configuring the I2C module.
after the DM642 is reset, it is not possible at all to write anything to the I2C
registers, all registers remain 0. Whatever function of the csl-I2c I call, the
registers remain 0. It seems that the I2C is deactivated. The procedure
described in spru175 (I2C peripherals reference manual) chap. 7
\'Programming guide\' is not enough. Something has to be done before
to wake up the I2C module.
Can anyone tell me what is required to activate the I2C module on the DM642? Is
there a documentation apart from the peripherals reference manual and the CSL
api reference that could be helpful?
best regards,
thank you very much
Victorwang
2005.9.22
Some problems with I2C module in DM642
Started by ●September 21, 2005
Reply by ●September 22, 20052005-09-22
On 9/21/05, wei Wang <victor_wongwon@vict...> wrote:
> I have problems configuring the I2C module.
> It seems that the I2C is deactivated.
This seems to be a common problem, you need to enable the I2C block
with the PERCFG register. This is documented in the DM642 manual. In
my BSP init code, I have:
/* enable/disable required SOC modules (needed to turn on I2C) */
CHIP_configArgs (
CHIP_PERCFG_RMK (
CHIP_PERCFG_VP2EN_ENABLE,
CHIP_PERCFG_VP1EN_ENABLE,
CHIP_PERCFG_VP0EN_ENABLE,
CHIP_PERCFG_I2C0EN_ENABLE,
CHIP_PERCFG_MCBSP1EN_DISABLE,
CHIP_PERCFG_MCBSP0EN_DISABLE,
CHIP_PERCFG_MCASP0EN_DISABLE ) );
--Clem
> I have problems configuring the I2C module.
> It seems that the I2C is deactivated.
This seems to be a common problem, you need to enable the I2C block
with the PERCFG register. This is documented in the DM642 manual. In
my BSP init code, I have:
/* enable/disable required SOC modules (needed to turn on I2C) */
CHIP_configArgs (
CHIP_PERCFG_RMK (
CHIP_PERCFG_VP2EN_ENABLE,
CHIP_PERCFG_VP1EN_ENABLE,
CHIP_PERCFG_VP0EN_ENABLE,
CHIP_PERCFG_I2C0EN_ENABLE,
CHIP_PERCFG_MCBSP1EN_DISABLE,
CHIP_PERCFG_MCBSP0EN_DISABLE,
CHIP_PERCFG_MCASP0EN_DISABLE ) );
--Clem