CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

24HJ256GP206 problems with I2C slave

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
mharris27



Joined: 22 Apr 2005
Posts: 15

View user's profile Send private message

24HJ256GP206 problems with I2C slave
PostPosted: Fri Mar 21, 2008 10:41 am     Reply with quote

Hello all,

For some reason when I insert this #use statement into my code

#use i2c(Slave,sda=PIN_F4,scl=PIN_F5,address=0xa0)



the CCS compiler reports this:

*** Error 99 "LCD_Micro.c" Line 33(5,51): Option invalid Bad Option: SLAVE

I have the PCD complier V4.057
Any ideas?


Mike
horkesley



Joined: 20 Feb 2007
Posts: 48
Location: Essex UK

View user's profile Send private message Send e-mail Visit poster's website

Horkesley
PostPosted: Sat Mar 22, 2008 7:52 am     Reply with quote

Hi,

What micro are you using?

Regards,
_________________
Horkesley Electronics Limited
mharris27



Joined: 22 Apr 2005
Posts: 15

View user's profile Send private message

PostPosted: Mon Mar 24, 2008 6:39 am     Reply with quote

I am using the 24HJ256GP206 micro. I upgraded the CCS compiler to the lastest version and that seems to have solved my problem.


Thanks,
Mike
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group