Proton BASIC Community

Proton (Positron) => Proton8 threads => Topic started by: glenlivet on Nov 01, 2024, 02:22 PM

Title: Qustion about I2Cin and I2Cout commands
Post by: glenlivet on Nov 01, 2024, 02:22 PM
Is the I2C communication interface required to be "built in" to the PIC in order to use the I2Cin and I2Cout function or are they implemented via software at compilation time? In the example SDA and SCL don't appear to be declared on the actual PIC pins where they are assigned assuming I2C is built in on the chip but rather aliased on port C.X. Going "by the book" if I'm understanding correctly, I2C interface is not required on the PIC because it's implemented via software making it available on any pin any PIC regardless whether or not its built into the chip? OR??? Is that I2C has to be available in the chip and can be aliased via the I2Cin and I2Cout commands?         
Title: Re: Qustion about I2Cin and I2Cout commands
Post by: Frizie on Nov 01, 2024, 06:53 PM
I2Cin and I2Cout are software instructions.
An advantage is that you can use I²C on almost all pins and also on PICs that do not have an I²C module on board.
It works quite well.  ;D
Title: Re: Qustion about I2Cin and I2Cout commands
Post by: glenlivet on Nov 02, 2024, 01:34 AM
Thanks a bunch Frizie! That's what I wanted to know. I can use up a bunch of 12F 8 piners laying around I've been stubbing my big toe on.