Author |
Message |
Topic: #use i2c not changing pins with 18f4520 |
stephanhwolf
Replies: 6
Views: 13087
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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 ... |
|