Author |
Message |
Topic: i2c and LTC2631 DAC |
niloc
Replies: 7
Views: 11482
|
Forum: General CCS C Discussion Posted: Sun Mar 06, 2011 11:07 pm Subject: i2c and LTC2631 DAC |
Seems as though the DAC chip is at fault, the SCL line, pin 2 has an internal fault to gnd at pin 4. New chips on order. Ah the joys of prototyping!!!
It is too easy to blame the code when ... |
Topic: i2c and LTC2631 DAC |
niloc
Replies: 7
Views: 11482
|
Forum: General CCS C Discussion Posted: Sun Mar 06, 2011 9:30 pm Subject: i2c and LTC2631 DAC |
CA0 and CA1 are at GND which according to data sheet gives address of 0010000
That's correct, but in your code you have 3 leading zeros on the address.
It should be only 2. The slave address is lef ... |
Topic: i2c and LTC2631 DAC |
niloc
Replies: 7
Views: 11482
|
Forum: General CCS C Discussion Posted: Sun Mar 06, 2011 9:10 pm Subject: i2c and LTC2631 DAC |
Couple of quick comments...I make the assumption this is real hardware and NOT a simulation (Proteus,etc.)
1) In...
void out_DAC() //Function to write to D/A via I2C
{ ... |
Topic: i2c and LTC2631 DAC |
niloc
Replies: 7
Views: 11482
|
Forum: General CCS C Discussion Posted: Sun Mar 06, 2011 9:01 pm Subject: i2c and LTC2631 DAC |
What connections do you have to pins CA0 and CA1 on the LTC2631 ?
CA0 and CA1 are at GND which according to data sheet gives address of 0010000 |
Topic: i2c and LTC2631 DAC |
niloc
Replies: 7
Views: 11482
|
Forum: General CCS C Discussion Posted: Sun Mar 06, 2011 8:21 pm Subject: i2c and LTC2631 DAC |
Could someone please help me with my code and please forgive my newbieness. I know the code looks untidy. I am using CCS compiler ver 4.112.
I thought I had this code running in my hardware but no ... |
|