Thank you for wanting to help, but I'm not asking for reserved addresses or for what the slave does and not for the I2C protocol, etc. with regards to the tire. Question with regards to the code and the microcontroller.
Question. Can both MSSP modules work in peak 16f18346 simultaneously on the same bus I2C MSSP1 master, and MSSP2 slave. If this is not possible (which would be strange) there are no questions.
In the project I use MPLAB 5.30 and MCC 3.95 for PIC16F18346
1. Configuring MSSP1 in the master.
2. I send to the additional device at the correct slave address.
3 slave accepts, answers, the master does not freeze. ALL OK.
4 Using MCC I add MSSP2 to the slave mode. (it doesn’t matter on one bus or not, it doesn’t matter which address I specify). Just added and without changing the default, or changing the settings, changing the PINs of the SCL and SDA.
5. I compile, I am flashing already on the dominating slave device there is no reaction.
I take PROTEUS to create a project, but since there is no PIC16F18346 in the proteus, I take PIC16F1829 to create a project in MPLAB X, I configure it in MSS, compile it, run it in the proteus, everything works. At the same time, the lion and the master, everything works as I want.
post edited by BUVA - 2020/02/22 02:31:38