初始化I2C被动式。

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
7 posts / 0 new
Last post
Oz
Offline
Last seen:2 years 8 months ago
Joined:2018-10-11 07:20
初始化I2C被动式。

Hi all,

I am writing to DA14580 I need to initialize and work with I2C in a slave mode, Can you please guide me how to do it?
I am getting the data in I2C and send it over the BLE

Regards,

Device:
PM_Dialog
Offline
Last seen:3 days 1 hour ago
Staff
Joined:2018-02-08 11:03
Hi Oz,

Hi Oz,

I would highly suggest you to have a look at the I2C example of the SDK which emonstrates how to initiate, read, write and erase an I2C EEPROM memory. The project is located in the projects\target_apps\peripheral_examples\i2c\i2c_eeprom SDK directory. Also, it would be very helpful to read the section 7.19 of the UM-B-050 user manual from our support page. You can download it from following the link below:

https://support.dialog-semiconductor.com/system/files/restricted/UM-B-050_DA1458x_Software_Developer%27s_Guide_1v1.pdf

Please, check this example and let me know if you would like further guidelines.

Thanks, PM_Dialog

Oz
Offline
Last seen:2 years 8 months ago
Joined:2018-10-11 07:20
Hi PM_Dialog,

Hi PM_Dialog,

Can You please show me where I can found slave commends?
slave write and read?

Regards,
Oz

PM_Dialog
Offline
Last seen:3 days 1 hour ago
Staff
Joined:2018-02-08 11:03
Hi Oz,

Hi Oz,

Could you please clarify if you would like to read/write data int an EEPROM? The project that I have already pointed you our, demonstrates an I2C EEPROM example.

Thanks, PM_Dialog

YehudaNovodes
Offline
Last seen:2 years 6 months ago
Joined:2018-11-11 12:38
Hi,

Hi,

I have the same problem.

There's no example for the slave side for the Write operation. The only example for I2C is the one of the EEPROM but it's all about the master...
To be more specific, My DA14580 MCU is the slave and I need it to receive as a slave (which works) and also write back as slave (of course in response to the master's request). Can you please point to the required registers that needs to configured or give me an example.

Thank you very much.

PM_Dialog
Offline
Last seen:3 days 1 hour ago
Staff
Joined:2018-02-08 11:03
Hi Oz , YehudaNovodes,

Hi Oz , YehudaNovodes,

Apologies for the confusion. Yes you are correct, the I2C driver for DA14580 does not support slave mode, so there isn’t any available example or documentation for this. I would strongly recommend you to move into DA14585 device, because we are currently working on I2C slave side implementation. I would like to let you know that very soon an I2C slave example will be released on our website based on DA14585 device. So, it would be a very good solution to move into DA14585 SoC.

Thanks, PM_Dialog

YehudaNovodes
Offline
Last seen:2 years 6 months ago
Joined:2018-11-11 12:38
Well, we can't really move to

Well, we can't really move to another MCU, it's not that easy.
Supplying so basic drivers and examples is something that all other manufacturers do so if I'm going to choose another MCU, why should I choose yours...