cancel
Showing results for 
Search instead for 
Did you mean: 

SPC58EC I2C signals not output at all

Birdy Toh
Associate II
Posted on September 18, 2017 at 13:13

Hello

I am trying to implement a I2C driver on a SPC58EC.

The problem I am facing now is that I cannot get the signal output on the pads correctly.

IBSR.IBAL is immediately set when I try to generate a START condition.

I am suspecting my pad configurations (PB8 + PB9) are incorrect but I have no idea what are the correct values.

What are the things I should check?

Thanks in advance.

Regards,

Birdy

#spc58 #i2c
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on September 27, 2017 at 08:36

For anyone who is interested, I finally got it to output the START and the address correctly.

Now to test more, and (few weeks) later to check if the slave can work correctly too.

The working configurations so far:

*0xf7fc02a0 (PB[8]) = 0x11080003

*0xf7fc02a4 (PB[9]) = 0x11080003

*0xf7fc0ee0 (PB[9]) = 0x00000003

*0xf7fc0ee4 (PB[8]) = 0x00000003

View solution in original post

5 REPLIES 5
Erwan YVIN
ST Employee
Posted on September 19, 2017 at 16:50

Hello Birdy ,

Could you send me your Pin configuration ?

You should have :

                           SIUL/MSCR                SSS

PB[8] 2400000011SCLI2C 

PB[9] 2500000011SDAI2C 

         Best regards

                  Erwan

Posted on September 25, 2017 at 05:04

Hello Erwan

Sorry to reply this late; only got time to switch back to this project now.

My configurations are as below

*0xf7fc02a0 (PB[8]) = 0x11000003

*0xf7fc02a4 (PB[9]) = 0x11000003

I hope the following is also useful for analysis. These are the values just before I attempt to generate the START condition.

*0xf7e68000 (IBAD) = 0x00

*0xf7e68001 (IBFD) = 0x1f

*0xf7e68002 (IBCR) = 0x00

*0xf7e68003 (IBSR) = 0x90

*0xf7e68004 (IBDR) = 0x00

*0xf7e68005 (IBIC) = 0x00

*0xf7e68006 (IBDBG) = 0x00

Thanks in advance.

Regards,

Birdy

Erwan YVIN
ST Employee
Posted on September 27, 2017 at 10:06

Good news ,

For your information , we are developing I2C drivers and additional drivers for SPC58 Family on SPC5Studio Tools Suite

       Best regards

                   Erwan

Posted on September 27, 2017 at 08:36

For anyone who is interested, I finally got it to output the START and the address correctly.

Now to test more, and (few weeks) later to check if the slave can work correctly too.

The working configurations so far:

*0xf7fc02a0 (PB[8]) = 0x11080003

*0xf7fc02a4 (PB[9]) = 0x11080003

*0xf7fc0ee0 (PB[9]) = 0x00000003

*0xf7fc0ee4 (PB[8]) = 0x00000003

Hello Erwan, recently I am trying to develop I2C driver on SPC58.

Can you please help me with basic driver for SPC58 family please.