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 CCS Technical Support

Search found 4 matches
CCS Forum Index
Author Message
  Topic: #use i2c not changing pins with 18f4520
stephanhwolf

Replies: 6
Views: 13087

PostForum: General CCS C Discussion   Posted: Tue Sep 04, 2012 10:28 am   Subject: #use i2c not changing pins with 18f4520
Hi Ttelmah,
I don't really get the #separate directive. Seems to me subroutines ought to be separate by default, and only #inline if so directed.

Or, does the compiler decide whether to make subr ...
  Topic: #use i2c not changing pins with 18f4520
stephanhwolf

Replies: 6
Views: 13087

PostForum: General CCS C Discussion   Posted: Mon Sep 03, 2012 6:49 pm   Subject: #use i2c not changing pins with 18f4520
Yup, that's what I thought.

Thanks again for your help.
  Topic: #use i2c not changing pins with 18f4520
stephanhwolf

Replies: 6
Views: 13087

PostForum: General CCS C Discussion   Posted: Mon Sep 03, 2012 5:17 pm   Subject: #use i2c not changing pins with 18f4520
PCM-Programmer,

Thanks for the tip.

I see how to use stream in #use i2c.

#use i2c(master, sda=PIN_C4, scl=PIN_D3, stream=SlowI2c))
#use i2c(master, sda=PIN_C4, scl=PIN_C3, ...
  Topic: #use i2c not changing pins with 18f4520
stephanhwolf

Replies: 6
Views: 13087

PostForum: General CCS C Discussion   Posted: Mon Sep 03, 2012 3:48 pm   Subject: #use i2c not changing pins with 18f4520
Hi,
I want to be able to change the i2c pins with #use i2c for different hardware revisions.

This simple code does not work:

//UseFastI2c defaults to FALSE
temp=read_eeprom(FastI2cInsta ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group