Discussion in "Project Doubts" started by    dyoussef    Jun 29, 2016.
Wed Jun 29 2016, 07:34 PM
#1
Hello,

I am referencing this project: http://www.8051projects.net/wiki/I2C_Implementation_on_PIC

I am using PIC16F1847 and XC8 so I've had to make a few changes to the code. While making changes, my compiler gave me an error for the I2CWait function for the while statement. It says "unexpected token amp".

Here is the line in question:
while ((SSPCON2 & 0x1F ) || ( SSPSTAT & 0x04 ) );


I changed the register names to be consistent with my PIC but it didn't solve the problem.

What changes do I need to make to this function so that this error does not occur?


[ Edited Wed Jun 29 2016, 07:37 PM ]
Thu Jun 30 2016, 05:44 AM
#2
I think the display/ editor software added the amp

It should say...
while ((SSPCON2 & 0x1F ) || ( SSPSTAT & 0x04 ) );


[ Edited Thu Jun 30 2016, 05:47 AM ]

Get Social

Information

Powered by e107 Forum System

Conversation

Fri Apr 09 2021, 02:02 PM
Hong
Quality articles is the secret to interest the users to visit the site, that's what this web page is providing. christian dating sites https://datingsitesww.com
Fri Apr 09 2021, 03:53 AM
QGWIJ38V49HEBD3WXF www.web.de
I have a small question for you
Thu Apr 08 2021, 06:26 PM
Lilly
Post writing is also a fun, if you be familiar with afterward you can write otherwise it is complex to write. dating sim https://onlinedatingtind.com/
Thu Apr 08 2021, 12:35 PM
Fredericka Horn
Thanks, Fredericka Horn
Thu Apr 08 2021, 12:03 PM
Ronaldwhits
https://coin2x.org

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 105, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123