Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).
Did you look at the scope to see the clock? Is the clock distorted? Did you try to run I2C in low clock rate? Wei --- In c...@yahoogroups.com, "Behrooz Daneshkhah" <bdaneshkhah@...> wrote: > > Hi > I have exactly the same problem. If you have solved it , I will be > very grateful to have your kind help . > > Thanks in advance > Behrooz > --- In c...@yahoogroups.com, aditya.kothari@ wrote: > > > > Hi all > > > > I am trying to get the I2C working on the c5502EVM as well as a > c5502 custom board. The DSP is set in the slave receiver mode. The > master correctly sends the data and the clock on the two I2C pins. > However, the DSP is not able to recognize the start bit and the bus > is never busy to receive any data for the DSP. > > > > As an experiment, i tried out a sample code from the CSL which > performs a Digital Loopback. This code works fine and the test is > passed. If i remove the I2C from the loopback mode, i still donot > get any clock or data signals out of the SCL or the SDA pins. I have > appropriately set the CPLD registers for getting the signals on the > preipheral expansion. > > > > Someone kindly help me in setting up the I2C in the master as well > as slave modes and get the signals out from the peripheral expansion > connector.Kindly help. > > > > Thanking you > > > > aditya > Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
I work on a 5501 with the DSP as master on I2C. Here's my code for setting
things up in master mode.
I hope it can give you some help, as I'm not familiar enough with things to
know how all details work out.
The problems I had when setting things up was that my transfer rate didn't
match the rate of the component with the lowest transfer rate. Also I had to
set two registers by
myself, as they were not included in the I2C_Setup structure. (not sure if
it's the correct way to do it, but it works for me)
Good luck!
-------------------------------------
/* Create and initialize an I2C initialization structure */
I2C_Setup initStructI2C =
{
0, /* 7 bit address mode */
0x0000, /* own address - don't care if master */
SYSCLK2_FREQ, /* Slow Peripherals (Mhz)*/
100, /* Transfer rate in kbps, 10-400. Use max 100 kbps, RTC is the limiting
factor.*/
0, /* number of bits/byte to be received or transmitted (8)*/
0, /* DLB mode off*/
1 /* FREE mode of operation on*/
};
void initTLDI2C()
{
/* Initialize I2C, using parameters in initI2C structure */
I2C_setup(&initStructI2C);
//Divide low
perPortRegSet(0xFF,0x3C03);/* I2C clock low divider register, IO mapped*/
//Divide high
perPortRegSet(0xFF,0x3C04);/* I2C clock high divider register, IO mapped */
}
//and for write I use (example): I2C_write((Uint16*)
timeI2CRTCArray,9,1,0x68,1,30000);
------------------------------------
On 1/16/08, iewil2000 <l...@gmail.com> wrote:
>
> Did you look at the scope to see the clock? Is the clock distorted?
> Did you try to run I2C in low clock rate?
>
> Wei
>
> --- In c...@yahoogroups.com <c55x%40yahoogroups.com>, "Behrooz
Daneshkhah"
> <bdaneshkhah@...>
> wrote:
> >
> > Hi
> > I have exactly the same problem. If you have solved it , I will be
> > very grateful to have your kind help .
> >
> > Thanks in advance
> > Behrooz
> > --- In c...@yahoogroups.com <c55x%40yahoogroups.com>, aditya.kothari@
> wrote:
> > >
> > > Hi all
> > >
> > > I am trying to get the I2C working on the c5502EVM as well as a
> > c5502 custom board. The DSP is set in the slave receiver mode. The
> > master correctly sends the data and the clock on the two I2C pins.
> > However, the DSP is not able to recognize the start bit and the bus
> > is never busy to receive any data for the DSP.
> > >
> > > As an experiment, i tried out a sample code from the CSL which
> > performs a Digital Loopback. This code works fine and the test is
> > passed. If i remove the I2C from the loopback mode, i still donot
> > get any clock or data signals out of the SCL or the SDA pins. I
> have
> > appropriately set the CPLD registers for getting the signals on the
> > preipheral expansion.
> > >
> > > Someone kindly help me in setting up the I2C in the master as
> well
> > as slave modes and get the signals out from the peripheral
> expansion
> > connector.Kindly help.
> > >
> > > Thanking you
> > >
> > > aditya
> > >
>
Hi I don't see anything on Scope.No clock.No data. Even when running CSL sample code for C5502! Behrooz --- iewil2000 <l...@gmail.com> wrote: > Did you look at the scope to see the clock? Is the clock distorted? > > Did you try to run I2C in low clock rate? > > Wei > > --- In c...@yahoogroups.com, "Behrooz Daneshkhah" <bdaneshkhah@...> wrote: > > > > Hi > > I have exactly the same problem. If you have solved it , I will > be > > very grateful to have your kind help . > > > > Thanks in advance > > Behrooz > > --- In c...@yahoogroups.com, aditya.kothari@ wrote: > > > > > > Hi all > > > > > > I am trying to get the I2C working on the c5502EVM as well as a > > > c5502 custom board. The DSP is set in the slave receiver mode. > The > > master correctly sends the data and the clock on the two I2C > pins. > > However, the DSP is not able to recognize the start bit and the > bus > > is never busy to receive any data for the DSP. > > > > > > As an experiment, i tried out a sample code from the CSL which > > performs a Digital Loopback. This code works fine and the test is > > > passed. If i remove the I2C from the loopback mode, i still donot > > > get any clock or data signals out of the SCL or the SDA pins. I > have > > appropriately set the CPLD registers for getting the signals on > the > > preipheral expansion. > > > > > > Someone kindly help me in setting up the I2C in the master as > well > > as slave modes and get the signals out from the peripheral > expansion > > connector.Kindly help. > > > > > > Thanking you > > > > > > aditya > > > > > > Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD > Video Transcoding Solution for Commercial & Consumer End Equipment: > www.ti.com/dm6467 ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
Dear sima
Thank you very much.
I got some signal out of I2c !! :)
Good Luck
Behrooz
--- Sima Baymani <s...@kth.se> wrote:
> I work on a 5501 with the DSP as master on I2C. Here's my code for
> setting
> things up in master mode.
> I hope it can give you some help, as I'm not familiar enough with
> things to
> know how all details work out.
>
> The problems I had when setting things up was that my transfer rate
> didn't
> match the rate of the component with the lowest transfer rate. Also
> I had to
> set two registers by
> myself, as they were not included in the I2C_Setup structure. (not
> sure if
> it's the correct way to do it, but it works for me)
> Good luck!
> -------------------------------------
> /* Create and initialize an I2C initialization structure */
> I2C_Setup initStructI2C =
> {
> 0, /* 7 bit address mode */
> 0x0000, /* own address - don't care if master */
> SYSCLK2_FREQ, /* Slow Peripherals (Mhz)*/
> 100, /* Transfer rate in kbps, 10-400. Use max 100 kbps, RTC is the
> limiting
> factor.*/
> 0, /* number of bits/byte to be received or transmitted (8)*/
> 0, /* DLB mode off*/
> 1 /* FREE mode of operation on*/
> };
> void initTLDI2C()
> {
> /* Initialize I2C, using parameters in initI2C structure */
> I2C_setup(&initStructI2C);
> //Divide low
> perPortRegSet(0xFF,0x3C03);/* I2C clock low divider register, IO
> mapped*/
> //Divide high
> perPortRegSet(0xFF,0x3C04);/* I2C clock high divider register, IO
> mapped */
> }
>
> //and for write I use (example): I2C_write((Uint16*)
> timeI2CRTCArray,9,1,0x68,1,30000);
> ------------------------------------
> On 1/16/08, iewil2000 <l...@gmail.com> wrote:
> >
> > Did you look at the scope to see the clock? Is the clock
> distorted?
> > Did you try to run I2C in low clock rate?
> >
> > Wei
> >
> > --- In c...@yahoogroups.com <c55x%40yahoogroups.com>, "Behrooz
> Daneshkhah"
> > <bdaneshkhah@...>
> > wrote:
> > >
> > > Hi
> > > I have exactly the same problem. If you have solved it , I will
> be
> > > very grateful to have your kind help .
> > >
> > > Thanks in advance
> > > Behrooz
> > > --- In c...@yahoogroups.com <c55x%40yahoogroups.com>,
> aditya.kothari@
> > wrote:
> > > >
> > > > Hi all
> > > >
> > > > I am trying to get the I2C working on the c5502EVM as well as
> a
> > > c5502 custom board. The DSP is set in the slave receiver mode.
> The
> > > master correctly sends the data and the clock on the two I2C
> pins.
> > > However, the DSP is not able to recognize the start bit and the
> bus
> > > is never busy to receive any data for the DSP.
> > > >
> > > > As an experiment, i tried out a sample code from the CSL
> which
> > > performs a Digital Loopback. This code works fine and the test
> is
> > > passed. If i remove the I2C from the loopback mode, i still
> donot
> > > get any clock or data signals out of the SCL or the SDA pins. I
> > have
> > > appropriately set the CPLD registers for getting the signals on
> the
> > > preipheral expansion.
> > > >
> > > > Someone kindly help me in setting up the I2C in the master as
> > well
> > > as slave modes and get the signals out from the peripheral
> > expansion
> > > connector.Kindly help.
> > > >
> > > > Thanking you
> > > >
> > > > aditya
> > > >
> > >
> >
> >
>
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution
for Commercial & Consumer End Equipment: www.ti.com/dm6467
Grats!
Glad I could help =)
-Sima
On Jan 20, 2008 12:39 PM, Behrooz Daneshkhah <b...@yahoo.com> wrote:
> Dear sima
> Thank you very much.
> I got some signal out of I2c !! :)
>
> Good Luck
> Behrooz
> --- Sima Baymani <s...@kth.se> wrote:
>
> > I work on a 5501 with the DSP as master on I2C. Here's my code for
> > setting
> > things up in master mode.
> > I hope it can give you some help, as I'm not familiar enough with
> > things to
> > know how all details work out.
> >
> > The problems I had when setting things up was that my transfer rate
> > didn't
> > match the rate of the component with the lowest transfer rate. Also
> > I had to
> > set two registers by
> > myself, as they were not included in the I2C_Setup structure. (not
> > sure if
> > it's the correct way to do it, but it works for me)
> > Good luck!
> > -------------------------------------
> > /* Create and initialize an I2C initialization structure */
> > I2C_Setup initStructI2C =
> > {
> > 0, /* 7 bit address mode */
> > 0x0000, /* own address - don't care if master */
> > SYSCLK2_FREQ, /* Slow Peripherals (Mhz)*/
> > 100, /* Transfer rate in kbps, 10-400. Use max 100 kbps, RTC is the
> > limiting
> > factor.*/
> > 0, /* number of bits/byte to be received or transmitted (8)*/
> > 0, /* DLB mode off*/
> > 1 /* FREE mode of operation on*/
> > };
> >
> >
> > void initTLDI2C()
> > {
> > /* Initialize I2C, using parameters in initI2C structure */
> > I2C_setup(&initStructI2C);
> > //Divide low
> > perPortRegSet(0xFF,0x3C03);/* I2C clock low divider register, IO
> > mapped*/
> > //Divide high
> > perPortRegSet(0xFF,0x3C04);/* I2C clock high divider register, IO
> > mapped */
> > }
> >
> > //and for write I use (example): I2C_write((Uint16*)
> > timeI2CRTCArray,9,1,0x68,1,30000);
> > ------------------------------------
> >
> >
> > On 1/16/08, iewil2000 <l...@gmail.com> wrote:
> > >
> > > Did you look at the scope to see the clock? Is the clock
> > distorted?
> > > Did you try to run I2C in low clock rate?
> > >
> > > Wei
> > >
> > > --- In c...@yahoogroups.com <c55x%40yahoogroups.com>, "Behrooz
> > Daneshkhah"
> > > <bdaneshkhah@...>
> > > wrote:
> > > >
> > > > Hi
> > > > I have exactly the same problem. If you have solved it , I will
> > be
> > > > very grateful to have your kind help .
> > > >
> > > > Thanks in advance
> > > > Behrooz
> > > > --- In c...@yahoogroups.com <c55x%40yahoogroups.com>,
> > aditya.kothari@
> > > wrote:
> > > > >
> > > > > Hi all
> > > > >
> > > > > I am trying to get the I2C working on the c5502EVM as well as
> > a
> > > > c5502 custom board. The DSP is set in the slave receiver mode.
> > The
> > > > master correctly sends the data and the clock on the two I2C
> > pins.
> > > > However, the DSP is not able to recognize the start bit and the
> > bus
> > > > is never busy to receive any data for the DSP.
> > > > >
> > > > > As an experiment, i tried out a sample code from the CSL
> > which
> > > > performs a Digital Loopback. This code works fine and the test
> > is
> > > > passed. If i remove the I2C from the loopback mode, i still
> > donot
> > > > get any clock or data signals out of the SCL or the SDA pins. I
> > > have
> > > > appropriately set the CPLD registers for getting the signals on
> > the
> > > > preipheral expansion.
> > > > >
> > > > > Someone kindly help me in setting up the I2C in the master as
> > > well
> > > > as slave modes and get the signals out from the peripheral
> > > expansion
> > > > connector.Kindly help.
> > > > >
> > > > > Thanking you
> > > > >
> > > > > aditya
> > > > >
> > > >
> > >
> > >
> > >
> >
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution
for Commercial & Consumer End Equipment: www.ti.com/dm6467