Hi Benj,
I am using the PIC16F723 in a project. I use the hardware IIC. When I compiled the FC, it generates a lot of SSPCON2 error. I searched the forum and found that it happens in FC V5. I am currently using FC V6. I have attached the error message in this post. I changed to use software IIC and it seems fine.
Can you tell me if there is anyway to fix this?
Thanks
Allen
IIC and SSPCON2
Moderator: Benj
-
- Posts: 20
- Joined: Mon Apr 24, 2017 3:26 am
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: IIC and SSPCON2
Hello Allen,
Aha the problem is also in v7 and I think I have found the cause.
This is taken from the datasheet.
Aha the problem is also in v7 and I think I have found the cause.
This is taken from the datasheet.
So the chip can only support hardware I2C Slave functionality. For Master functionality you will need to use the software channel. I've added a warning to the I2C code in v7 that says in this case that the master mode may not be available on the device.The SSP module, in I2C mode, implements all slave functions, except general call support.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 20
- Joined: Mon Apr 24, 2017 3:26 am
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: IIC and SSPCON2
Hi Benj,
Will there be a fix? I am using v6 and will you have update on v6?
Rgds
Will there be a fix? I am using v6 and will you have update on v6?
Rgds
-
- Posts: 20
- Joined: Mon Apr 24, 2017 3:26 am
- Has thanked: 1 time
- Been thanked: 3 times
- Contact: