IIC and SSPCON2

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
allenkkwong
Posts: 20
Joined: Mon Apr 24, 2017 3:26 am
Has thanked: 1 time
Been thanked: 3 times
Contact:

IIC and SSPCON2

Post by allenkkwong »

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
Attachments
SSPCON2_err.PNG
(35.78 KiB) Downloaded 2534 times

User avatar
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

Post by Benj »

Hello Allen,

Aha the problem is also in v7 and I think I have found the cause.

This is taken from the datasheet.
The SSP module, in I2C mode, implements all slave functions, except general call support.
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.

allenkkwong
Posts: 20
Joined: Mon Apr 24, 2017 3:26 am
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: IIC and SSPCON2

Post by allenkkwong »

Hi Benj,

Will there be a fix? I am using v6 and will you have update on v6?

Rgds

allenkkwong
Posts: 20
Joined: Mon Apr 24, 2017 3:26 am
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: IIC and SSPCON2

Post by allenkkwong »

Hi Benj,

Oh... I got it. Pls ignore my last reply. Thanks

Rgds
Allen

Post Reply