How to change I2C to SPI as default interface of MP6570?

Hello!

Does anyone know how to change I2C to SPI as the default interface for MP6570?

Thanks!

Hi MARICI,

Thanks for your question.
You can set the communication mode from I2C to SPI through address 33h and writing 1. Refer to page 42 of the datasheet.

Thanks,
Cindy

Hi, Cindy.

When update to SPI?
[Q1] Is it change immediately write Reg.?
[Q2] Can I use SPI next power on without change again after one time write this Reg.?

Thanks!

Hi MARICI,

Yes, the change should take place immediately after you write to the COM_MOD address.
Also yes, the parameters are stored in non-volatile memory, so the communication mode previously set will stay even during a power cycle.

Thanks,
Cindy

1 Like

I have problem about this situation. When i changed the communication i2c to spi i couldn’t communicate with stm32 and arduino. Before the change 33h → 0x8040 , after the change 33h-> 0x8043.
Is there any example code about it?

Thanks!!!

I was wrong about sending bits. So i checked out datasheet and saw the using communication protocol. Then i fixed this problem. We should send 5 bytes and receive 5 bytes.