News:

Let's find out together what makes a PIC Tick!

Main Menu

Qustion about I2Cin and I2Cout commands

Started by glenlivet, Nov 01, 2024, 02:22 PM

Previous topic - Next topic

glenlivet

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?         

Frizie

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
Ohm sweet Ohm | www.picbasic.nl

glenlivet

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.