Hi,
I will use a PIC16F18325 to control (as master) TWO separate I2C Buses. This PIC has 2 MSSP modules, so this is possible.
But, the I2c_hardware.jal lib does not support that: it can only reference the first module.
o i have to make a copy of that lib, and rename all references to the registers of the MSSP module to access the second module ? (Ex: SSPCON2 which is an alias for SSP1CON2 should be renamed SSP2CON2 in the copy of the lib)
Or is there another way ?
Also note that if I want to make the buses run at different speeds (ex: one at 100 kHz, and one at 400 kHz), some global variables and constants have also to be duplicated and renamed.
Any ideas welcome....
Kind regards,
David