Good point, Vasile.

Met vriendelijke groet,
Rob Jansen
________________________________
From: [email protected] <[email protected]> on behalf of vsurducan 
<[email protected]>
Sent: Wednesday, March 26, 2025 5:29:52 PM
To: [email protected] <[email protected]>
Subject: Re: [jallib] Two I2C Bus on one PIC

Hi David,
But if you use one i2c bus and switch between 100kHz and 400kHz as needed?
The only reason  I can see the need for two i2c is perhaps syncronization 
between two data packets or some speed constrains.
Cheers,


On Wed, Mar 26, 2025, 17:23 David VB 
<[email protected]<mailto:[email protected]>> wrote:
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

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion visit 
https://groups.google.com/d/msgid/jallib/6d8d86fb-7d51-4b8a-93a2-fc2244d36da6n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/6d8d86fb-7d51-4b8a-93a2-fc2244d36da6n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion visit 
https://groups.google.com/d/msgid/jallib/CAM%2Bj4qsurb%2BP3yqH8b_1rtpnVZm86UPd-arunRHLWRfmjGpJhg%40mail.gmail.com<https://groups.google.com/d/msgid/jallib/CAM%2Bj4qsurb%2BP3yqH8b_1rtpnVZm86UPd-arunRHLWRfmjGpJhg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/jallib/AM7PR02MB6098E8CFDC7C67D57B099DB5E6A62%40AM7PR02MB6098.eurprd02.prod.outlook.com.

Reply via email to