2017-09-18 04:13 AM
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 #i2cSolved! Go to Solution.
2017-09-27 01:36 AM
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
2017-09-19 07:50 AM
Hello Birdy ,
Could you send me your Pin configuration ?
You should have :
SIUL/MSCR SSS
PB[8] 2400000011SCLI2C
PB[9] 2500000011SDAI2C
Best regards
Erwan
2017-09-24 10:04 PM
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
2017-09-27 01:06 AM
Good news ,
For your information , we are developing I2C drivers and additional drivers for SPC58 Family on SPC5Studio Tools Suite
Best regards
Erwan
2017-09-27 01:36 AM
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
2023-11-01 06:21 AM
Hello Erwan, recently I am trying to develop I2C driver on SPC58.
Can you please help me with basic driver for SPC58 family please.