Microchip-MPLAB-Harmony / core

Harmony 3 Core
https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MH3_core&redirect=true
Other
15 stars 12 forks source link

i2c_eeprom/at24 incompatible with I2C Driver #19

Closed pustekuchen91 closed 3 years ago

pustekuchen91 commented 3 years ago

The AT24 can not be used with the I2C Driver. So it is not possible to use other I2C Modules, which usese the i2c driver, because the i2c peripheral is already block by AT24 Driver.

grafik

vishalnxt commented 3 years ago

@pustekuchen91 , yes currently AT24 driver works only with I2C PLIB and hence the PLIB instance cannot be used for other I2C devices on the bus. However, there is a demo example that talks to AT24 EEPROM using I2C driver available at - /apps/driver/i2c/async/i2c_eeprom/firmware. For example i2c_eeprom demo This demo can be taken as a starting point. Increase the number of clients in the I2C driver configuration depending on the number of devices on the bus.

pustekuchen91 commented 3 years ago

thank you @vishalnxt that demo project is a good hint.