Reply by fait...@yahoo.com December 11, 20062006-12-11
Hi all:

would you like to throw me some light ? i am waiting for a little star light in darkness night. thanks in advance !

What is the peripheral configuration (PERCFG) register set to?
>
>Mike
>
>-----Original Message-----
>From: f...@yahoo.com [mailto:f...@yahoo.com]
>Sent: Tuesday, December 05, 2006 11:48 PM
>To: c...
>Subject: [c6x] dm642 scl
>
>hi:
>
>recently, i encountered a problem during my dm642 developing. that is the
>i2c is out of work. when i run a demo program , the i2c's scl and sda pins
>are all high voltage. so the dsp can not communication with any other device
>. and the program is loop excuting in the i2cxrdy function forever.and check
>all i2c registers and perpherial registers , i found out that their value
>are all right but i2cxdm field of the i2cstatus's register is always 0, so
>the i2c's start condition can not be send out .this error jump out just
>after i change the video input port into audio input port, then the i2c work
>fail. why, is it because of the hardware or software ? if it is hardware
>reason , the dm642 is so easy to fail ? who would like to throw me some
>light !!! thanks in advance .
Reply by Andrew Nesterov December 11, 20062006-12-11
> dm642 scl
> Posted by: "f...@yahoo.com" f...@yahoo.com faithtuo100
> Date: Wed Dec 6, 2006 5:32 am ((PST))
>
> hi:
>
> recently, i encountered a problem during my dm642 developing. that is the
> i2c is out of work. when i run a demo program , the i2c's scl and sda pins
> are all high voltage. so the dsp can not communication with any other device
> and the program is loop excuting in the i2cxrdy function forever.and check
> all i2c registers and perpherial registers , i found out that their value are
> all right but i2cxdm field of the i2cstatus's register is always 0, so the
> i2c's start condition can not be send out .this error jump out just after i
> change the video input port into audio input port, then the i2c work fail.
> why, is it because of the hardware or software ? if it is hardware reason,
> the dm642 is so easy to fail ? who would like to throw me some light !!!
> thanks in advance.

Assuming your hardware works, the first thing to check is the device
configuration. The "configuration after reset" section of DM642 datasheet
explains how to enable/disable a peripheral; so please make sure the I2C
bit is set. A similar procedure is required to map I2C interrupts into
one of the INT4 through INT15 set.

Rgds,

Andrew
Reply by Mike December 7, 20062006-12-07
What is the peripheral configuration (PERCFG) register set to?

Mike

-----Original Message-----
From: f...@yahoo.com [mailto:f...@yahoo.com]
Sent: Tuesday, December 05, 2006 11:48 PM
To: c...
Subject: [c6x] dm642 scl

hi:

recently, i encountered a problem during my dm642 developing. that is the
i2c is out of work. when i run a demo program , the i2c's scl and sda pins
are all high voltage. so the dsp can not communication with any other device
. and the program is loop excuting in the i2cxrdy function forever.and check
all i2c registers and perpherial registers , i found out that their value
are all right but i2cxdm field of the i2cstatus's register is always 0, so
the i2c's start condition can not be send out .this error jump out just
after i change the video input port into audio input port, then the i2c work
fail. why, is it because of the hardware or software ? if it is hardware
reason , the dm642 is so easy to fail ? who would like to throw me some
light !!! thanks in advance .
Reply by fait...@yahoo.com December 6, 20062006-12-06
hi:

recently, i encountered a problem during my dm642 developing. that is the i2c is out of work. when i run a demo program , the i2c's scl and sda pins are all high voltage. so the dsp can not communication with any other device . and the program is loop excuting in the i2cxrdy function forever.and check all i2c registers and perpherial registers , i found out that their value are all right but i2cxdm field of the i2cstatus's register is always 0, so the i2c's start condition can not be send out .this error jump out just after i change the video input port into audio input port, then the i2c work fail. why, is it because of the hardware or software ? if it is hardware reason , the dm642 is so easy to fail ? who would like to throw me some light !!! thanks in advance .